|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::ICommand Class ReferenceCreate a function that can be call in realtime.
More...
#include <command.h>
Inheritance diagram for NLMISC::ICommand:
List of all members.
Detailed Description
Create a function that can be call in realtime.
Don't use this class directly but use the macro NLMISC_COMMAND -
Author:
-
Vianney Lecroart , Nevrax France
-
Date:
-
2001
Definition at line 176 of file command.h.
Member Typedef Documentation
typedef std::map<std::string, ICommand *> NLMISC::ICommand::TCommand
|
|
Member Enumeration Documentation
enum NLMISC::ICommand::TType
|
|
|
-
Enumeration values:
-
Definition at line 191 of file command.h. |
Constructor & Destructor Documentation
NLMISC::ICommand::ICommand |
( |
const char * |
commandName, |
|
|
const char * |
commandHelp, |
|
|
const char * |
commandArgs |
|
) |
|
|
virtual NLMISC::ICommand::ICommand::~ICommand |
( |
|
) |
[virtual] |
|
Member Function Documentation
void NLMISC::ICommand::execute |
( |
const std::string & |
commandWithArgs, |
|
|
NLMISC::CLog & |
log, |
|
|
bool |
quiet = false |
|
) |
[static] |
|
|
Executes the command and display output to the log -
Parameters:
-
quiet |
true if you don't want to display the "executing the command ...". |
Definition at line 103 of file command.cpp. |
virtual bool NLMISC::ICommand::execute |
( |
const std::vector< std::string > & |
args, |
|
|
NLMISC::CLog & |
log |
|
) |
[pure virtual] |
|
void NLMISC::ICommand::expand |
( |
std::string & |
commandName, |
|
|
NLMISC::CLog & |
log = *InfoLog |
|
) |
[static] |
|
|
Command name completion.
Case-sensitive. Displays the list after two calls with the same non-unique completion. Completes commands used with prefixes (such as "help " for example) as well.
Definition at line 252 of file command.cpp.
References NLMISC::CLog::displayNL, and NLMISC::strlwr. |
void NLMISC::ICommand::serialCommands |
( |
IStream & |
f |
) |
[static] |
|
Member Data Documentation
std::string NLMISC::ICommand::_CommandName [protected]
|
|
std::string NLMISC::ICommand::CommandArgs
|
|
bool NLMISC::ICommand::CommandsInit [static]
|
|
std::string NLMISC::ICommand::HelpString
|
|
TType NLMISC::ICommand::Type
|
|
The documentation for this class was generated from the following files:
|
|