Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rovsoft::messages::TimeStampedMessage Class Reference

The base class for all messages with time stamp. More...

#include <TimeStampedMessage.hh>

Inheritance diagram for rovsoft::messages::TimeStampedMessage:

Inheritance graph
[legend]
Collaboration diagram for rovsoft::messages::TimeStampedMessage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimeStampedMessage (unsigned short sa, unsigned short da)
virtual void write (io::OStreamer &out) const throw (io::IOExceptionPtr)
 Writes this message to a stream.
virtual int getSize () const
 Returns the size of the message = the number of bytes that would be written by write.
const ost::Datetime & getTimeStamp () const
 This method is not const because the common c++ classes do not have const methods, so the return reference can't be const and I don't want to copy too much.

Protected Attributes

ost::Datetime timestamp
 The time stamp of a message.

Detailed Description

The base class for all messages with time stamp.

The time stamp will contain the time and date of the creation of the message


Constructor & Destructor Documentation

rovsoft::messages::TimeStampedMessage::TimeStampedMessage unsigned short  sa,
unsigned short  da
[inline]
 


Member Function Documentation

int rovsoft::messages::TimeStampedMessage::getSize  )  const [virtual]
 

Returns the size of the message = the number of bytes that would be written by write.

(SA and DA are not included!)

Reimplemented from rovsoft::messages::Message.

Reimplemented in rovsoft::messages::TsFloatTypeMessage, and rovsoft::messages::TsUByteTypeMessage.

Here is the call graph for this function:

const ost::Datetime& rovsoft::messages::TimeStampedMessage::getTimeStamp  )  const [inline]
 

This method is not const because the common c++ classes do not have const methods, so the return reference can't be const and I don't want to copy too much.

void rovsoft::messages::TimeStampedMessage::write io::OStreamer out  )  const throw (io::IOExceptionPtr) [virtual]
 

Writes this message to a stream.

SA and DA are not written!!

Reimplemented from rovsoft::messages::Message.

Reimplemented in rovsoft::messages::TsFloatTypeMessage, and rovsoft::messages::TsUByteTypeMessage.

Here is the call graph for this function:


Member Data Documentation

ost::Datetime rovsoft::messages::TimeStampedMessage::timestamp [protected]
 

The time stamp of a message.


The documentation for this class was generated from the following files:
Generated on Tue May 31 14:20:15 2005 for Rovsoft by  doxygen 1.4.3