Public Member Functions | Private Attributes | List of all members
OCL::TCP::AliasCommand Class Reference

#include <command.hpp>

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

Public Member Functions

 AliasCommand (std::string name, std::string alias)
 
virtual RealCommandgetRealCommand (const std::vector< Command * > &cmds) const
 
virtual ~AliasCommand ()
 
- Public Member Functions inherited from OCL::TCP::Command
 Command (std::string name)
 
const std::string & getName () const
 
virtual bool is (std::string &cmd) const
 
bool operator!= (const std::string &cmp) const
 
bool operator< (const Command &cmp) const
 
bool operator== (const std::string &cmp) const
 
virtual ~Command ()
 

Private Attributes

std::string _alias
 

Additional Inherited Members

- Static Public Member Functions inherited from OCL::TCP::Command
static Commandfind (const std::vector< Command * > &cmds, const std::string &cmp)
 
- Protected Attributes inherited from OCL::TCP::Command
std::string _name
 

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 ( )
inlinevirtual

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 Mon Mar 23 2020 04:47:20