Zero Module Framework  1.0
A framework for running distributed modules using a ZMQ message bus
 All Classes Namespaces Files Functions Variables Friends Macros
zmf::config::ConfigurationProvider Class Reference

#include <ConfigurationProvider.hpp>

Inheritance diagram for zmf::config::ConfigurationProvider:

Public Member Functions

 ConfigurationProvider (const std::string &path="")
 
virtual ~ConfigurationProvider ()
 
virtual bool getAsString (const std::string &key, std::string &value) const
 
virtual bool getAsBoolean (const std::string &key, bool &value) const
 
virtual bool getAsInt (const std::string &key, int &value) const
 
virtual bool getAsDouble (const std::string &key, double &value) const
 

Detailed Description

Implementation of the IConfigurationProvider interface

Author
Jan Strauß
Date
created on 7/7/15.

Constructor & Destructor Documentation

zmf::config::ConfigurationProvider::ConfigurationProvider ( const std::string &  path = "")
inline

default constructor.

Parameters
pathto load the config from, will default to empty config
virtual zmf::config::ConfigurationProvider::~ConfigurationProvider ( )
inlinevirtual

Member Function Documentation

bool zmf::config::ConfigurationProvider::getAsBoolean ( const std::string &  key,
bool &  value 
) const
virtual
bool zmf::config::ConfigurationProvider::getAsDouble ( const std::string &  key,
double &  value 
) const
virtual
bool zmf::config::ConfigurationProvider::getAsInt ( const std::string &  key,
int &  value 
) const
virtual
bool zmf::config::ConfigurationProvider::getAsString ( const std::string &  key,
std::string &  value 
) const
virtual

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