27 lines
605 B
C++
27 lines
605 B
C++
#ifndef CONFIG_READER_HPP
|
|
#define CONFIG_READER_HPP
|
|
|
|
#include <boost/filesystem.hpp>
|
|
#include <libconfig.h++>
|
|
|
|
#include "service/UserInterfaceService.hpp"
|
|
#include "service/RemoteServerService.hpp"
|
|
#include "service/DatabaseUpdateService.hpp"
|
|
|
|
class ConfigReader
|
|
{
|
|
public:
|
|
|
|
ConfigReader(boost::filesystem::path p);
|
|
|
|
void getUserInterfaceConfig(Service::UserInterfaceService::Config& config);
|
|
void getRemoteServerConfig(Service::RemoteServerService::Config& config);
|
|
void getDatabaseUpdateConfig(Service::DatabaseUpdateService::Config& config);
|
|
|
|
private:
|
|
|
|
libconfig::Config _config;
|
|
};
|
|
|
|
#endif
|