class TRIPOpenMsg : public TRIPMsg

TRIPOpenMsg

Inheritance:


Public Fields

typedef vector TRIPParameter> > ParameterList

Public Methods

void addParameter(Sptr<TRIPParameter> parameter)
void checkSanity() throw(TRIPBadDataException&)
Checks the sanity of TRIP Msg, and throws a Bad Data exception
string className()
virtual void dump(ostream& os)
u_int16_t getHoldTime()
u_int16_t getItad()
const ParameterList& getParameters()
const TRIPId& getTripId()
TRIPOpCode getType()
bool isAOpenMsg()
void setHoldTimer(u_int16_t hTime)
TRIPOpenMsg(u_int16_t itadNumber, u_int32_t tripId, u_int16_t holdTime=240)
Default hold time is 240 seconds
void writeData(int id) throw(VNetworkException&)
Writes object to given network socket in network byte order

Private Fields

friend TRIPMsgParser

Private Methods

void parse(const char* data) throw(TRIPBadDataException&)
void parse(const TRIPHeader& hdr, const char* data) throw(TRIPBadDataException&)

Inherited from TRIPMsg:

Public Methods

const TRIPHeader& getHeader()
u_int16_t getMsgLength()
virtual bool isAKeepAliveMsg()
virtual bool isANotificationMsg()
virtual bool isAUpdateMsg()
friend ostream& operator<<(ostream& os, const TRIPMsg&)

Protected Fields

Sptr <TRIPHeader> _hdr

Protected Methods

void parseHeader(const char* data) throw(TRIPBadDataException&)
void setMsgLength(u_int16_t len)

Documentation

TRIPOpenMsg
typedef vector TRIPParameter> > ParameterList

TRIPOpenMsg(u_int16_t itadNumber, u_int32_t tripId, u_int16_t holdTime=240)
Default hold time is 240 seconds

bool isAOpenMsg()

TRIPOpCode getType()

u_int16_t getHoldTime()

virtual void dump(ostream& os)

void writeData(int id) throw(VNetworkException&)
Writes object to given network socket in network byte order

string className()

void checkSanity() throw(TRIPBadDataException&)
Checks the sanity of TRIP Msg, and throws a Bad Data exception

const ParameterList& getParameters()

void addParameter(Sptr<TRIPParameter> parameter)

void setHoldTimer(u_int16_t hTime)

u_int16_t getItad()

const TRIPId& getTripId()

void parse(const TRIPHeader& hdr, const char* data) throw(TRIPBadDataException&)

void parse(const char* data) throw(TRIPBadDataException&)

friend TRIPMsgParser


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de