#include <AbstractMicoleApplication.h>
Inherited by ReachinMicoleApplication.
Collaboration diagram for AbstractMicoleApplication:
You can retrieve it by AbstractMicoleApplication::getInstance function This class init a simple MicoleBus with a RegistryAgent
Definition at line 40 of file AbstractMicoleApplication.h.
Public Member Functions | |
virtual | ~AbstractMicoleApplication (void) |
default destructor | |
int | sendBusMessage (const char *c) |
broadcast a Message on the bus | |
void | startNetwork (char *host="127.0.0.1", int port=33483) |
this function start a network on specified host:port | |
void | sendNetworkMessage (string s) |
send a network message (no transit on common bus) | |
Static Public Member Functions | |
static AbstractMicoleApplication * | getInstance () |
return unique instance of AbstractMicoleApplication | |
static string | getVar (string varName) |
helper function, retrieve registryAgent specifie value | |
static void | setVar (string varName, string varValue) |
helper function, set registryAgent specifie value | |
static double | getFloatVar (string varName) |
helper function, retrieve registryAgent specifie value | |
Protected Member Functions | |
AbstractMicoleApplication (void) | |
default constructor may not be called directly, use getInstance | |
Static Protected Attributes | |
static AbstractMicoleApplication * | _instance = NULL |
pointer on uniq instance |
AbstractMicoleApplication::~AbstractMicoleApplication | ( | void | ) | [virtual] |
default destructor
verify if all agent is really stopped
Definition at line 36 of file AbstractMicoleApplication.cpp.
AbstractMicoleApplication::AbstractMicoleApplication | ( | void | ) | [protected] |
default constructor may not be called directly, use getInstance
Definition at line 30 of file AbstractMicoleApplication.cpp.
static double AbstractMicoleApplication::getFloatVar | ( | string | varName | ) | [inline, static] |
helper function, retrieve registryAgent specifie value
Definition at line 102 of file AbstractMicoleApplication.h.
static AbstractMicoleApplication* AbstractMicoleApplication::getInstance | ( | ) | [inline, static] |
return unique instance of AbstractMicoleApplication
Reimplemented in ReachinMicoleApplication.
Definition at line 53 of file AbstractMicoleApplication.h.
static string AbstractMicoleApplication::getVar | ( | string | varName | ) | [inline, static] |
helper function, retrieve registryAgent specifie value
Definition at line 83 of file AbstractMicoleApplication.h.
int AbstractMicoleApplication::sendBusMessage | ( | const char * | c | ) |
broadcast a Message on the bus
c | string to broadcast ont the bus |
Definition at line 43 of file AbstractMicoleApplication.cpp.
void AbstractMicoleApplication::sendNetworkMessage | ( | string | s | ) |
send a network message (no transit on common bus)
s | string message |
Definition at line 52 of file AbstractMicoleApplication.cpp.
static void AbstractMicoleApplication::setVar | ( | string | varName, | |
string | varValue | |||
) | [inline, static] |
helper function, set registryAgent specifie value
Definition at line 92 of file AbstractMicoleApplication.h.
void AbstractMicoleApplication::startNetwork | ( | char * | host = "127.0.0.1" , |
|
int | port = 33483 | |||
) |
this function start a network on specified host:port
host | server IP | |
port | server port |
Definition at line 48 of file AbstractMicoleApplication.cpp.
AbstractMicoleApplication * AbstractMicoleApplication::_instance = NULL [static, protected] |