Planeshift
Public Member Functions | Protected Attributes

AdminCmdDataFactory Class Reference

Class containing object factory for AdminCmdData objects. More...

#include <adminmanager.h>

List of all members.

Public Member Functions

 AdminCmdDataFactory ()
AdminCmdDataFindFactory (csString datatypename)
 Search for a specific command data.
void RegisterMsgFactoryFunction (AdminCmdData *obj)
 Register a new AdminCmdData class.
virtual ~AdminCmdDataFactory ()

Protected Attributes

csPDelArray< AdminCmdDataadminCmdDatas
 storage for command data factory functions

Detailed Description

Class containing object factory for AdminCmdData objects.

Creates specific AdminCmdData objects on demand. The objects are stored and accessed by the command name that they have stored internally. AdminCmdData objects can be registered, so that objects of their type can be generated.

Definition at line 3332 of file adminmanager.h.


Constructor & Destructor Documentation

AdminCmdDataFactory::AdminCmdDataFactory ( )
virtual AdminCmdDataFactory::~AdminCmdDataFactory ( ) [virtual]

Member Function Documentation

AdminCmdData* AdminCmdDataFactory::FindFactory ( csString  datatypename)

Search for a specific command data.

Parameters:
datatypenameName of the command to search for (including /)
Returns:
AdminCmdData is the search result or null if not found.
void AdminCmdDataFactory::RegisterMsgFactoryFunction ( AdminCmdData obj)

Register a new AdminCmdData class.

Parameters:
objfor a new AdminCmdData class

Member Data Documentation

storage for command data factory functions

Definition at line 3356 of file adminmanager.h.


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