diff options
author | fcolin | 2007-02-01 12:56:28 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:56:28 +0000 |
commit | 0ee4adee860c77ba82c1e360657b8442f6f61ab7 (patch) | |
tree | 629f1cb824e2b643484e819479a4636349d846d8 /Bus/Ivy/Ivy.cxx | |
parent | 1a6db4ddfa3ab1868b8e76bec6c62a6528de2832 (diff) | |
download | ivy-cplusplus-0ee4adee860c77ba82c1e360657b8442f6f61ab7.zip ivy-cplusplus-0ee4adee860c77ba82c1e360657b8442f6f61ab7.tar.gz ivy-cplusplus-0ee4adee860c77ba82c1e360657b8442f6f61ab7.tar.bz2 ivy-cplusplus-0ee4adee860c77ba82c1e360657b8442f6f61ab7.tar.xz |
Utilisateur : Fcolin Date : 1/06/06 Heure : 15:54 Archivé dans $/Bus/Ivy Commentaire: Separation module de traitement regexp (vss 26)
Diffstat (limited to 'Bus/Ivy/Ivy.cxx')
-rw-r--r-- | Bus/Ivy/Ivy.cxx | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/Bus/Ivy/Ivy.cxx b/Bus/Ivy/Ivy.cxx index 2da3766..60ba574 100644 --- a/Bus/Ivy/Ivy.cxx +++ b/Bus/Ivy/Ivy.cxx @@ -9,7 +9,7 @@ #include "IvyWatcher.h"
#include "IvyApplication.h"
#include "IvySynchroWnd.h"
-
+#include "IvyBinding.h"
#define DEFAULT_ADDR "127.255.255.255"
#define SEPARATOR ":"
@@ -62,8 +62,7 @@ Ivy::Ivy(const char* name, const char * ready, IvyApplicationCallback *callback, IvySynchronousCallback::m_synchro = new IvySynchroWnd();
ready_message = ready;
ApplicationName = name;
- messages_classes_count = 0;
- messages_classes = NULL;
+
binding_callback = NULL;
application_callback = synchronous ? new IvySynchronousApplicationCallback(callback) : callback;
direct_callback = NULL;
@@ -364,22 +363,6 @@ void Ivy::SendDirectMsg(IvyApplication * app, int id, const char *message) app->SendMsg( IvyApplication::DirectMsg, id, message );
}
-bool Ivy::CheckRegexp(const char * exp)
-{
- /* accepte tout par default */
- int i;
- bool regexp_ok = true;
- if ( *exp =='^' && messages_classes_count !=0 )
- {
- regexp_ok = false;
- for ( i = 0 ; i < messages_classes_count; i++ )
- {
- if (strncmp( messages_classes[i], exp+1, strlen( messages_classes[i] )) == 0)
- return 1;
- }
- }
- return regexp_ok;
-}
void Ivy::SetBindCallback( IvyBindingCallback* bind_callback )
{
binding_callback = synchronous ? new IvySynchronousBindingCallback(bind_callback) : bind_callback;
@@ -387,8 +370,7 @@ void Ivy::SetBindCallback( IvyBindingCallback* bind_callback ) void Ivy::SetFilter(int argc, const char **argv )
{
- messages_classes_count = argc;
- messages_classes = argv;
+ IvyBinding::SetFilter(argc, argv );
}
bool Ivy::CheckConnected(IvyApplication * app)
|