Pol  Rev 533
BPacket Class Reference

#include <packetscrobj.h>

+ Inheritance diagram for BPacket:
+ Collaboration diagram for BPacket:

List of all members.

Public Member Functions

 BPacket ()
 BPacket (const BPacket &copyfrom)
 BPacket (u8 type, signed short length)
 BPacket (const unsigned char *data, unsigned short length, bool variable_len)
 ~BPacket ()
virtual BObjectImpcall_method (const char *methodname, Executor &ex)
virtual BObjectImpcall_method_id (const int id, Executor &ex, bool forcebuiltin=false)
virtual BObjectImpcopy () const
virtual BObjectRef get_member (const char *membername)
virtual BObjectRef get_member_id (const int id)
virtual std::string getStringRep () const
bool SetSize (u16 newsize)
BObjectImpSetSize (u16 newsize, bool giveReturn)
virtual size_t sizeEstimate () const
virtual const char * typeOf () const
virtual int typeOfInt () const

Public Attributes

vector< unsigned char > buffer
bool is_variable_length

Detailed Description

Definition at line 18 of file packetscrobj.h.


Constructor & Destructor Documentation

Definition at line 41 of file packetscrobj.cpp.

Referenced by copy().

+ Here is the caller graph for this function:

BPacket::BPacket ( const BPacket copyfrom)

Definition at line 45 of file packetscrobj.cpp.

BPacket::BPacket ( u8  type,
signed short  length 
)

Definition at line 50 of file packetscrobj.cpp.

References buffer, is_variable_length, and BObjectImp::type().

+ Here is the call graph for this function:

BPacket::BPacket ( const unsigned char *  data,
unsigned short  length,
bool  variable_len 
)

Definition at line 67 of file packetscrobj.cpp.

References is_variable_length.

Definition at line 72 of file packetscrobj.cpp.


Member Function Documentation

BObjectImp * BPacket::call_method ( const char *  methodname,
Executor ex 
) [virtual]

Reimplemented from BObjectImp.

Definition at line 530 of file packetscrobj.cpp.

References call_method_id(), getKnownObjMethod(), and ObjMethod::id.

+ Here is the call graph for this function:

BObjectImp * BPacket::copy ( void  ) const [virtual]

Implements BObjectImp.

Definition at line 859 of file packetscrobj.cpp.

References BPacket().

+ Here is the call graph for this function:

BObjectRef BPacket::get_member ( const char *  membername) [virtual]

Reimplemented from BObjectImp.

Definition at line 80 of file packetscrobj.cpp.

References UninitObject::create(), get_member_id(), getKnownObjMember(), and ObjMember::id.

+ Here is the call graph for this function:

BObjectRef BPacket::get_member_id ( const int  id) [virtual]

Reimplemented from BObjectImp.

Definition at line 76 of file packetscrobj.cpp.

Referenced by get_member().

+ Here is the caller graph for this function:

std::string BPacket::getStringRep ( ) const [virtual]

Implements BObjectImp.

Definition at line 863 of file packetscrobj.cpp.

References buffer, OSTRINGSTREAM, and OSTRINGSTREAM_STR.

bool BPacket::SetSize ( u16  newsize)

Definition at line 873 of file packetscrobj.cpp.

References buffer, ctBEu16, and is_variable_length.

Referenced by call_method_id().

+ Here is the caller graph for this function:

BObjectImp * BPacket::SetSize ( u16  newsize,
bool  giveReturn 
)

Definition at line 884 of file packetscrobj.cpp.

References buffer, ctBEu16, and is_variable_length.

virtual size_t BPacket::sizeEstimate ( ) const [inline, virtual]

Implements BObjectImp.

Definition at line 36 of file packetscrobj.h.

References buffer.

virtual const char* BPacket::typeOf ( ) const [inline, virtual]

Reimplemented from BObjectImp.

Definition at line 37 of file packetscrobj.h.

virtual int BPacket::typeOfInt ( ) const [inline, virtual]

Reimplemented from BObjectImp.

Definition at line 38 of file packetscrobj.h.

References BObjectImp::OTPacket.


Member Data Documentation

Definition at line 40 of file packetscrobj.h.

Referenced by BPacket(), call_method_id(), and SetSize().


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