SingleCommandZeroArguments Class Reference

This class represents a command with zero arguments which can only occur once in a given commandline. More...

#include <singlecommand.h>

Inheritance diagram for SingleCommandZeroArguments:
Command Command_Benchmark

List of all members.

Public Member Functions

 SingleCommandZeroArguments (bool *ptr, const std::string &name, const std::string &shortName="", const std::string &infoText="")
bool execute (const std::vector< std::string > &)
 Executes this command with the given parameters.

Protected Attributes

bool * ptr_

Detailed Description

This class represents a command with zero arguments which can only occur once in a given commandline.

The pointer will be set to "true", if the command is executed The template must be usable within a stringstream (necessary for conversion)

See also:
SingleCommand

Definition at line 126 of file singlecommand.h.


Member Function Documentation

bool execute ( const std::vector< std::string > &  parameters  )  [inline, virtual]

Executes this command with the given parameters.

Parameters:
parameters The parameters needed for the execution of this command.
Returns:
true, if the execution was successful, false otherwise

Implements Command.

Definition at line 134 of file singlecommand.h.