green::TemplateTable Class Reference

#include <TemplateTable.h>

Inheritance diagram for green::TemplateTable:

green::KeyNameTable< entryType > green::BehaviorTemplateTable green::MessageTemplateTable List of all members.

Public Member Functions

virtual ~TemplateTable ()
VariableTableInstancePtr Instantiate (Key key, ArgListPtr initArgs) const
void Print (std::ostream &os)

Protected Member Functions

VariableTableTemplatePtr _checkInstArgs (Key key, ArgListPtr initArgs) const
void _doInstantiate (VariableTableInstancePtr instance, VariableTableTemplatePtr templ, ArgListPtr args) const

Detailed Description

The TemplateTable class holds different kinds of game object templates, such as EntityTemplates and BehaviorTemplates. It also contains code to instantiate them.


Constructor & Destructor Documentation

virtual green::TemplateTable::~TemplateTable (  )  [inline, virtual]

Default destructor, declared virtual


Member Function Documentation

VariableTableInstancePtr green::TemplateTable::Instantiate ( Key  key,
ArgListPtr  initArgs 
) const [inline]

This function creates an instance of the template templateType, given a initializer list.

Parameters:
key the unique key for the template you wish to instantiate.
initArgs This is the list of values for the initializer list. Must be the same size as the initializer list format for the template in question, otherwise an Error will be thrown.
Returns:
Returns a shared_ptr to a new instance of the template.

Reimplemented in green::MessageTemplateTable.

void green::TemplateTable::Print ( std::ostream &  os  )  [inline]

Print the template table to an ostream

Parameters:
os The ostream to print to


The documentation for this class was generated from the following file:
Generated on Fri Apr 27 10:27:39 2007 for Green Engine by  doxygen 1.5.1