NamedObject Class Reference

This class creates named objects. More...

#include <NamedObject.h>

Inherited by Animation, and MenuObject.

List of all members.


Public Member Functions

const char * getName ()

Protected Member Functions

 NamedObject (XMLNode *xml)

Private Attributes

std::string name

Static Private Attributes

static int counter = 0

Detailed Description

This class creates named objects.

Many parts of the 3dMenu-library depend on named objects. The names are stored in an XML-file. This class provides the functionality for reading and storing these names.

This class should be used as base-class. Direct object instantiation is NOT intended. Therefore, this class has a protected constructor.

Date:
23rd of March 2007
Author:
Thomas Weberndorfer

Constructor & Destructor Documentation

NamedObject::NamedObject ( XMLNode xml  )  [protected]

The constructor sets the name of this object.

Parameters:
xml This XMLNode -object has to contain the needed name.


Member Function Documentation

const char * NamedObject::getName (  ) 

This method returns the name, which has been retrieved from the XML-file.

Returns:
the object-name


Member Data Documentation

int NamedObject::counter = 0 [static, private]

std::string NamedObject::name [private]


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

Generated on Wed Oct 20 16:11:58 2010 for inVRs by doxygen 1.5.8