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

PXXPayloadEnvelope Class Reference

#include <PXXPayloadEnvelope.h>

Inheritance diagram for PXXPayloadEnvelope:

PXXVUnpackable PXXObject PXXVAttWritable TObject List of all members.

Public Member Functions

 SET_LOGGER ("PXXPayloadEnvelope")
 PXXPayloadEnvelope ()
virtual ~PXXPayloadEnvelope ()
virtual Int32b_t GetPayloadLength () const
virtual Int32b_t GetPayloadType () const
virtual Long64b_t GetUniversalTime64b () const
virtual Int32b_t GetUnpackedEnvelopeSize ()
virtual void WriteProperties ()
virtual void SetPayloadLength (Int32b_t l)
virtual void SetPayloadType (Int32b_t t)
virtual void SetUniversalTime64b (Long64b_t t)

Detailed Description

PXXPayloadEnvelope //

This is the envelope class which placed on the top of every payloads. // The envelope in java payloads must be written in BIG_ENDIAN. // The payload type is assigned 4bytes, however, only lower two bytes are used // then users can use the field to correct endianness of decoder. // format of payload envelope *** // Field | Size | Description // ---------------|---------|------------------------------------------------- // record length | 4 bytes | total payload length including the envelope // payload type | 4 bytes | indicates payload type in the lower two bytes // universal time | 8 bytes | rap-cal unique time // --------------------------------------------------------------------------- //

Author:
Kotoyo Hoshina 23/Aug/05 //


Constructor & Destructor Documentation

PXXPayloadEnvelope::PXXPayloadEnvelope  ) 
 

Constructor. All value of fields are set to 0.

virtual PXXPayloadEnvelope::~PXXPayloadEnvelope  )  [inline, virtual]
 

Destructor.


Member Function Documentation

virtual Int32b_t PXXPayloadEnvelope::GetPayloadLength  )  const [virtual]
 

Returns the length in bytes of this payload including the envelope. If the length is -INT_MAX, send error the program.

virtual Int32b_t PXXPayloadEnvelope::GetPayloadType  )  const [virtual]
 

returns the payload type If the payload type is -INT_MAX, send error the program.

virtual Long64b_t PXXPayloadEnvelope::GetUniversalTime64b  )  const [virtual]
 

returns the Payload interface type as defined in the PXXPayloadInterfaceRegistry. If the payload interface type is -INT_MAX, send error the program.

virtual Int32b_t PXXPayloadEnvelope::GetUnpackedEnvelopeSize  )  [inline, virtual]
 

returns the size of the envelope itself. It is fixed 16. See class description.

Returns:
int ... size of the envelope

PXXPayloadEnvelope::SET_LOGGER "PXXPayloadEnvelope"   ) 
 

virtual void PXXPayloadEnvelope::SetPayloadLength Int32b_t  l  )  [inline, virtual]
 

Use the set function only when you cannot use Unpack() method...

virtual void PXXPayloadEnvelope::SetPayloadType Int32b_t  t  )  [inline, virtual]
 

Use the set function only when you cannot use Unpack() method...

virtual void PXXPayloadEnvelope::SetUniversalTime64b Long64b_t  t  )  [inline, virtual]
 

Use the set function only when you cannot use Unpack() method...

virtual void PXXPayloadEnvelope::WriteProperties  )  [virtual]
 

Write informations to the output stream

Implements PXXVAttWritable.


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


Generated on Thu Nov 10 14:06:36 2005 by doxygen version 1.4.1