18 static KTCommandLineOption< int >
sTestConfigStringCLO(
"Test Configurable",
"Command-line option for testing",
"int-data",
'i');
20 KTLOGGER(testparamlog,
"KTTestConfigurable");
26 fStringData(
"not configured")
38 if (node.has(
"int-data"))
41 KTINFO(testparamlog,
"Configured integer (= existing value if not provided): " <<
fIntData);
46 KTINFO(testparamlog,
"Configured double (= existing value if not provided): " <<
fDoubleData);
48 KTINFO(testparamlog,
"Configured string (= existing value if not provided): " <<
fStringData);
52 KTINFO(testparamlog,
"Configured integer from CL (= existing value if not provided): " <<
fIntData);
59 KTINFO(testparamlog,
"Final configuration of KTTestConfigurable:\n" <<
60 "\tInt data: " <<
fIntData <<
"\n" <<
static KTCommandLineOption< int > sTestConfigStringCLO("Test Configurable", "Command-line option for testing", "int-data", 'i')
bool Configure(const scarab::param_node &node)
Should perform parameter store and command-line configurations.
XReturnType GetCommandLineValue(const std::string &aCLOption)
Return the value of a command line option; throws an exception if the value was not set...
virtual ~KTTestConfigurable()
KTLOGGER(applog, "KTApplication")
KTTestConfigurable(const std::string &name="test-configurable")
KTCommandLineHandler * fCLHandler
Contains the logger class and macros, based on Kasper's KLogger class.