|
Confdump Agent
1.4.0
|
Configuration class affecting the behaviour of Confdump. More...
#include <Options.hpp>
Public Types | |
| enum | LogLevel { Trace, Debug, Info, Warning, Error } |
| enum | OutputFormat { TextFormat, XmlFormat } |
| enum | OperatingMode { NormalMode, HelpMode, HelpTablesMode } |
| typedef QList< std::pair < QString, QString > > | TableList |
Public Member Functions | |
| Options (int argc, char **argv, std::ostream &out) | |
| ~Options () | |
| TableList | tables () const |
| LogLevel | logLevel () const |
| OutputFormat | outputFormat () const |
| QString | outputFile () const |
| OperatingMode | operatingMode () const |
| std::map< QString, DumperSpecification > | dumperSpecifications () const |
Private Types | |
| typedef std::map< QString, QString > | DumperAliases |
| Pair: alias => implementation name. | |
| typedef std::map< QString, std::map< QString, QString > > | DumperArguments |
| Pair: alias => ( map name => value ) | |
Private Member Functions | |
| Options () | |
| void | setVerbosity (const std::string &value) |
| void | setOutputFormat (const std::string &format) |
| void | setOutputFile (const std::string &file) |
| void | setTables (const std::vector< std::string > &tables) |
| void | readTablesFrom (const std::string &file) |
| void | setDumpers (const std::vector< std::string > &raw_dumpers) |
| void | setDumperArgs (const std::vector< std::string > &raw_args) |
Private Attributes | |
| TableList | tables_ |
| LogLevel | logLevel_ |
| OutputFormat | outputFormat_ |
| QString | outputFile_ |
| OperatingMode | operatingMode_ |
| DumperAliases | dumperAliases_ |
| DumperArguments | dumperArguments_ |
Configuration class affecting the behaviour of Confdump.
This immutable object is constructed from the command-line and then provides easy access to the command-line-requested behavior for the rest of the program.
Definition at line 39 of file Options.hpp.
typedef std::map<QString, QString> Confdump::Options::DumperAliases [private] |
Pair: alias => implementation name.
Definition at line 93 of file Options.hpp.
typedef std::map<QString, std::map<QString, QString> > Confdump::Options::DumperArguments [private] |
Pair: alias => ( map name => value )
Definition at line 96 of file Options.hpp.
| typedef QList< std::pair<QString, QString> > Confdump::Options::TableList |
Definition at line 70 of file Options.hpp.
Definition at line 45 of file Options.hpp.
Definition at line 60 of file Options.hpp.
Definition at line 54 of file Options.hpp.
| Confdump::Options::Options | ( | ) | [private] |
| Confdump::Options::Options | ( | int | argc, |
| char ** | argv, | ||
| std::ostream & | out | ||
| ) |
Definition at line 42 of file Options.cpp.
References HelpMode, HelpTablesMode, NormalMode, operatingMode_, readTablesFrom(), setDumperArgs(), setDumpers(), setOutputFile(), setOutputFormat(), and setTables().
Definition at line 130 of file Options.cpp.
| std::map< QString, DumperSpecification > Confdump::Options::dumperSpecifications | ( | ) | const |
Definition at line 224 of file Options.cpp.
References dumperAliases_, dumperArguments_, Confdump::DumperSpecification::name, and Confdump::DumperSpecification::parameters.
Referenced by main().
| LogLevel Confdump::Options::logLevel | ( | ) | const [inline] |
Definition at line 72 of file Options.hpp.
References logLevel_.
| OperatingMode Confdump::Options::operatingMode | ( | ) | const [inline] |
| QString Confdump::Options::outputFile | ( | ) | const [inline] |
| OutputFormat Confdump::Options::outputFormat | ( | ) | const [inline] |
| void Confdump::Options::readTablesFrom | ( | const std::string & | file | ) | [private] |
| void Confdump::Options::setDumperArgs | ( | const std::vector< std::string > & | raw_args | ) | [private] |
| void Confdump::Options::setDumpers | ( | const std::vector< std::string > & | raw_dumpers | ) | [private] |
| void Confdump::Options::setOutputFile | ( | const std::string & | file | ) | [private] |
| void Confdump::Options::setOutputFormat | ( | const std::string & | format | ) | [private] |
Definition at line 151 of file Options.cpp.
References outputFormat_, TextFormat, and XmlFormat.
Referenced by Options().
| void Confdump::Options::setTables | ( | const std::vector< std::string > & | tables | ) | [private] |
Definition at line 186 of file Options.cpp.
References tables(), and tables_.
Referenced by Options().
| void Confdump::Options::setVerbosity | ( | const std::string & | value | ) | [private] |
| Options::TableList Confdump::Options::tables | ( | ) | const |
Definition at line 265 of file Options.cpp.
References tables_.
Referenced by main(), and setTables().
Definition at line 94 of file Options.hpp.
Referenced by dumperSpecifications(), and setDumpers().
DumperArguments Confdump::Options::dumperArguments_ [mutable, private] |
Definition at line 97 of file Options.hpp.
Referenced by dumperSpecifications(), and setDumperArgs().
LogLevel Confdump::Options::logLevel_ [private] |
Definition at line 88 of file Options.hpp.
Referenced by logLevel(), and setVerbosity().
Definition at line 91 of file Options.hpp.
Referenced by operatingMode(), and Options().
QString Confdump::Options::outputFile_ [private] |
Definition at line 90 of file Options.hpp.
Referenced by outputFile(), and setOutputFile().
OutputFormat Confdump::Options::outputFormat_ [private] |
Definition at line 89 of file Options.hpp.
Referenced by outputFormat(), and setOutputFormat().
TableList Confdump::Options::tables_ [private] |
Definition at line 87 of file Options.hpp.
Referenced by readTablesFrom(), setTables(), and tables().
1.7.6.1