#include <CarLinO_leash.h>
Inherits AP::AP_Thread, and CarLinO::CarLinO_base.
Inherited by CarLinO_wrapper, CGdb, class1, class2, class3, Console, cudev_leash, Goal, and my_carlino.
Public Member Functions | |
CarLinO_leash (const AP_String &name) | |
Main class constructor. | |
AMICO_link * | ConnectToProcess (const AP_String &alias, AP_PeerSocket::Type type, const AP_Uint32 timeout) |
AP_Bool | Create (void) |
Create the class and register to CarLinO with alias _m_name. | |
AP_String | DebugCommand (const AP_String &cmd) |
AP_Bool | debuggerStarted (void) const |
AP_Bool | DebugStart (const AP_String &local, const AP_String &remote, const AP_String &args, AP_String &response) |
AP_Bool | DebugStop (void) |
AP_Bool | DeregisterPrimitive (const AP_String &name) |
AP_Bool | Destroy (void) |
Destroy CarLinO_leash class. | |
virtual void | Dispatcher (const CarLinO_message *message)=0 |
Pure virtual interface. | |
AP_Bool | GoalSend (const AP_String &name, const GOAL_Object::ObjectType type, const AP_String &cmd, const AP_String &value="") |
AP_ProcessAttribute * | processAttribute (void) const |
Inline. | |
CarLinO_list | QueryProcess (const AP_String &alias, const AP_String &primitive) |
Register primitive to CarLinO_core. | |
AP_Bool | RegisterPrimitive (const AMICO_primitive_call &primitive) |
AP_Bool | WaitForProcesses (const AP_String &list) |
virtual | ~CarLinO_leash (void) |
Main class destructor. | |
Private Member Functions | |
void | run (void) |
Private Attributes | |
AMICO_attribute | _m_attribute |
AP_Uint16 | _m_available_port |
AMICO_link_table | _m_connections_incoming |
AMICO_link_table | _m_connections_outcoming |
CarLinO_param | _m_param |
AMICO_primitive_table | _m_primitive_table |
AP_ProcessAttribute * | _m_processAttribute |
AP_Bool | _m_remote_debugger_started |
_m_param | ||
_m_attribute | ||
_m_primitives |
CarLinO_leash | ( | const AP_String & | name | ) |
Main class constructor.
name | Name of application. This name will be register in CarLinO_core and will be used from other process to point to this application. | |
param | Process parameters for application. It is the main runtime parameters for CarLinO policies as: memory needed, CPU load needed, number of thread used, and so on (see CarLinO_param class). |
~CarLinO_leash | ( | void | ) | [virtual] |
Main class destructor.
AMICO_link * ConnectToProcess | ( | const AP_String & | alias, | |
AP_PeerSocket::Type | type, | |||
const AP_Uint32 | timeout | |||
) |
AP_Bool Create | ( | void | ) |
Create the class and register to CarLinO with alias _m_name.
AP_Bool debuggerStarted | ( | void | ) | const [inline] |
AP_Bool DebugStart | ( | const AP_String & | local, | |
const AP_String & | remote, | |||
const AP_String & | args, | |||
AP_String & | response | |||
) |
AP_Bool DebugStop | ( | void | ) |
AP_Bool DeregisterPrimitive | ( | const AP_String & | name | ) |
AP_Bool Destroy | ( | void | ) |
Destroy CarLinO_leash class.
virtual void Dispatcher | ( | const CarLinO_message * | message | ) | [pure virtual] |
Pure virtual interface.
Implemented in CGdb, Console, cudev_leash, Goal, class1, class2, class3, and my_carlino.
AP_Bool GoalSend | ( | const AP_String & | name, | |
const GOAL_Object::ObjectType | type, | |||
const AP_String & | cmd, | |||
const AP_String & | value = "" | |||
) |
AP_ProcessAttribute* processAttribute | ( | void | ) | const [inline] |
Inline.
CarLinO_list QueryProcess | ( | const AP_String & | alias, | |
const AP_String & | primitive | |||
) |
Register primitive to CarLinO_core.
AP_Bool RegisterPrimitive | ( | const AMICO_primitive_call & | primitive | ) |
void run | ( | void | ) | [private, virtual] |
AP_Bool WaitForProcesses | ( | const AP_String & | list | ) |
AMICO_attribute _m_attribute [private] |
AP_Uint16 _m_available_port [private] |
AMICO_link_table _m_connections_incoming [private] |
AMICO_link_table _m_connections_outcoming [private] |
CarLinO_param _m_param [private] |
AMICO_primitive_table _m_primitive_table [private] |
AP_ProcessAttribute* _m_processAttribute [private] |
AP_Bool _m_remote_debugger_started [private] |