ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <datapacker.h>

List of all members.

Public Types

enum  ModeEnum { NO_MODE, READ, WRITE }
enum  PackModeEnum { NO_PACKMODE, PACK, DONT_PACK }
enum  ReturnCodes {
  OK, BAD_POS, BAD_MODE, BAD_PACKMODE,
  READ_ERROR, WRITE_ERROR, BAD_READFUNC, BAD_WRITEFUNC,
  BAD_VALUE
}

Public Member Functions

 DataPacker ()
 ~DataPacker ()
 DataPacker (DataPacker &src)
DataPackeroperator= (DataPacker &b)
ReturnCodes open (const ModeEnum mode, const PackModeEnum packMode)
ReturnCodes put (const int value, Common::WriteStream *fh)
ReturnCodes Get (int &value, Common::SeekableReadStream *stream)
ReturnCodes close (Common::WriteStream *stream)
ReturnCodes close (Common::SeekableReadStream *stream)
int Pos () const
int PackMin () const
int PackMax () const

Private Member Functions

void ClearBuffer ()

Private Attributes

bool readMode
ModeEnum iMode
PackModeEnum iPackMode
int pos
int packMin
int packMax
unsigned char buffer [BUFFER_BYTE_SIZE]

Detailed Description

Definition at line 40 of file datapacker.h.


Member Enumeration Documentation

Enumerator:
NO_MODE 
READ 
WRITE 

Definition at line 51 of file datapacker.h.

Enumerator:
NO_PACKMODE 
PACK 
DONT_PACK 

Definition at line 53 of file datapacker.h.

Enumerator:
OK 
BAD_POS 
BAD_MODE 
BAD_PACKMODE 
READ_ERROR 
WRITE_ERROR 
BAD_READFUNC 
BAD_WRITEFUNC 
BAD_VALUE 

Definition at line 55 of file datapacker.h.


Constructor & Destructor Documentation

ICB::DataPacker::DataPacker (  ) 

Definition at line 33 of file datapacker.cpp.

ICB::DataPacker::~DataPacker (  ) 

Definition at line 47 of file datapacker.cpp.

ICB::DataPacker::DataPacker ( DataPacker src  ) 

Definition at line 280 of file datapacker.cpp.


Member Function Documentation

void ICB::DataPacker::ClearBuffer (  )  [private]

Definition at line 300 of file datapacker.cpp.

DataPacker::ReturnCodes ICB::DataPacker::close ( Common::WriteStream stream  ) 

Definition at line 241 of file datapacker.cpp.

DataPacker::ReturnCodes ICB::DataPacker::close ( Common::SeekableReadStream stream  ) 

Definition at line 264 of file datapacker.cpp.

DataPacker::ReturnCodes ICB::DataPacker::Get ( int &  value,
Common::SeekableReadStream stream 
)

Definition at line 164 of file datapacker.cpp.

DataPacker::ReturnCodes ICB::DataPacker::open ( const ModeEnum  mode,
const PackModeEnum  packMode 
)

Definition at line 50 of file datapacker.cpp.

DataPacker & ICB::DataPacker::operator= ( DataPacker b  ) 

Definition at line 283 of file datapacker.cpp.

int ICB::DataPacker::PackMax (  )  const [inline]

Definition at line 72 of file datapacker.h.

int ICB::DataPacker::PackMin (  )  const [inline]

Definition at line 71 of file datapacker.h.

int ICB::DataPacker::Pos (  )  const [inline]

Definition at line 70 of file datapacker.h.

DataPacker::ReturnCodes ICB::DataPacker::put ( const int  value,
Common::WriteStream fh 
)

Definition at line 83 of file datapacker.cpp.


Member Data Documentation

unsigned char ICB::DataPacker::buffer[BUFFER_BYTE_SIZE] [private]

Definition at line 85 of file datapacker.h.

Definition at line 79 of file datapacker.h.

Definition at line 80 of file datapacker.h.

int ICB::DataPacker::packMax [private]

Definition at line 83 of file datapacker.h.

int ICB::DataPacker::packMin [private]

Definition at line 82 of file datapacker.h.

int ICB::DataPacker::pos [private]

Definition at line 81 of file datapacker.h.

bool ICB::DataPacker::readMode [private]

Definition at line 77 of file datapacker.h.


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


Generated on Sat Sep 26 2020 05:03:38 for ResidualVM by doxygen 1.7.1
curved edge   curved edge