CommandBinding< T > Class Template Reference

This template defines a binding from the specified alias to the specified CommandObject. More...

#include <CommandBinding.h>

List of all members.

Public Member Functions

 CommandBinding (const char *alias, const CommandObject< T > &command)
 Constructs a new CommandBinding with the specified alias to the specified CommandObject.
 ~CommandBinding ()
 Destructor, a noop.
const CommandObject
< T > & 
getCommand () const
 Returns the command associated with this binding.
bool fullName () const
 Whether the binding should only allow full matches.

Public Attributes

const char * m_alias
 The alias associated with this binding.


Detailed Description

template<typename T>
class CommandBinding< T >

This template defines a binding from the specified alias to the specified CommandObject.

Definition at line 36 of file CommandBinding.h.


Constructor & Destructor Documentation

template<typename T>
CommandBinding< T >::CommandBinding ( const char *  alias,
const CommandObject< T > &  command 
) [inline]

Constructs a new CommandBinding with the specified alias to the specified CommandObject.

Definition at line 59 of file CommandBinding.h.

template<typename T>
CommandBinding< T >::~CommandBinding (  )  [inline]

Destructor, a noop.

Definition at line 67 of file CommandBinding.h.


Member Function Documentation

template<typename T>
const CommandObject< T > & CommandBinding< T >::getCommand (  )  const [inline]

Returns the command associated with this binding.

Definition at line 73 of file CommandBinding.h.

template<typename T>
bool CommandBinding< T >::fullName (  )  const [inline]

Whether the binding should only allow full matches.

Definition at line 80 of file CommandBinding.h.


Member Data Documentation

template<typename T>
const char* CommandBinding< T >::m_alias

The alias associated with this binding.

Public to optimize the binary search for speed.

Definition at line 52 of file CommandBinding.h.


Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo