OpenASIP
2.0
|
#include <InfoCommand.hh>
Protected Types | |
typedef std::map< std::string, SimControlLanguageSubCommand * > | SubCommandMap |
container type for subcommands indexed by name More... | |
Protected Attributes | |
SubCommandMap | subCommands_ |
storage for subcommands More... | |
bool | isCompiledSimulation_ |
Is it a compiled simulation? More... | |
Additional Inherited Members | |
Protected Member Functions inherited from SimControlLanguageCommand | |
bool | setMemoryAddress (const std::string &addressString, std::string &addressSpaceName, std::size_t &memoryAddress) |
bool | setMemoryPointer (MemorySystem::MemoryPtr &memory, const std::string &addressSpaceName) |
Implementation of the "info" command of the Simulator Control Language.
Definition at line 48 of file InfoCommand.hh.
|
protected |
container type for subcommands indexed by name
Definition at line 57 of file InfoCommand.hh.
InfoCommand::InfoCommand | ( | bool | isCompiledSimulation = false | ) |
Constructor.
Sets the name of the command to the base class.
Definition at line 1415 of file InfoCommand.cc.
References isCompiledSimulation_, and subCommands_.
|
virtual |
Destructor.
Definition at line 1440 of file InfoCommand.cc.
References MapTools::deleteAllValues(), and subCommands_.
|
virtual |
Executes the "info" command.
Provides various information of the simulation.
arguments | Subcommand and possible arguments to the subcommand. |
Implements CustomCommand.
Definition at line 1453 of file InfoCommand.cc.
References assert, CustomCommand::checkArgumentCount(), SimControlLanguageSubCommand::execute(), CustomCommand::interpreter(), ScriptInterpreter::setError(), StringTools::stringToLower(), subCommands_, SimulatorToolbox::textGenerator(), and Texts::TXT_UNKNOWN_SUBCOMMAND.
|
virtual |
Returns the help text for this command.
Help text is searched from SimulatorTextGenerator.
Implements CustomCommand.
Definition at line 1485 of file InfoCommand.cc.
References Texts::TextGenerator::text(), SimulatorToolbox::textGenerator(), and Texts::TXT_INTERP_HELP_INFO.
|
protected |
Is it a compiled simulation?
Definition at line 62 of file InfoCommand.hh.
Referenced by InfoCommand().
|
protected |
storage for subcommands
Definition at line 59 of file InfoCommand.hh.
Referenced by execute(), InfoCommand(), and ~InfoCommand().