1
0
This commit is contained in:
Scott E. Graves
2017-04-22 14:28:05 -05:00
parent a9aff4691e
commit 85e8d55dd5
7 changed files with 125 additions and 22 deletions

View File

@@ -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

View File

@@ -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( );