ContRap-Core
|
Class ArgCommand is a command which has a list of arguments. More...
#include <command.h>
Public Member Functions | |
ArgCommand (const DPtr &first=DPtr::bottom, const DPtr &second=DPtr::bottom, const DPtr &third=DPtr::bottom) | |
Creates the command with its first arguments. | |
virtual | ~ArgCommand () |
Virtual destructor. | |
const DPtr & | first () const |
Returns the first argument. | |
size_t | size () const |
Returns the number of arguments. | |
void | add_argument (const DPtr &argument) |
Adds an argument. | |
SPtr< List > & | get_arguments () |
Returns the arguments. | |
const SPtr< List > & | get_arguments () const |
Returns the arguments. | |
Protected Attributes | |
SPtr< List > | arguments |
Pointer to the list. |
Class ArgCommand is a command which has a list of arguments.
crp::ArgCommand::ArgCommand | ( | const DPtr & | first = DPtr::bottom , |
const DPtr & | second = DPtr::bottom , |
||
const DPtr & | third = DPtr::bottom |
||
) |
Creates the command with its first arguments.
first | First argument |
second | Second argument |
third | Third argument |
virtual crp::ArgCommand::~ArgCommand | ( | ) | [inline, virtual] |
Virtual destructor.
void crp::ArgCommand::add_argument | ( | const DPtr & | argument | ) | [inline] |
Adds an argument.
argument | Argument to add |
const DPtr& crp::ArgCommand::first | ( | ) | const [inline] |
Returns the first argument.
First argument
Returns the arguments.
Returns the arguments.
size_t crp::ArgCommand::size | ( | ) | const [inline] |
Returns the number of arguments.
SPtr<List> crp::ArgCommand::arguments [protected] |
Pointer to the list.