summaryrefslogtreecommitdiff
path: root/Bus/Ivy/IvyApplication.h
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:29:31 +0000
committerfcolin2007-02-01 13:29:31 +0000
commitafe2e7dfc1388cad991e8d38dda7d648c137aa52 (patch)
tree92bf63d2b2b34a805927aa294c7c51912638f66a /Bus/Ivy/IvyApplication.h
parent0be65f8a110ee9bf5da9c93e0bd5b5b62b3bad0c (diff)
parent04c263c314499e38d64af9d4a1aa5e2b8d9d5ead (diff)
downloadivy-cplusplus-afe2e7dfc1388cad991e8d38dda7d648c137aa52.zip
ivy-cplusplus-afe2e7dfc1388cad991e8d38dda7d648c137aa52.tar.gz
ivy-cplusplus-afe2e7dfc1388cad991e8d38dda7d648c137aa52.tar.bz2
ivy-cplusplus-afe2e7dfc1388cad991e8d38dda7d648c137aa52.tar.xz
modif struct svnwindows@3001
Diffstat (limited to 'Bus/Ivy/IvyApplication.h')
-rw-r--r--Bus/Ivy/IvyApplication.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/Bus/Ivy/IvyApplication.h b/Bus/Ivy/IvyApplication.h
deleted file mode 100644
index 7191400..0000000
--- a/Bus/Ivy/IvyApplication.h
+++ /dev/null
@@ -1,69 +0,0 @@
-
-#pragma once
-
-// IvyApplication.h : header file
-//
-#include "BufferedSocket.h"
-#include "Ivy.h"
-#include "IvyBinding.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// IvyApplication command target
-
-class IvyApplication : public CBufferedSocket
-{
-// Attributes
-public:
-
-
- typedef enum {
-
- Bye, /* quit l'application ( non utilise ) */
- AddRegexp, /* expression reguliere d'un client */
- Msg, /* message reel */
- Error, /* error message */
- DelRegexp, /* Remove expression reguliere */
- EndRegexp, /* end of the regexp list */
- StartRegexp, /* debut des expressions */
- DirectMsg, /* message direct a destination de l'appli */
- Die, /* demande de terminaison de l'appli */
- Ping, /* message de controle ivy */
- Pong /* ivy doit renvoyer ce message à la reception d'un ping */
-
- }MsgType;
-
-
-// Operations
-public:
- IvyApplication(Ivy *bus);
- virtual ~IvyApplication();
-
-// Overrides
-public:
- BOOL SameApplication( IvyApplication *app );
- UINT remoteService;
- const char *GetName(void);
- inline Ivy *GetBus(void){ return bus;};
- int SendMsg( const char *message );
- void SendMsg( MsgType msg, int id, const char * arg = NULL);
- UINT Create();
- void OnReceive( char *line );
- void Create( const char * host, UINT &port, const char* name );
- virtual void OnAccept(int nErrorCode);
- virtual void OnClose(int nErrorCode);
-
-
-// Implementation
-protected:
- ivy::string appname;
- bool AppConnectedCallbackCalled;
- Ivy *bus;
- /* liste des souscriptions remote */
- /* en clair */
- ivy::map<int,ivy::string> regexp_str_in;
- /* compile */
- typedef ivy::map<int,IvyBinding *> Bindings;
- Bindings regexp_in;
-
- friend class Ivy;
-};