mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
26 lines
326 B
C++
26 lines
326 B
C++
#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;
|
|
}; |