VR-Forces 5.0.2 Developer's Guide
 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 *)
 
void SetReference (trpgDiskRef)
 
void SetType (int)
 
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
 
void Reset (void)
 
bool Write (trpgWriteBuffer &)
 
bool Read (trpgReadBuffer &, bool)
 
bool Print (trpgPrintBuffer &) const
 
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
 
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)