Slice Tools
Home
SourceForge Page
libFoundation
Home
Class Hierarchy
Class List
Class Members
Examples
|
|
StringOptionResult Class Reference#include <OptionResult.hh>
Inheritance diagram for StringOptionResult:
List of all members.
Detailed Description
Class for managing results of Floats.
|
Public Member Functions |
| StringOptionResult (const std::string &optionHelp, std::string *result) |
| Constructor sets defaults for string class, constructs base class.
|
| ~StringOptionResult () |
| Empty deconstructor.
|
void | writeDefault () |
| If a result pointer is set, prints out its value.
|
void | setVal (const std::string &name, const std::string &val) |
| Writes the value to the result pointer.
|
Constructor & Destructor Documentation
StringOptionResult::StringOptionResult |
( |
const std::string & |
optionHelp, |
|
|
std::string * |
result |
|
) |
|
|
|
Constructor sets defaults for string class, constructs base class.
|
Member Function Documentation
void StringOptionResult::setVal |
( |
const std::string & |
name, |
|
|
const std::string & |
val |
|
) |
[virtual] |
|
|
Writes the value to the result pointer.
Saves a copy of the value as the raw value and writes the value unchanged to the result pointer.
- See also:
- validateArgumentCount
Implements OptionResult. |
void StringOptionResult::writeDefault |
( |
|
) |
[virtual] |
|
|
If a result pointer is set, prints out its value.
Note: This is identical in the concrete classes, because the base class has no concept of a result pointer
Implements OptionResult. |
The documentation for this class was generated from the following files:
|