salsa 0.7.1
|
Base ConfigZyre class. More...
#include <ConfigZyre.hh>
Public Member Functions | |
ConfigZyre () | |
virtual | ~ConfigZyre () |
std::shared_ptr< Salsa::Node > | apply (std::vector< std::shared_ptr< Salsa::ActorZmq > > *targetActors) |
virtual bool | load (std::string file) |
void | filter (std::string const &f) |
virtual void | print () const |
Static Public Member Functions | |
static std::shared_ptr< spdlog::logger > | getConsoleOutput () |
Get console output. | |
static void | setConsoleLevel (spdlog::level::level_enum level) |
Sets console log level. | |
Protected Attributes | |
YAML::Node | mConfig |
YAML Configuration. | |
std::map< std::string, YAML::Node > | mFilter {} |
Filter list. | |
Private Member Functions | |
void | applyOptions (YAML::detail::iterator_value &src, YAML::Node &opt) |
void | findAndReplaceAll (std::string &data, std::string toSearch, std::string replaceStr) |
Static Private Attributes | |
static std::shared_ptr< spdlog::logger > | mspConsoleLogger = spdlog::stdout_color_mt("salsa") |
Pointer to spd logger. | |
Base ConfigZyre class.
Definition at line 16 of file ConfigZyre.hh.
Salsa::ConfigZyre::ConfigZyre | ( | ) |
Constructor
Definition at line 5 of file ConfigZyre.cc.
|
virtual |
Destructor
Definition at line 12 of file ConfigZyre.cc.
std::shared_ptr< Salsa::Node > Salsa::ConfigZyre::apply | ( | std::vector< std::shared_ptr< Salsa::ActorZmq > > * | targetActors | ) |
Apply config
Definition at line 19 of file ConfigZyre.cc.
References applyOptions(), Salsa::Config::filter(), Salsa::Object::getConsoleOutput(), Salsa::Config::mConfig, and Salsa::Config::mFilter.
|
private |
|
inherited |
Set Filter List
Definition at line 27 of file Config.cc.
References Salsa::Config::filter(), Salsa::Config::findAndReplaceAll(), and Salsa::Config::mFilter.
Referenced by apply(), and Salsa::Config::filter().
|
privateinherited |
|
inlinestaticinherited |
Get console output.
Definition at line 21 of file Object.hh.
References Salsa::Object::mspConsoleLogger.
Referenced by apply().
|
virtualinherited |
|
virtualinherited |
|
inlinestaticinherited |
Sets console log level.
Definition at line 29 of file Object.hh.
References Salsa::Object::mspConsoleLogger.
|
protectedinherited |
YAML Configuration.
Definition at line 30 of file Config.hh.
Referenced by apply(), Salsa::Config::load(), and Salsa::Config::print().
|
protectedinherited |
Filter list.
Definition at line 31 of file Config.hh.
Referenced by apply(), and Salsa::Config::filter().
|
staticprivateinherited |
Pointer to spd logger.
Definition at line 32 of file Object.hh.
Referenced by Salsa::Object::getConsoleOutput(), and Salsa::Object::setConsoleLevel().