ot::PhantomMiddlewareSink Class Reference

#include <PhantomMiddlewareSink.h>

Inheritance diagram for ot::PhantomMiddlewareSink:

Inheritance graph
[legend]
Collaboration diagram for ot::PhantomMiddlewareSink:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual int isEventGenerator ()
int getEventId ()
virtual void onEventGenerated (Event &event, Node &generator)

Public Attributes

int frequency
 frequency of updates
int cycle
int pid
unsigned char seq
short eid
std::string src
Phantom::Utils::MulticastSocketSender * mss

Protected Member Functions

 PhantomMiddlewareSink (const char *multicast_group, int frequency_, int pid_, short eid_, const std::string &src_)
 PhantomMiddlewareSink (const char *multicast_group, int frequency_, int pid_, short eid_)
virtual ~PhantomMiddlewareSink ()

Friends

class PhantomMiddlewareModule

Constructor & Destructor Documentation

ot::PhantomMiddlewareSink::PhantomMiddlewareSink const char *  multicast_group,
int  frequency_,
int  pid_,
short  eid_,
const std::string &  src_
[inline, protected]
 

constructor method,sets commend member

Parameters:
multicast_group_ the multicast group on which the node should broadcast events
frequency_ the frequency at which setEvent should be called

ot::PhantomMiddlewareSink::PhantomMiddlewareSink const char *  multicast_group,
int  frequency_,
int  pid_,
short  eid_
[inline, protected]
 

virtual ot::PhantomMiddlewareSink::~PhantomMiddlewareSink  )  [inline, protected, virtual]
 


Member Function Documentation

int ot::PhantomMiddlewareSink::getEventId  )  [inline]
 

virtual int ot::PhantomMiddlewareSink::isEventGenerator  )  [inline, virtual]
 

tests for EventGenerator interface being present. Is overriden to return 1 always.

Returns:
always 1

Reimplemented from ot::Node.

virtual void ot::PhantomMiddlewareSink::onEventGenerated Event event,
Node generator
[inline, virtual]
 

this method notifies the object that a new event was generated. It writes the event value out to the file and passes it on to its parent.

Parameters:
event reference to the new event. Do not change the event values, make a copy and change that !
generator reference to the EventGenerator object that notified the EventObserver.

Reimplemented from ot::Node.


Friends And Related Function Documentation

friend class PhantomMiddlewareModule [friend]
 


Member Data Documentation

int ot::PhantomMiddlewareSink::cycle
 

short ot::PhantomMiddlewareSink::eid
 

int ot::PhantomMiddlewareSink::frequency
 

frequency of updates

Phantom::Utils::MulticastSocketSender* ot::PhantomMiddlewareSink::mss
 

int ot::PhantomMiddlewareSink::pid
 

unsigned char ot::PhantomMiddlewareSink::seq
 

std::string ot::PhantomMiddlewareSink::src
 


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 15:33:40 2007 for NaviTrack by  doxygen 1.4.6