OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::ParamDictionary Class Reference

Class to hold a dictionary of parameters for a single class. More...

#include <OgreStringInterface.h>

+ Collaboration diagram for Ogre::ParamDictionary:

Public Member Functions

 ParamDictionary ()
 
void addParameter (const ParameterDef &paramDef, ParamCommand *paramCmd)
 Method for adding a parameter definition for this class. More...
 
const ParameterListgetParameters (void) const
 Retrieves a list of parameters valid for this object. More...
 

Protected Member Functions

ParamCommandgetParamCommand (const String &name)
 Retrieves the parameter command object for a named parameter. More...
 
const ParamCommandgetParamCommand (const String &name) const
 

Protected Attributes

ParamCommandMap mParamCommands
 Command objects to get/set. More...
 
ParameterList mParamDefs
 Definitions of parameters. More...
 

Friends

class StringInterface
 

Detailed Description

Class to hold a dictionary of parameters for a single class.

Definition at line 88 of file OgreStringInterface.h.

Constructor & Destructor Documentation

Ogre::ParamDictionary::ParamDictionary ( )
inline

Definition at line 125 of file OgreStringInterface.h.

Member Function Documentation

void Ogre::ParamDictionary::addParameter ( const ParameterDef paramDef,
ParamCommand paramCmd 
)
inline

Method for adding a parameter definition for this class.

Parameters
paramDefA ParameterDef object defining the parameter
paramCmdPointer to a ParamCommand subclass to handle the getting / setting of this parameter. NB this class will not destroy this on shutdown, please ensure you do

Definition at line 132 of file OgreStringInterface.h.

References Ogre::ParameterDef::name.

ParamCommand* Ogre::ParamDictionary::getParamCommand ( const String name)
inlineprotected

Retrieves the parameter command object for a named parameter.

Definition at line 99 of file OgreStringInterface.h.

Referenced by Ogre::StringInterface::getParameter().

const ParamCommand* Ogre::ParamDictionary::getParamCommand ( const String name) const
inlineprotected

Definition at line 112 of file OgreStringInterface.h.

const ParameterList& Ogre::ParamDictionary::getParameters ( void  ) const
inline

Retrieves a list of parameters valid for this object.

Returns
A reference to a static list of ParameterDef objects.

Definition at line 142 of file OgreStringInterface.h.

Friends And Related Function Documentation

friend class StringInterface
friend

Definition at line 90 of file OgreStringInterface.h.

Member Data Documentation

ParamCommandMap Ogre::ParamDictionary::mParamCommands
protected

Command objects to get/set.

Definition at line 96 of file OgreStringInterface.h.

ParameterList Ogre::ParamDictionary::mParamDefs
protected

Definitions of parameters.

Definition at line 93 of file OgreStringInterface.h.

Referenced by Ogre::StringInterface::copyParametersTo().


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