Public Member Functions | Private Attributes
OCL::TCP::AliasCommand Class Reference

#include <command.hpp>

Inheritance diagram for OCL::TCP::AliasCommand:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AliasCommand (std::string name, std::string alias)
virtual RealCommandgetRealCommand (const std::vector< Command * > &cmds) const
virtual ~AliasCommand ()

Private Attributes

std::string _alias

Detailed Description

Another name for a command

Definition at line 130 of file command.hpp.


Constructor & Destructor Documentation

OCL::TCP::AliasCommand::AliasCommand ( std::string  name,
std::string  alias 
)

Definition at line 440 of file command.cpp.

virtual OCL::TCP::AliasCommand::~AliasCommand ( ) [inline, virtual]

Definition at line 137 of file command.hpp.


Member Function Documentation

RealCommand * OCL::TCP::AliasCommand::getRealCommand ( const std::vector< Command * > &  cmds) const [virtual]

Return a reference to the object which is really responsible for executing this command. This enables multiple names for the same command. Return 0 if no such command is founded.

Implements OCL::TCP::Command.

Definition at line 445 of file command.cpp.


Member Data Documentation

std::string OCL::TCP::AliasCommand::_alias [private]

Definition at line 133 of file command.hpp.


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


ocl
Author(s): OCL Development Team
autogenerated on Thu Jan 2 2014 11:38:09