47 const char* shortDescription,
48 const char* description,
49 bool acceptsNonParameterParam):
51 _shortDescription(shortDescription),
52 _description(description),
53 _acceptsNonParameter(acceptsNonParameterParam),
54 _printActions(
"time",
"Display and time each subcomputation.", false) {
65 ActionFactory getActionFactory() {
66 ActionFactory factory(
"action");
106 getActionFactory().getNamesWithPrefix(
"", names);
138 vector<Parameter*> tmp;
140 for (
size_t i = 0; i < tmp.size(); ++i)
auto_ptr< AbstractProduct > createWithPrefix(const NameFactory< AbstractProduct > &factory, const string &prefix)
Creates the unique product that has the indicated prefix, or create the actual product that has name ...
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
const char * getName() const
BoolParameter _printActions
static auto_ptr< Action > createActionWithPrefix(const string &prefix)
Action(const char *name, const char *shortDescription, const char *description, bool acceptsNonParameter)
virtual void parseCommandLine(unsigned int tokenCount, const char **tokens)
const char * getDescription() const
bool acceptsNonParameter() const
virtual void processNonParameter(const char *str)
const char * _shortDescription
virtual void obtainParameters(vector< Parameter * > ¶meters)
virtual bool displayAction() const
Returns whether this action should be shown to the user by the help action.
const char * _description
static void getActionNames(vector< string > &names)
bool _acceptsNonParameter
const Parameter & getParam(const string &name) const
const char * getShortDescription() const
const_iterator end() const
bool hasParam(const string &name) const
const_iterator begin() const
void parseCommandLine(unsigned int tokenCount, const char **tokens)
const Parameter & getParam(const string &name) const
void add(auto_ptr< Parameter > param)
A NameFactory takes a name and then creates an instance of a class that has been previously registere...
void reportInternalError(const string &errorMsg)
This header file includes common definitions and is included as the first line of code in every imple...