orxonox::Template Class Reference

#include <src/core/Template.h>

Inheritance diagram for orxonox::Template:

orxonox::BaseObject orxonox::OrxonoxClass

List of all members.

Public Member Functions

void applyOn (BaseObject *object)
virtual void changedName ()
 This function gets called if the name of the object changes.
const std::stringgetBaseclass () const
IdentifiergetBaseclassIdentifier () const
const std::stringgetLink () const
bool getLoadDefaults () const
const TiXmlElementgetXMLElement () const
void setBaseclass (const std::string &baseclass)
void setLink (const std::string &link)
void setLoadDefaults (bool bLoadDefaults)
void setXMLElement (const TiXmlElement &xmlelement)
 Template (BaseObject *creator)
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~Template ()

Static Public Member Functions

static void apply (const std::string &name, BaseObject *object)
static TemplategetTemplate (const std::string &name)
static std::map< std::string,
Template * > & 
getTemplateMap ()

Private Attributes

std::string baseclass_
IdentifierbaseclassIdentifier_
bool bIsLink_
bool bIsReturningXMLElement_
bool bLoadDefaults_
std::string link_
TiXmlElementxmlelement_


Constructor & Destructor Documentation

orxonox::Template::Template ( BaseObject creator  ) 

orxonox::Template::~Template (  )  [virtual]


Member Function Documentation

void orxonox::Template::apply ( const std::string name,
BaseObject object 
) [static]

References getTemplateMap().

void orxonox::Template::applyOn ( BaseObject object  ) 

void orxonox::Template::changedName (  )  [virtual]

This function gets called if the name of the object changes.

Reimplemented from orxonox::BaseObject.

References COUT, orxonox::BaseObject::getName(), orxonox::BaseObject::getOldName(), getTemplateMap(), and SUPER.

const std::string& orxonox::Template::getBaseclass (  )  const [inline]

Referenced by XMLPort().

Identifier* orxonox::Template::getBaseclassIdentifier (  )  const [inline]

const std::string& orxonox::Template::getLink (  )  const [inline]

Referenced by XMLPort().

bool orxonox::Template::getLoadDefaults (  )  const [inline]

Referenced by XMLPort().

Template * orxonox::Template::getTemplate ( const std::string name  )  [static]

std::map< std::string, Template * > & orxonox::Template::getTemplateMap (  )  [static]

const TiXmlElement & orxonox::Template::getXMLElement (  )  const

void orxonox::Template::setBaseclass ( const std::string baseclass  ) 

References baseclass_, baseclassIdentifier_, and ClassByString.

Referenced by XMLPort().

void orxonox::Template::setLink ( const std::string link  )  [inline]

Referenced by XMLPort().

void orxonox::Template::setLoadDefaults ( bool  bLoadDefaults  )  [inline]

Referenced by XMLPort().

void orxonox::Template::setXMLElement ( const TiXmlElement xmlelement  ) 

References xmlelement_.

Referenced by XMLPort().

void orxonox::Template::XMLPort ( Element &  xmlelement,
XMLPort::Mode  mode 
) [virtual]

XML loading and saving.

Parameters:
xmlelement The XML-element
loading Loading (true) or saving (false)
Returns:
The XML-element

Reimplemented from orxonox::BaseObject.

References getBaseclass(), getLink(), getLoadDefaults(), setBaseclass(), setLink(), setLoadDefaults(), setXMLElement(), SUPER, and XMLPortParam.


Member Data Documentation

Referenced by setBaseclass().

Referenced by applyOn(), setBaseclass(), and Template().

Referenced by getXMLElement(), and Template().

Referenced by getXMLElement(), and Template().

Referenced by applyOn(), and Template().

Referenced by getXMLElement().


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

Generated on Tue Jul 28 16:23:10 2009 for Orxonox by  doxygen 1.5.6