CommandInfoObject< T > Class Template Reference

This template may be used in a similar way to the CommandObject template. More...

#include <CommandInfoObject.h>

Inheritance diagram for CommandInfoObject< T >:

Inheritance graph
[legend]

List of all members.

Public Types

typedef void(T::* CommandFunction )(const std::string &argument)
 The type of the function to bind on.

Public Member Functions

 CommandInfoObject (const char *name, CommandFunction command, bool needobject=false, bool needlock=false, bool fullname=false)
 Construct a CommandInfoObject, using CommandObject to bind the specified function to the specified name.
bool needObject () const
 Whether this command requires an object.
bool needLock () const
 Whether this command requires a lock.


Detailed Description

template<class T>
class CommandInfoObject< T >

This template may be used in a similar way to the CommandObject template.

The difference is that this template allows specifying additional information. As such, this template provides only functionality to retreive that information.

See also:
CommandObject

Definition at line 40 of file CommandInfoObject.h.


Member Typedef Documentation

template<class T>
typedef void(T::* CommandInfoObject< T >::CommandFunction)(const std::string &argument)

The type of the function to bind on.

Reimplemented from CommandObject< T >.

Definition at line 43 of file CommandInfoObject.h.


Constructor & Destructor Documentation

template<class T>
CommandInfoObject< T >::CommandInfoObject ( const char *  name,
CommandFunction  command,
bool  needobject = false,
bool  needlock = false,
bool  fullname = false 
) [inline]

Construct a CommandInfoObject, using CommandObject to bind the specified function to the specified name.

Definition at line 60 of file CommandInfoObject.h.


Member Function Documentation

template<class T>
bool CommandInfoObject< T >::needObject (  )  const [inline]

Whether this command requires an object.

Definition at line 69 of file CommandInfoObject.h.

template<class T>
bool CommandInfoObject< T >::needLock (  )  const [inline]

Whether this command requires a lock.

Definition at line 75 of file CommandInfoObject.h.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo