|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Template class for command-line options of arbitrary value type. More...
#include <FFaCmdLineArg.H>


Public Member Functions | |
| FFaCmdLineEntry (const std::string &text, const T &value, bool showToAll) | |
| The constructor initializes the class attributes and option values. More... | |
| virtual | ~FFaCmdLineEntry () |
| Empty destructor. More... | |
| virtual bool | hasValue () const |
| Checks if this option has been assigned a non-empty value. More... | |
| virtual bool | hasDefault () const |
| Checks if this option has been assigned a non-empty default value. More... | |
| virtual int | convertOption (const std::string &) |
| Converts the command-line option value from the given string. More... | |
| virtual std::string | getDefaultString () const |
| Composes the default section of the help text for this option. More... | |
| virtual std::string | getValueString (bool noDefaults) const |
| Returns a string representation of the command-line option value. More... | |
| const T & | getValue () const |
| Returns the actual command-line option value. More... | |
| virtual void | reset () |
| Resets the option to its default value. More... | |
| bool | hasValue () const |
| Checks if a string option has been assigned a non-empty value. More... | |
| bool | hasDefault () const |
| Checks if a string option has been assigned a non-empty default value. More... | |
| bool | hasDefault () const |
| Checks if an int vector option has been assigned a non-empty default value. More... | |
| bool | hasDefault () const |
| Checks if a double vector option has been assigned a non-empty default value. More... | |
| std::string | getDefaultString () const |
| Composes the default section of the help text for a string option. More... | |
| std::string | getValueString (bool noDefaults) const |
| Returns a string representation of a string option value. More... | |
| std::string | getDefaultString () const |
| Composes the default section of the help text for a string option. More... | |
| std::string | getValueString (bool noDefaults) const |
| Returns a string representation of a bool option value. More... | |
| int | convertOption (const std::string &value) |
| Converts the command-line option to an int value. More... | |
| int | convertOption (const std::string &value) |
| Converts the command-line option to a float value. More... | |
| int | convertOption (const std::string &value) |
| Converts the command-line option to a double value. More... | |
| int | convertOption (const std::string &value) |
| Converts the command-line option to a vector of integers. More... | |
| int | convertOption (const std::string &value) |
| Converts the command-line option to a vector of doubles. More... | |
| int | convertOption (const std::string &value) |
| Converts the command-line option to a string value. More... | |
| int | convertOption (const std::string &value) |
| Converts the command-line option to a bool value. More... | |
| const DoubleVec & | getValue () const |
| Returns a vector of doubles command-line option value. More... | |
| const IntVec & | getValue () const |
| Returns a vector of integers command-line option value. More... | |
Public Member Functions inherited from FFaCmdLineEntryBase | |
| virtual | ~FFaCmdLineEntryBase () |
| Empty destructor. More... | |
Protected Member Functions | |
| virtual std::string | toString (const T &value) const |
| Returns the string representation of the specified value. More... | |
| std::string | toString (const IntVec &value) const |
| Returns a string representation of a vector of integers. More... | |
| std::string | toString (const DoubleVec &value) const |
| Returns a string representation of a vector of doubles. More... | |
Protected Member Functions inherited from FFaCmdLineEntryBase | |
| FFaCmdLineEntryBase (const std::string &text, bool showToAll) | |
| The constructor initializes the class attributes. More... | |
Private Attributes | |
| T | myValue |
| The assigned value of this command-line option. More... | |
| T | myDefault |
| The default value of this command-line option. More... | |
Additional Inherited Members | |
Protected Attributes inherited from FFaCmdLineEntryBase | |
| std::string | myHelpText |
| Text description of this command-line option. More... | |
| bool | iAmSetOnCmdLine |
| true if this option has been specified More... | |
| bool | isPublic |
| true unless this option is hidden More... | |
Template class for command-line options of arbitrary value type.
|
inline |
The constructor initializes the class attributes and option values.
|
inlinevirtual |
Empty destructor.
|
inlinevirtual |
Converts the command-line option value from the given string.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Converts the command-line option to an int value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Converts the command-line option to a float value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Converts the command-line option to a double value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Converts the command-line option to a vector of integers.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Converts the command-line option to a vector of doubles.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Converts the command-line option to a string value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Converts the command-line option to a bool value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Composes the default section of the help text for this option.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Composes the default section of the help text for a string option.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Composes the default section of the help text for a string option.
Implements FFaCmdLineEntryBase.
|
inline |
Returns the actual command-line option value.
|
inline |
Returns a vector of doubles command-line option value.
|
inline |
Returns a vector of integers command-line option value.
|
inlinevirtual |
Returns a string representation of the command-line option value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Returns a string representation of a string option value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Returns a string representation of a bool option value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Checks if this option has been assigned a non-empty default value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Checks if a string option has been assigned a non-empty default value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Checks if an int vector option has been assigned a non-empty default value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Checks if a double vector option has been assigned a non-empty default value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Checks if this option has been assigned a non-empty value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Checks if a string option has been assigned a non-empty value.
Implements FFaCmdLineEntryBase.
|
inlinevirtual |
Resets the option to its default value.
Implements FFaCmdLineEntryBase.
|
inlineprotected |
Returns a string representation of a vector of doubles.
|
inlineprotected |
Returns a string representation of a vector of integers.
|
inlineprotectedvirtual |
Returns the string representation of the specified value.
|
private |
The default value of this command-line option.
|
private |
The assigned value of this command-line option.