In file NsgCmdRegistry.hxx:

class NsgCmdRegistry

Contains the registry of command strings associated with their appropriate NsgCmd objects that are responsible for executing that command eg "setTransform" -> NsgLimTransformCmd

Public Methods

virtual ~NsgCmdRegistry ()
Default constructor
void registerCmd ( NsgCmd* cmd )
Associates the command string in cmd with the instance of the command
NsgCmd* lookupCmd (string cmdToken )
Returns the NsgCmd object which is responsible for handling the command string given in cmdToken

Protected Fields

map <string, NsgCmd*> cmdRegistry
map of command names with their associated NsgCmd's

Documentation

Contains the registry of command strings associated with their appropriate NsgCmd objects that are responsible for executing that command eg "setTransform" -> NsgLimTransformCmd
void registerCmd( NsgCmd* cmd )
Associates the command string in cmd with the instance of the command. Overwrites any previous association for the same command string
Parameters:
cmd - An instance of the NsgCmd

NsgCmd* lookupCmd(string cmdToken )
Returns the NsgCmd object which is responsible for handling the command string given in cmdToken. If that command token is not found in the registry, returns NULL
Parameters:
cmdToken - the string that identifies the command


This class has no child classes.
Author:
Chris Scharver, Shalini Venkataraman

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de