OGRE  1.9.0
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Ogre::ParamDictionary Class Reference

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

#include <OgreStringInterface.h>

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Friends

class StringInterface
 

Detailed Description

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

Definition at line 90 of file OgreStringInterface.h.

Constructor & Destructor Documentation

◆ ParamDictionary()

Ogre::ParamDictionary::ParamDictionary ( )

Definition at line 127 of file OgreStringInterface.h.

Member Function Documentation

◆ addParameter()

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

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 134 of file OgreStringInterface.h.

◆ getParamCommand() [1/2]

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

Retrieves the parameter command object for a named parameter.

Definition at line 101 of file OgreStringInterface.h.

◆ getParamCommand() [2/2]

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

Definition at line 114 of file OgreStringInterface.h.

◆ getParameters()

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

Retrieves a list of parameters valid for this object.

Returns
A reference to a static list of ParameterDef objects.

Definition at line 144 of file OgreStringInterface.h.

Friends And Related Symbol Documentation

◆ StringInterface

Definition at line 92 of file OgreStringInterface.h.

Member Data Documentation

◆ mParamCommands

ParamCommandMap Ogre::ParamDictionary::mParamCommands
protected

Command objects to get/set.

Definition at line 98 of file OgreStringInterface.h.

◆ mParamDefs

ParameterList Ogre::ParamDictionary::mParamDefs
protected

Definitions of parameters.

Definition at line 95 of file OgreStringInterface.h.


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