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

Public Types

enum  { Local, External }
 

Public Member Functions

 trpgModel (void)
 
 trpgModel (const trpgModel &)
 
 ~trpgModel (void)
 
void SetName (const char *)
 Sets the name of the external model file and sets this model to External type. More...
 
void SetReference (trpgDiskRef)
 Sets the on-disk reference to an internal model and sets this model to Internal type. More...
 
void SetType (int)
 Sets the model type. More...
 
void SetNumTiles (int)
 
void AddTile (void)
 
bool GetType (int &)
 
bool GetName (char *ret, int strLen) const
 
bool GetReference (trpgDiskRef &) const
 
bool GetNumTiles (int &) const
 
bool isValid (void) const
 Validity check. More...
 
void Reset (void)
 Resets the contents back to empty. More...
 
bool Write (trpgWriteBuffer &)
 Writes this class to a write buffer. More...
 
bool Read (trpgReadBuffer &, bool)
 Reads this class from a read buffer. More...
 
bool Print (trpgPrintBuffer &) const
 Prints this class to a print buffer. More...
 
trpgModeloperator= (const trpgModel &)
 
int operator== (const trpgModel &) const
 
- Public Member Functions inherited from trpgReadWriteable
 trpgReadWriteable ()
 
virtual bool Read (trpgReadBuffer &)
 
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. More...
 
virtual TeAttrHdl GetHandle () const
 
virtual void SetHandle (TeAttrHdl hdl)
 

Protected Attributes

int type
 
charname
 
trpgDiskRef diskRef
 
int useCount
 
- Protected Attributes inherited from trpgReadWriteable
char errMess [512]
 
- Protected Attributes inherited from trpgCheckable
bool valid
 
TeAttrHdl handle
 
bool writeHandle
 

Member Enumeration Documentation

anonymous enum
Enumerator
Local 
External 

Constructor & Destructor Documentation

trpgModel::trpgModel ( void  )
trpgModel::trpgModel ( const trpgModel )
trpgModel::~trpgModel ( void  )

Member Function Documentation

void trpgModel::SetName ( const char )

Sets the name of the external model file and sets this model to External type.

5.28.04 - It will not set the model to be as of external type. Use the method from below to set the type of the model

void trpgModel::SetReference ( trpgDiskRef  )

Sets the on-disk reference to an internal model and sets this model to Internal type.

5.28.04 - It will not set the model to be as of internal type. Use the method from below to set the type of the model

void trpgModel::SetType ( int  )

Sets the model type.

void trpgModel::SetNumTiles ( int  )
void trpgModel::AddTile ( void  )
bool trpgModel::GetType ( int )
bool trpgModel::GetName ( char ret,
int  strLen 
) const
bool trpgModel::GetReference ( trpgDiskRef ) const
bool trpgModel::GetNumTiles ( int ) const
bool trpgModel::isValid ( void  ) const

Validity check.

void trpgModel::Reset ( void  )
virtual

Resets the contents back to empty.

Implements trpgReadWriteable.

bool trpgModel::Write ( trpgWriteBuffer )
virtual

Writes this class to a write buffer.

Implements trpgReadWriteable.

bool trpgModel::Read ( trpgReadBuffer ,
bool   
)

Reads this class from a read buffer.

bool trpgModel::Print ( trpgPrintBuffer ) const
virtual

Prints this class to a print buffer.

Reimplemented from trpgReadWriteable.

trpgModel& trpgModel::operator= ( const trpgModel )
int trpgModel::operator== ( const trpgModel ) const

Member Data Documentation

int trpgModel::type
protected
char* trpgModel::name
protected
trpgDiskRef trpgModel::diskRef
protected
int trpgModel::useCount
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)