Files
energy_storage/src/app/Config.h

27 lines
352 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;
2025-08-31 14:38:53 +08:00
bool useToken {true};
};
class Config
{
public:
static bool init(std::string filename);
static AppOption option;
};