A Command which lists all available components. More...
#include <ListComponentsCommand.h>
Public Member Functions | |
| ListComponentsCommand () | |
| Constructs a ListComponentsCommand. More... | |
| virtual | ~ListComponentsCommand () |
| virtual bool | Execute (GXemul &gxemul, const vector< string > &arguments) |
| Executes the command on a given GXemul instance. More... | |
| virtual string | GetShortDescription () const |
| Returns a short (one-line) description of the command. More... | |
| virtual string | GetLongDescription () const |
| Returns a long description/help message for the command. More... | |
Public Member Functions inherited from Command | |
| Command (const string &name, const string &argumentFormat) | |
| Constructs a Command. More... | |
| virtual | ~Command ()=0 |
| const string & | GetCommandName () const |
| Gets the name of the command. More... | |
| const string & | GetArgumentFormat () const |
| Gets the argument format for the command. More... | |
| virtual bool | MayBeReexecutedWithoutArgs () const |
| Returns whether the command can be quickly re-executed using an empty command line. More... | |
Public Member Functions inherited from ReferenceCountable | |
| ReferenceCountable () | |
| Default constructor, which initializes the reference count to zero. More... | |
| ~ReferenceCountable () | |
Additional Inherited Members | |
Static Public Member Functions inherited from Command | |
| static void | RunUnitTests (int &nSucceeded, int &nFailures) |
Static Public Member Functions inherited from UnitTestable | |
| static void | RunUnitTests (int &nSucceeded, int &nFailures) |
| Runs unit test cases. More... | |
A Command which lists all available components.
Definition at line 40 of file ListComponentsCommand.h.
| ListComponentsCommand::ListComponentsCommand | ( | ) |
Constructs a ListComponentsCommand.
Definition at line 33 of file ListComponentsCommand.cc.
|
virtual |
Definition at line 39 of file ListComponentsCommand.cc.
|
virtual |
Executes the command on a given GXemul instance.
| gxemul | A reference to the GXemul instance. |
| arguments | A vector of zero or more string arguments. |
Implements Command.
Definition at line 44 of file ListComponentsCommand.cc.
References ComponentFactory::CreateComponent(), ComponentFactory::GetAllComponentNames(), ComponentFactory::GetAttribute(), GXemul::GetUI(), refcount_ptr< T >::IsNULL(), and UI::ShowDebugMessage().
|
virtual |
Returns a long description/help message for the command.
Implements Command.
Definition at line 84 of file ListComponentsCommand.cc.
|
virtual |
Returns a short (one-line) description of the command.
Implements Command.
Definition at line 78 of file ListComponentsCommand.cc.
1.8.17