|
|
@ -30,6 +30,9 @@ public: |
|
|
|
UniValue(int64_t val_) { |
|
|
|
UniValue(int64_t val_) { |
|
|
|
setInt(val_); |
|
|
|
setInt(val_); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
UniValue(bool val_) { |
|
|
|
|
|
|
|
setBool(val_); |
|
|
|
|
|
|
|
} |
|
|
|
UniValue(int val_) { |
|
|
|
UniValue(int val_) { |
|
|
|
setInt(val_); |
|
|
|
setInt(val_); |
|
|
|
} |
|
|
|
} |
|
|
@ -192,6 +195,13 @@ static inline std::pair<std::string,UniValue> Pair(const char *cKey, int64_t i64 |
|
|
|
return std::make_pair(key, uVal); |
|
|
|
return std::make_pair(key, uVal); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline std::pair<std::string,UniValue> Pair(const char *cKey, bool iVal) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
std::string key(cKey); |
|
|
|
|
|
|
|
UniValue uVal(iVal); |
|
|
|
|
|
|
|
return std::make_pair(key, uVal); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static inline std::pair<std::string,UniValue> Pair(const char *cKey, int iVal) |
|
|
|
static inline std::pair<std::string,UniValue> Pair(const char *cKey, int iVal) |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::string key(cKey); |
|
|
|
std::string key(cKey); |
|
|
|