Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

EvaUHPacket Class Reference

#include <evauhpacket.h>

Inherited by EvaUHInfoReply, EvaUHInfoRequest, EvaUHTransferReply, and EvaUHTransferRequest.

Inheritance diagram for EvaUHPacket:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 EvaUHPacket (const unsigned char *buf, const int len)
 EvaUHPacket (const bool isInfo)
virtual ~EvaUHPacket ()
const bool parse ()
const bool fill (unsigned char *buf, int *len)
const unsigned char getCommand ()
const int getNumPackets () const
const int getPacketNum () const
void setNumPackets (const int num)
void setPacketNum (const int num)
const bool isDataPacket ()

Protected Member Functions

virtual const bool parseBody ()
virtual const bool fillBody (unsigned char *buf, int *len)

Protected Attributes

int mBodyStart
unsigned char * buffer
int mBufferLen
unsigned short mVersion
bool mIsData

Private Member Functions

const int parseHead ()
const bool fillHead (unsigned char *buf)

Private Attributes

unsigned char mCommand
unsigned char mNumPackets
unsigned char mPacketNum

Static Private Attributes

static unsigned short seq_random = 0
static unsigned short seq_info = 0
static unsigned short seq_transfer = 0

Detailed Description

Definition at line 32 of file evauhpacket.h.


Constructor & Destructor Documentation

EvaUHPacket::EvaUHPacket const unsigned char *  buf,
const int  len
 

Definition at line 35 of file evauhpacket.cpp.

References buffer, mBodyStart, and mBufferLen.

EvaUHPacket::EvaUHPacket const bool  isInfo  ) 
 

Definition at line 51 of file evauhpacket.cpp.

References mCommand, UH_CMD_INFO, and UH_CMD_TRANSFER.

EvaUHPacket::~EvaUHPacket  )  [virtual]
 

Definition at line 58 of file evauhpacket.cpp.

References buffer.


Member Function Documentation

const bool EvaUHPacket::fill unsigned char *  buf,
int *  len
 

Definition at line 71 of file evauhpacket.cpp.

References fillBody(), fillHead(), and mBodyStart.

Here is the call graph for this function:

const bool EvaUHPacket::fillBody unsigned char *  buf,
int *  len
[protected, virtual]
 

Reimplemented in EvaUHInfoRequest, and EvaUHTransferRequest.

Definition at line 86 of file evauhpacket.cpp.

Referenced by fill().

const bool EvaUHPacket::fillHead unsigned char *  buf  )  [private]
 

Definition at line 118 of file evauhpacket.cpp.

References mBodyStart, mCommand, mNumPackets, mPacketNum, mVersion, seq_info, seq_random, seq_transfer, UH_CMD_INFO, UH_CMD_TRANSFER, and UH_HEAD_TAG.

Referenced by fill().

const unsigned char EvaUHPacket::getCommand  )  [inline]
 

Definition at line 45 of file evauhpacket.h.

References mCommand.

const int EvaUHPacket::getNumPackets  )  const [inline]
 

Definition at line 46 of file evauhpacket.h.

References mNumPackets.

const int EvaUHPacket::getPacketNum  )  const [inline]
 

Definition at line 47 of file evauhpacket.h.

References mPacketNum.

const bool EvaUHPacket::isDataPacket  )  [inline]
 

Definition at line 51 of file evauhpacket.h.

References mIsData.

const bool EvaUHPacket::parse  ) 
 

Definition at line 63 of file evauhpacket.cpp.

References mBodyStart, parseBody(), and parseHead().

Here is the call graph for this function:

const bool EvaUHPacket::parseBody  )  [protected, virtual]
 

Reimplemented in EvaUHInfoReply, and EvaUHTransferReply.

Definition at line 80 of file evauhpacket.cpp.

Referenced by parse().

const int EvaUHPacket::parseHead  )  [private]
 

Definition at line 92 of file evauhpacket.cpp.

References buffer, mCommand, mIsData, mNumPackets, mPacketNum, and UH_HEAD_TAG.

Referenced by parse().

void EvaUHPacket::setNumPackets const int  num  )  [inline]
 

Definition at line 48 of file evauhpacket.h.

References mNumPackets.

void EvaUHPacket::setPacketNum const int  num  )  [inline]
 

Definition at line 49 of file evauhpacket.h.

References mPacketNum.


Member Data Documentation

unsigned char* EvaUHPacket::buffer [protected]
 

Definition at line 56 of file evauhpacket.h.

Referenced by EvaUHPacket(), EvaUHTransferReply::parseBody(), EvaUHInfoReply::parseBody(), parseHead(), and ~EvaUHPacket().

int EvaUHPacket::mBodyStart [protected]
 

Definition at line 55 of file evauhpacket.h.

Referenced by EvaUHPacket(), fill(), fillHead(), parse(), EvaUHTransferReply::parseBody(), and EvaUHInfoReply::parseBody().

int EvaUHPacket::mBufferLen [protected]
 

Definition at line 57 of file evauhpacket.h.

Referenced by EvaUHPacket(), EvaUHTransferReply::parseBody(), and EvaUHInfoReply::parseBody().

unsigned char EvaUHPacket::mCommand [private]
 

Definition at line 64 of file evauhpacket.h.

Referenced by EvaUHPacket(), fillHead(), getCommand(), and parseHead().

bool EvaUHPacket::mIsData [protected]
 

Definition at line 59 of file evauhpacket.h.

Referenced by isDataPacket(), EvaUHTransferReply::parseBody(), and parseHead().

unsigned char EvaUHPacket::mNumPackets [private]
 

Definition at line 65 of file evauhpacket.h.

Referenced by fillHead(), getNumPackets(), parseHead(), and setNumPackets().

unsigned char EvaUHPacket::mPacketNum [private]
 

Definition at line 66 of file evauhpacket.h.

Referenced by fillHead(), getPacketNum(), parseHead(), and setPacketNum().

unsigned short EvaUHPacket::mVersion [protected]
 

Definition at line 58 of file evauhpacket.h.

Referenced by fillHead().

unsigned short EvaUHPacket::seq_info = 0 [static, private]
 

Definition at line 62 of file evauhpacket.h.

Referenced by fillHead().

unsigned short EvaUHPacket::seq_random = 0 [static, private]
 

Definition at line 61 of file evauhpacket.h.

Referenced by fillHead().

unsigned short EvaUHPacket::seq_transfer = 0 [static, private]
 

Definition at line 63 of file evauhpacket.h.

Referenced by fillHead().


The documentation for this class was generated from the following files:
Generated on Mon May 15 20:50:41 2006 for libeva by  doxygen 1.4.4