#pragma once #include struct DatabaseOption { std::string host; int port; std::string user; std::string passwd; std::string dbname; }; struct AppOption { DatabaseOption database; struct { bool useToken {true}; int port {0}; } http; struct { std::string host; std::string username; std::string password; } mqtt; std::string webSrvUrl; std::string lunchDate; }; class Config { public: static bool init(std::string filename); static AppOption option; };