AMICO_Layer Class Reference

#include <AMICO_Layer.h>

Inherits AP::AP_Thread.

Inherited by MyClass.

Collaboration diagram for AMICO_Layer:

Collaboration graph

Public Types

enum  Link { MemoryLink, SocketLink }

Public Member Functions

 AMICO_Layer (const AP_String &alias, const Link type=SocketLink)
AP_Bool Create (void)
void Destroy (void)
virtual AP_Bool Dispatcher (AMICO_ActiveMessagePointer &message)=0
AP_Bool Post (const AP_String &target, const AMICO_ActiveMessage &message)
void run (void)
AMICO_ActiveMessageQueuerxQueue (void)
AP_Bool valid (void) const
 Inline.
virtual ~AMICO_Layer (void)

Private Member Functions

AMICO_LinklinkAlloc (const AP_String &alias)

Private Attributes

AMICO_ConnectionTable m_Connections
AMICO_Receiver m_Receiver
AMICO_ActiveMessageQueue m_RxQueue
AMICO_Linkm_Server
Link m_Type

Member Enumeration Documentation

enum Link

Enumerator:
MemoryLink 
SocketLink 


Constructor & Destructor Documentation

AMICO_Layer ( const AP_String alias,
const Link  type = SocketLink 
)

~AMICO_Layer ( void   )  [virtual]


Member Function Documentation

AP_Bool Create ( void   ) 

void Destroy ( void   ) 

virtual AP_Bool Dispatcher ( AMICO_ActiveMessagePointer message  )  [pure virtual]

AMICO_Link * linkAlloc ( const AP_String alias  )  [private]

AP_Bool Post ( const AP_String target,
const AMICO_ActiveMessage message 
)

void run ( void   )  [virtual]

Main thread function. It must be overloaded in your derived class. It has no parameter.

Example:
void run(void)
{
while(is_running())
{
... do something ...
}
}

Reimplemented from AP_Thread.

AMICO_ActiveMessageQueue* rxQueue ( void   )  [inline]

AP_Bool valid ( void   )  const [inline]

Inline.


Field Documentation

AMICO_Link* m_Server [private]

Link m_Type [private]


The documentation for this class was generated from the following files:

Generated on Fri Mar 5 16:50:45 2010 for CarLinO by  doxygen 1.5.8