VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
trpgRangeTable Class Reference
Inheritance diagram for trpgRangeTable:
Inheritance graph
[legend]

Public Member Functions

 trpgRangeTable (void)
 
 ~trpgRangeTable (void)
 
bool GetRange (int id, trpgRange &) const
 
int GetNumRanges ()
 
bool SetRange (int id, trpgRange &)
 
int AddRange (trpgRange &)
 
int FindAddRange (trpgRange &)
 
bool Write (trpgWriteBuffer &)
 
bool Read (trpgReadBuffer &)
 
bool Print (trpgPrintBuffer &) const
 
void Reset (void)
 
trpgRangeTableoperator= (const trpgRangeTable &)
 
- Public Member Functions inherited from trpgReadWriteable
 trpgReadWriteable ()
 
const chargetErrMess () const
 
- Public Member Functions inherited from trpgCheckable
 trpgCheckable (void)
 
virtual ~trpgCheckable (void)
 
bool isValid (void) const
 
virtual TeAttrHdl GetHandle () const
 
virtual void SetHandle (TeAttrHdl hdl)
 

Protected Types

typedef std::map< int, trpgRangeRangeMapType
 

Protected Attributes

RangeMapType rangeMap
 
- Protected Attributes inherited from trpgReadWriteable
char errMess [512]
 
- Protected Attributes inherited from trpgCheckable
bool valid
 
TeAttrHdl handle
 
bool writeHandle
 

Member Typedef Documentation

typedef std::map<int,trpgRange> trpgRangeTable::RangeMapType
protected

Constructor & Destructor Documentation

trpgRangeTable::trpgRangeTable ( void  )
trpgRangeTable::~trpgRangeTable ( void  )

Member Function Documentation

bool trpgRangeTable::GetRange ( int  id,
trpgRange  
) const

Get the given range info.

int trpgRangeTable::GetNumRanges ( )
inline

Get the number of entries in the table.

References int().

bool trpgRangeTable::SetRange ( int  id,
trpgRange  
)

Set the range info for the given ID.

int trpgRangeTable::AddRange ( trpgRange )

Add a new range and return the ID.

int trpgRangeTable::FindAddRange ( trpgRange )

Find a matching range and return it or add a new one if needed.

bool trpgRangeTable::Write ( trpgWriteBuffer )
virtual

Writes this class to a write buffer.

Implements trpgReadWriteable.

bool trpgRangeTable::Read ( trpgReadBuffer )
virtual

Reads this class from a read buffer.

Reimplemented from trpgReadWriteable.

bool trpgRangeTable::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

void trpgRangeTable::Reset ( void  )
virtual

Resets the contents back to empty.

Implements trpgReadWriteable.

trpgRangeTable& trpgRangeTable::operator= ( const trpgRangeTable )

Assignment operator.

Member Data Documentation

RangeMapType trpgRangeTable::rangeMap
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)