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

Public Member Functions

 trpgr_Parser (void)
virtual ~trpgr_Parser (void)
bool isValid (void) const
virtual void AddCallback (trpgToken, trpgr_Callback *, bool destroy=true)
 Add and remove token callbacks.
virtual void AddCallback (trpgToken, trpgReadWriteable *)
virtual const trpgr_CallbackGetCallback (trpgToken tok) const
virtual trpgr_CallbackGetCallback (trpgToken tok)
virtual void RemoveCallback (trpgToken)
virtual void SetDefaultCallback (trpgr_Callback *, bool destroy=true)
virtual bool Parse (trpgReadBuffer &)
 Parse a read buffer.
virtual bool TokenIsValid (trpgToken)

Protected Attributes

void * lastObject
 Check token validity.

Private Types

typedef std::map< trpgToken,
trpgr_Token, std::less
< trpgToken > > 
tok_map
 Note: Just how slow is a map<> anyway? This usage is self-contained and could be replaced with an array.

Private Attributes

tok_map tokenMap
trpgr_Token defCb

Member Typedef Documentation

typedef std::map< trpgToken,trpgr_Token,std::less<trpgToken> > trpgr_Parser::tok_map
private

Note: Just how slow is a map<> anyway? This usage is self-contained and could be replaced with an array.

Constructor & Destructor Documentation

trpgr_Parser::trpgr_Parser ( void  )
virtual trpgr_Parser::~trpgr_Parser ( void  )
virtual

Member Function Documentation

bool trpgr_Parser::isValid ( void  ) const
virtual void trpgr_Parser::AddCallback ( trpgToken  ,
trpgr_Callback ,
bool  destroy = true 
)
virtual

Add and remove token callbacks.

virtual void trpgr_Parser::AddCallback ( trpgToken  ,
trpgReadWriteable  
)
virtual
virtual const trpgr_Callback* trpgr_Parser::GetCallback ( trpgToken  tok) const
virtual
virtual trpgr_Callback* trpgr_Parser::GetCallback ( trpgToken  tok)
virtual
virtual void trpgr_Parser::RemoveCallback ( trpgToken  )
virtual
virtual void trpgr_Parser::SetDefaultCallback ( trpgr_Callback ,
bool  destroy = true 
)
virtual
virtual bool trpgr_Parser::Parse ( trpgReadBuffer )
virtual

Parse a read buffer.

virtual bool trpgr_Parser::TokenIsValid ( trpgToken  )
virtual

Member Data Documentation

void* trpgr_Parser::lastObject
protected

Check token validity.

tok_map trpgr_Parser::tokenMap
private
trpgr_Token trpgr_Parser::defCb
private

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)