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");
68 nameFactoryRegister<HilbertAction>(factory);
69 nameFactoryRegister<EulerAction>(factory);
70 nameFactoryRegister<IrreducibleDecomAction>(factory);
71 nameFactoryRegister<PrimaryDecomAction>(factory);
72 nameFactoryRegister<AlexanderDualAction>(factory);
73 nameFactoryRegister<AssociatedPrimesAction>(factory);
74 nameFactoryRegister<MaximalStandardAction>(factory);
75 nameFactoryRegister<DimensionAction>(factory);
76 nameFactoryRegister<OptimizeAction>(factory);
78 nameFactoryRegister<TransformAction>(factory);
79 nameFactoryRegister<PolyTransformAction>(factory);
81 nameFactoryRegister<IntersectionAction>(factory);
82 nameFactoryRegister<GenerateIdealAction>(factory);
83 nameFactoryRegister<FrobeniusAction>(factory);
84 nameFactoryRegister<DynamicFrobeniusAction>(factory);
85 nameFactoryRegister<GenerateFrobeniusAction>(factory);
86 nameFactoryRegister<AnalyzeAction>(factory);
87 nameFactoryRegister<LatticeFormatAction>(factory);
88 nameFactoryRegister<LatticeAnalyzeAction>(factory);
90 nameFactoryRegister<HelpAction>(factory);
91 nameFactoryRegister<TestAction>(factory);
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 ...
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)