Files
energy_storage/src/app/Config.h

26 lines
326 B
C
Raw Normal View History

#pragma once
#include <string>
struct DatabaseOption
{
std::string host;
int port;
std::string user;
std::string passwd;
std::string dbname;
};
struct AppOption
{
DatabaseOption database;
};
class Config
{
public:
static bool init(std::string filename);
static AppOption option;
};