VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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
 Get the given range info.
int GetNumRanges ()
 Get the number of entries in the table.
bool SetRange (int id, trpgRange &)
 Set the range info for the given ID.
int AddRange (trpgRange &)
 Add a new range and return the ID.
int FindAddRange (trpgRange &)
 Find a matching range and return it or add a new one if needed.
bool Write (trpgWriteBuffer &)
 Writes this class to a write buffer.
bool Read (trpgReadBuffer &)
 Reads this class from a read buffer.
bool Print (trpgPrintBuffer &) const
 Prints this class to a print buffer.
void Reset (void)
 Resets the contents back to empty.
trpgRangeTableoperator= (const trpgRangeTable &)
 Assignment operator.
- 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
 Returns the state of the valid flag, or can be overriden by a subclass to do a more complex check.
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.

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 Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)