KISSCPP
a C++ library for rapid application development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
kisscpp::Config Class Reference

#include <configuration.hpp>

Public Member Functions

void initiate (const std::string explicit_config_path="")
 
 ~Config ()
 
BoostPtree get_child (const std::string &s)
 
template<typename T >
get (const std::string &s)
 
template<typename T >
get (const std::string &s, T default_value)
 
template<typename T >
boost::optional< T > get_optional (const std::string &s)
 
std::string getAppId ()
 
std::string getAppInstance ()
 
bool isAllowedIp (const std::string &ip_address)
 
bool isAllowedClient (const std::string &app_id, const std::string &app_instance)
 

Static Public Member Functions

static Configinstance (const std::string app_id="kisscpp_application", const std::string app_instance="0", const std::string explicit_config_path="")
 

Constructor & Destructor Documentation

kisscpp::Config::~Config ( )
inline

Member Function Documentation

template<typename T >
T kisscpp::Config::get ( const std::string &  s)
inline

Here is the caller graph for this function:

template<typename T >
T kisscpp::Config::get ( const std::string &  s,
default_value 
)
inline
BoostPtree kisscpp::Config::get_child ( const std::string &  s)
inline
template<typename T >
boost::optional<T> kisscpp::Config::get_optional ( const std::string &  s)
inline
std::string kisscpp::Config::getAppId ( )
inline

Here is the caller graph for this function:

std::string kisscpp::Config::getAppInstance ( )
inline

Here is the caller graph for this function:

void kisscpp::Config::initiate ( const std::string  explicit_config_path = "")
Config * kisscpp::Config::instance ( const std::string  app_id = "kisscpp_application",
const std::string  app_instance = "0",
const std::string  explicit_config_path = "" 
)
static

Here is the caller graph for this function:

bool kisscpp::Config::isAllowedClient ( const std::string &  app_id,
const std::string &  app_instance 
)
bool kisscpp::Config::isAllowedIp ( const std::string &  ip_address)

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