VR-Forces 4.1.1 Class Documentation
List of all members | Public Member Functions | Protected Attributes
DtConsoleCommandOwner Class Reference

A utility class for use with DtConsoleCommandManager. More...

Public Member Functions

 DtConsoleCommandOwner (DtConsoleCommandManager *cmdMgr)
virtual ~DtConsoleCommandOwner ()
virtual void addCommand (const DtString &commandString, DtConsoleCommand *command)
 Adds this command to the DtConsoleCommandManager.

Protected Attributes

DtConsoleCommandManagermyCommandManager
std::list< DtConsoleCommand * > myCommandList

Private Member Functions

 DtConsoleCommandOwner ()
 Not Implemented.
 DtConsoleCommandOwner (const DtConsoleCommandOwner &orig)
 Not Implemented.
DtConsoleCommandOwneroperator= (const DtConsoleCommandOwner &orig)
 Not Implemented.

Detailed Description

A utility class for use with DtConsoleCommandManager.

This class takes ownership of an arbitrary number of DtConsoleCommands when it registers them with the manager. When this class is destroyed, it unregisters the commands from the manager and deletes them.

Constructor & Destructor Documentation

DtConsoleCommandOwner::DtConsoleCommandOwner ( DtConsoleCommandManager cmdMgr)
virtual DtConsoleCommandOwner::~DtConsoleCommandOwner ( )
virtual
DtConsoleCommandOwner::DtConsoleCommandOwner ( )
private

Not Implemented.

DtConsoleCommandOwner::DtConsoleCommandOwner ( const DtConsoleCommandOwner orig)
private

Not Implemented.

Member Function Documentation

DtConsoleCommandOwner& DtConsoleCommandOwner::operator= ( const DtConsoleCommandOwner orig)
private

Not Implemented.

virtual void DtConsoleCommandOwner::addCommand ( const DtString commandString,
DtConsoleCommand command 
)
virtual

Adds this command to the DtConsoleCommandManager.

Takes ownership of this command, and will delete it when destroyed.

Member Data Documentation

DtConsoleCommandManager* DtConsoleCommandOwner::myCommandManager
protected
std::list<DtConsoleCommand*> DtConsoleCommandOwner::myCommandList
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)