salsa  0.4.0
Salsa::ConfigZyre Class Reference

Base ConfigZyre class. More...

#include <ConfigZyre.hh>

Inheritance diagram for Salsa::ConfigZyre:
Salsa::Config Salsa::Object

Public Member Functions

 ConfigZyre ()
 
virtual ~ConfigZyre ()
 
std::shared_ptr< Salsa::Nodeapply (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)
 

Detailed Description

Constructor & Destructor Documentation

◆ ConfigZyre()

Salsa::ConfigZyre::ConfigZyre ( )

Constructor

Definition at line 4 of file ConfigZyre.cc.

◆ ~ConfigZyre()

Salsa::ConfigZyre::~ConfigZyre ( )
virtual

Destructor

Definition at line 10 of file ConfigZyre.cc.

Member Function Documentation

◆ apply()

std::shared_ptr< Salsa::Node > Salsa::ConfigZyre::apply ( std::vector< std::shared_ptr< Salsa::ActorZmq >> *  targetActors)

◆ applyOptions()

void Salsa::ConfigZyre::applyOptions ( YAML::detail::iterator_value &  src,
YAML::Node &  opt 
)
private

Apply options

Definition at line 233 of file ConfigZyre.cc.

Referenced by apply().

◆ filter()

void Salsa::Config::filter ( std::string const &  f)
inherited

Set Filter List

Definition at line 27 of file Config.cc.

References Salsa::Config::findAndReplaceAll(), and Salsa::Config::mFilter.

Referenced by apply().

◆ load()

bool Salsa::Config::load ( std::string  file)
virtualinherited

Load config file

Definition at line 17 of file Config.cc.

References Salsa::Config::mConfig.

◆ print()

void Salsa::Config::print ( ) const
virtualinherited

Prints config file

Definition at line 61 of file Config.cc.

References Salsa::Config::mConfig.


The documentation for this class was generated from the following files: