14 #include "param_codec.hh" 39 scarab::param_translator translator;
40 scarab::param_node optNode;
41 optNode.add(
"encoding",
new scarab::param_value(
"json" ) );
42 return Configure( translator.read_string( config, optNode )->as_node() );;
64 const scarab::param_node& node = KTConfigurator::get_instance()->Config();
::Nymph::KTLogger conflog("KTConfigurable")
virtual bool IsReady() const =0
Check if everything has been correctly configured.
virtual bool Configure(const scarab::param_node &node)=0
Should perform parameter store and command-line configurations.
virtual ~KTSelfConfigurable()
Parses and stores command-line options.
KTConfigurable(const std::string &name="default-name")
KTLOGGER(applog, "KTApplication")
KTSelfConfigurable(const std::string &name="default-self-name")
Contains KTCommandLineHandler.
virtual ~KTConfigurable()
virtual bool Configure()
Configure by getting the top-level node from the parameter store.
Contains the logger class and macros, based on Kasper's KLogger class.