Cern
LibTmsApi 2.3.0

#include <BoapSimple.h>

Inheritance diagram for BoapPacket:
BBufferStore BBuffer

Public Member Functions

 BoapPacket ()
 
 ~BoapPacket ()
 
BUInt32 getCmd ()
 
int peekHead (BoapPacketHead &head)
 
int pushHead (BoapPacketHead &head)
 
int popHead (BoapPacketHead &head)
 
void updateHead ()
 
 BoapPacket ()
 
 ~BoapPacket ()
 
int resize (int size)
 
BError setData (void *data, int nbytes)
 
int nbytes ()
 
char * data ()
 
int pushHead (BoapPacketHead &head)
 
int push (Int8 v)
 
int push (UInt8 v)
 
int push (Int16 v)
 
int push (UInt16 v)
 
int push (Int32 v)
 
int push (UInt32 v)
 
int push (BString &v)
 
int push (Double v)
 
int push (BError &v)
 
int push (UInt32 nBytes, const void *data)
 
int popHead (BoapPacketHead &head)
 
int pop (Int8 &v)
 
int pop (UInt8 &v)
 
int pop (Int16 &v)
 
int pop (UInt16 &v)
 
int pop (Int32 &v)
 
int pop (UInt32 &v)
 
int pop (BString &v)
 
int pop (Double &v)
 
int pop (BError &v)
 
int pop (UInt32 nBytes, void *data)
 
- Public Member Functions inherited from BBufferStore
 BBufferStore (BUInt size=0, int swapBytes=BBigEndian)
 
 ~BBufferStore ()
 
BUInt32 getPos ()
 
void setPos (BUInt32 pos)
 
BString getHexString ()
 
void setHexString (BString s)
 
int push (BInt8 v)
 
int push (BUInt8 v)
 
int push (BInt16 v)
 
int push (BUInt16 v)
 
int push (BInt32 v)
 
int push (BUInt32 v)
 
int push (BInt64 v)
 
int push (BUInt64 v)
 
int push (BFloat32 v)
 
int push (BFloat64 v)
 
int push (const BString &v)
 
int push (const BError &v)
 
int push (const BTimeStamp &v)
 
int push (const BComplex &v)
 
int push (BUInt32 nBytes, const void *data, const char *swapType="1")
 
int pop (BInt8 &v)
 
int pop (BUInt8 &v)
 
int pop (BInt16 &v)
 
int pop (BUInt16 &v)
 
int pop (BInt32 &v)
 
int pop (BUInt32 &v)
 
int pop (BInt64 &v)
 
int pop (BUInt64 &v)
 
int pop (BFloat32 &v)
 
int pop (BFloat64 &v)
 
int pop (BString &v)
 
int pop (BError &v)
 
int pop (BTimeStamp &v)
 
int pop (BComplex &v)
 
int pop (BUInt32 nBytes, void *data, const char *swapType="1")
 
- Public Member Functions inherited from BBuffer
 BBuffer (BUInt size=0)
 Create and manipulate a data buffer. On creation the buffer size defaults to 1024 bytes.
 
 ~BBuffer ()
 
int setSize (BUInt32 size)
 Sets the bufer size.
 
int setData (const void *data, BUInt32 size)
 Sets buffer data resized to contain the data.
 
int writeData (BUInt32 pos, const void *data, BUInt32 size)
 Writes data into buffer from offset pos.
 
char * data ()
 The data.
 
BUInt32 size ()
 Size of the buffer in bytes.
 
int resize (BUInt32 size)
 Alternative to setSize()
 

Private Member Functions

void updateLen ()
 

Private Attributes

int osize
 
int onbytes
 
char * odata
 
int opos
 

Additional Inherited Members

- Protected Attributes inherited from BBufferStore
BUInt32 opos
 
int oswapBytes
 
- Protected Attributes inherited from BBuffer
BUInt32 odataSize
 
char * odata
 
BUInt32 osize
 

Constructor & Destructor Documentation

◆ BoapPacket() [1/2]

BoapPacket::BoapPacket ( )

◆ ~BoapPacket() [1/2]

BoapPacket::~BoapPacket ( )

◆ BoapPacket() [2/2]

BoapPacket::BoapPacket ( )

◆ ~BoapPacket() [2/2]

BoapPacket::~BoapPacket ( )

Member Function Documentation

◆ data()

char * BoapPacket::data ( )

◆ getCmd()

BUInt32 BoapPacket::getCmd ( )

◆ nbytes()

int BoapPacket::nbytes ( )

◆ peekHead()

int BoapPacket::peekHead ( BoapPacketHead head)

◆ pop() [1/10]

int BoapPacket::pop ( BError v)

◆ pop() [2/10]

int BoapPacket::pop ( BString v)

◆ pop() [3/10]

int BoapPacket::pop ( Double v)

◆ pop() [4/10]

int BoapPacket::pop ( Int16 v)

◆ pop() [5/10]

int BoapPacket::pop ( Int32 v)

◆ pop() [6/10]

int BoapPacket::pop ( Int8 v)

◆ pop() [7/10]

int BoapPacket::pop ( UInt16 v)

◆ pop() [8/10]

int BoapPacket::pop ( UInt32 v)

◆ pop() [9/10]

int BoapPacket::pop ( UInt32  nBytes,
void *  data 
)

◆ pop() [10/10]

int BoapPacket::pop ( UInt8 v)

◆ popHead() [1/2]

int BoapPacket::popHead ( BoapPacketHead head)

◆ popHead() [2/2]

int BoapPacket::popHead ( BoapPacketHead head)

◆ push() [1/10]

int BoapPacket::push ( BError v)

◆ push() [2/10]

int BoapPacket::push ( BString v)

◆ push() [3/10]

int BoapPacket::push ( Double  v)

◆ push() [4/10]

int BoapPacket::push ( Int16  v)

◆ push() [5/10]

int BoapPacket::push ( Int32  v)

◆ push() [6/10]

int BoapPacket::push ( Int8  v)

◆ push() [7/10]

int BoapPacket::push ( UInt16  v)

◆ push() [8/10]

int BoapPacket::push ( UInt32  nBytes,
const void *  data 
)

◆ push() [9/10]

int BoapPacket::push ( UInt32  v)

◆ push() [10/10]

int BoapPacket::push ( UInt8  v)

◆ pushHead() [1/2]

int BoapPacket::pushHead ( BoapPacketHead head)

◆ pushHead() [2/2]

int BoapPacket::pushHead ( BoapPacketHead head)

◆ resize()

int BoapPacket::resize ( int  size)

◆ setData()

BError BoapPacket::setData ( void *  data,
int  nbytes 
)

◆ updateHead()

void BoapPacket::updateHead ( )

◆ updateLen()

void BoapPacket::updateLen ( )
private

Member Data Documentation

◆ odata

char* BoapPacket::odata
private

◆ onbytes

int BoapPacket::onbytes
private

◆ opos

int BoapPacket::opos
private

◆ osize

int BoapPacket::osize
private

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