Slice Tools
Home
SourceForge Page
libFoundation
Home
Class Hierarchy
Class List
Class Members
Examples
|
|
Foundation Class Reference#include <Foundation.hh>
List of all members.
Detailed Description
Wrapper Class to ease use of Options, Configuration Files, and Logging. - Examples:
-
example-configfile.cc, example-logging.cc, example-minimal.cc, example-minimal.out, example-options.cc, and example-options.out.
Constructor & Destructor Documentation
Foundation::Foundation |
( |
std::string |
version, |
|
|
std::string |
helptext, |
|
|
std::string |
dependencies, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
|
|
|
Constructor: Initializes options.
Initializes Options, ConfigFile, and Logger based on command line options. Used for automatic incorporation of standard options.
- Parameters:
-
version | Version information for program if --version or -V is given |
helptext | Short help text to display if --help of -h is given |
dependencies | Dependency information for --depend |
argc | Standard argument count |
argv | Standard array of strings for argument values |
|
|
Deletes logger, config file, and options handlers.
|
Member Function Documentation
void Foundation::disableOptionHelp |
( |
|
) |
|
|
|
Disables printing help on each option.
|
std::string Foundation::getHelpText |
( |
|
) |
|
|
Logger * Foundation::getLogger |
( |
|
) |
|
|
|
Gets the main log manager.
- Exceptions:
-
Exception | If a log manager was not created, which means handleStandardOptions was never called |
- Examples:
-
example-logging.cc.
|
Options * Foundation::getOptions |
( |
|
) |
|
|
std::string Foundation::getVersion |
( |
|
) |
|
|
void Foundation::handleStandardOptions |
( |
|
) |
|
|
void Foundation::printHelpText |
( |
|
) |
|
|
The documentation for this class was generated from the following files:
|