FEDEM Solver
R8.0
Source code of the dynamics solver
|
Abstract interface for command-line options. More...
#include <FFaCmdLineArg.H>
Public Member Functions | |
virtual | ~FFaCmdLineEntryBase () |
Empty destructor. More... | |
virtual bool | hasValue () const =0 |
Checks if this option has been assigned a non-empty value. More... | |
virtual bool | hasDefault () const =0 |
Checks if this option has been assigned a non-empty default value. More... | |
virtual int | convertOption (const std::string &)=0 |
Converts the command-line option value from the given string. More... | |
virtual std::string | getDefaultString () const =0 |
Composes the default section of the help text for this option. More... | |
virtual std::string | getValueString (bool=false) const =0 |
Returns a string representation of the command-line option value. More... | |
virtual void | reset ()=0 |
Resets the option to its default value. More... | |
Protected Member Functions | |
FFaCmdLineEntryBase (const std::string &text, bool showToAll) | |
The constructor initializes the class attributes. More... | |
Protected Attributes | |
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... | |
Friends | |
class | FFaCmdLineArg |
Abstract interface for command-line options.
|
inlineprotected |
The constructor initializes the class attributes.
|
inlinevirtual |
Empty destructor.
|
pure virtual |
Converts the command-line option value from the given string.
Implemented in FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, and FFaCmdLineEntry< T >.
|
pure virtual |
Composes the default section of the help text for this option.
Implemented in FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, and FFaCmdLineEntry< T >.
|
pure virtual |
Returns a string representation of the command-line option value.
Implemented in FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, and FFaCmdLineEntry< T >.
|
pure virtual |
Checks if this option has been assigned a non-empty default value.
Implemented in FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, FFaCmdLineEntry< T >, and FFaCmdLineEntry< T >.
|
pure virtual |
Checks if this option has been assigned a non-empty value.
Implemented in FFaCmdLineEntry< T >, and FFaCmdLineEntry< T >.
|
pure virtual |
Resets the option to its default value.
Implemented in FFaCmdLineEntry< T >.
|
friend |
|
protected |
true if this option has been specified
|
protected |
true unless this option is hidden
|
protected |
Text description of this command-line option.