MOOS 0.2375
Public Member Functions | Protected Attributes
CMessager Class Reference
Inheritance diagram for CMessager:
Inheritance graph
[legend]
Collaboration diagram for CMessager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CMessager ()
bool OnNewMail (MOOSMSG_LIST &Mail)
bool Iterate ()
bool OnConnectToServer ()
bool OnStartup ()
void MakePublisher (int nSize)

Protected Attributes

int _nSize
bool _bPublisher

Detailed Description

Definition at line 14 of file main.cpp.


Constructor & Destructor Documentation

CMessager::CMessager ( ) [inline]

Definition at line 17 of file main.cpp.


Member Function Documentation

bool CMessager::Iterate ( ) [inline, virtual]

called when the application should iterate. Overload this function in a derived class and within it write all the application specific code. It will be called at approximately nFreq = 1/AppTick Hz

Reimplemented from CMOOSApp.

Definition at line 27 of file main.cpp.

void CMessager::MakePublisher ( int  nSize) [inline]

Definition at line 52 of file main.cpp.

bool CMessager::OnConnectToServer ( ) [inline, virtual]

Called when the class has succesully connected to the server. Overload this function and place use it to register for notification when variables of interest change

Reimplemented from CMOOSApp.

Definition at line 37 of file main.cpp.

bool CMessager::OnNewMail ( MOOSMSG_LIST NewMail) [inline, virtual]

called when new mail has arrived. Overload this method in a derived class to process new mail. It will be called at approximately 1/CommsTick Hz. In this function you'll most likely interate over the collection of mail message received or call a m_Comms::PeekMail() to look for a specific named message.

Parameters:
NewMaila list of new mail messages

Reimplemented from CMOOSApp.

Definition at line 20 of file main.cpp.

bool CMessager::OnStartup ( ) [inline]

Definition at line 44 of file main.cpp.


Member Data Documentation

Definition at line 61 of file main.cpp.

int CMessager::_nSize [protected]

Definition at line 60 of file main.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines