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

POSmallFileMsg Class Reference

#include <POSmallFileMsg.h>

Inheritance diagram for POSmallFileMsg:

POMessage List of all members.

Public Member Functions

 POSmallFileMsg (const string &srcname="", const string &destfile="")
 POSmallFileMsg (const POSmallFileMsg &cpy)
virtual ~POSmallFileMsg ()
string messageType () const
POMessageclone () const
int packsize () const
int pack (char *buffer) const
int unpack (char *buffer)
bool loadFile (const string &fname)
char * getFileData () const
int getFileSize () const
string getSrcFile () const
string getDestFile () const

Constructor & Destructor Documentation

POSmallFileMsg::POSmallFileMsg const string &  srcname = "",
const string &  destfile = ""
 

POSmallFileMsg::POSmallFileMsg const POSmallFileMsg cpy  ) 
 

POSmallFileMsg::~POSmallFileMsg  )  [virtual]
 


Member Function Documentation

POMessage * POSmallFileMsg::clone  )  const [virtual]
 

Creates an identical copy of this message. This function must be overloaded in derived classes.

Returns:
a copy of this message

Reimplemented from POMessage.

string POSmallFileMsg::getDestFile  )  const [inline]
 

char* POSmallFileMsg::getFileData  )  const [inline]
 

int POSmallFileMsg::getFileSize  )  const [inline]
 

string POSmallFileMsg::getSrcFile  )  const [inline]
 

bool POSmallFileMsg::loadFile const string &  fname  ) 
 

string POSmallFileMsg::messageType  )  const [inline, virtual]
 

Reimplemented from POMessage.

int POSmallFileMsg::pack char *  buffer  )  const
 

packs the message into a pre-alocated buffer of size >= packsize()

Parameters:
buffer - the buffer to pack into
Returns:
the number of bytes packed

Reimplemented from POMessage.

int POSmallFileMsg::packsize  )  const
 

calculates the number of bytes needed to pack this message

Returns:
size in bytes

Reimplemented from POMessage.

int POSmallFileMsg::unpack char *  buffer  ) 
 

unpacks the message, setting source, destination, and derived type

Parameters:
buffer the buffer to unpack, must be valid, no error checking
Returns:
the number of bytes unpacked

Reimplemented from POMessage.


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 12:49:29 2004 for pexpr by doxygen 1.3.4