Settings
This commit is contained in:
@@ -109,7 +109,9 @@ set_access:\
|
||||
get_access:\
|
||||
type Get##name() const { return json_doc[#name].get<type>();}\
|
||||
set_access:\
|
||||
type Set##name(const type& value) { json_doc[#name] = value; return value; }
|
||||
type Set##name(const type& value) { json_doc[#name] = value; return value; }\
|
||||
protected:\
|
||||
bool Check##name() { return json_doc.find(#name) != json_doc.end(); }
|
||||
|
||||
template<typename T>
|
||||
class CSiaError
|
||||
|
@@ -20,13 +20,16 @@ public:
|
||||
JProperty(std::string, CacheFolder, public, public, _configDocument)
|
||||
JProperty(std::uint16_t, HostPort, public, public, _configDocument)
|
||||
JProperty(std::uint8_t, MaxUploadCount, public, public, _configDocument)
|
||||
JProperty(std::string, HostNameOrIp, public, public, _configDocument)
|
||||
JProperty(std::string, HostNameOrIp, public, public, _configDocument)
|
||||
JProperty(bool, LockWalletOnExit, public, public, _configDocument)
|
||||
JProperty(bool, AutoStartOnLogon, public, public, _configDocument)
|
||||
JProperty(bool, LaunchBundledSiad, public, public, _configDocument)
|
||||
|
||||
private:
|
||||
json _configDocument;
|
||||
|
||||
private:
|
||||
void LoadDefaults();
|
||||
bool LoadDefaults();
|
||||
|
||||
void Load( );
|
||||
|
||||
|
Reference in New Issue
Block a user