|
|
@ -56,7 +56,7 @@ public: |
|
|
|
bool setNumStr(const std::string& val); |
|
|
|
bool setNumStr(const std::string& val); |
|
|
|
bool setInt(uint64_t val); |
|
|
|
bool setInt(uint64_t val); |
|
|
|
bool setInt(int64_t val); |
|
|
|
bool setInt(int64_t val); |
|
|
|
bool setInt(int val) { return setInt((int64_t)val); } |
|
|
|
bool setInt(int val_) { return setInt((int64_t)val_); } |
|
|
|
bool setFloat(double val); |
|
|
|
bool setFloat(double val); |
|
|
|
bool setStr(const std::string& val); |
|
|
|
bool setStr(const std::string& val); |
|
|
|
bool setArray(); |
|
|
|
bool setArray(); |
|
|
@ -95,28 +95,28 @@ public: |
|
|
|
bool push_backV(const std::vector<UniValue>& vec); |
|
|
|
bool push_backV(const std::vector<UniValue>& vec); |
|
|
|
|
|
|
|
|
|
|
|
bool pushKV(const std::string& key, const UniValue& val); |
|
|
|
bool pushKV(const std::string& key, const UniValue& val); |
|
|
|
bool pushKV(const std::string& key, const std::string& val) { |
|
|
|
bool pushKV(const std::string& key, const std::string& val_) { |
|
|
|
UniValue tmpVal(VSTR, val); |
|
|
|
UniValue tmpVal(VSTR, val_); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
} |
|
|
|
} |
|
|
|
bool pushKV(const std::string& key, const char *val_) { |
|
|
|
bool pushKV(const std::string& key, const char *val_) { |
|
|
|
std::string val(val_); |
|
|
|
std::string _val(val_); |
|
|
|
return pushKV(key, val); |
|
|
|
return pushKV(key, _val); |
|
|
|
} |
|
|
|
} |
|
|
|
bool pushKV(const std::string& key, int64_t val) { |
|
|
|
bool pushKV(const std::string& key, int64_t val_) { |
|
|
|
UniValue tmpVal(val); |
|
|
|
UniValue tmpVal(val_); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
} |
|
|
|
} |
|
|
|
bool pushKV(const std::string& key, uint64_t val) { |
|
|
|
bool pushKV(const std::string& key, uint64_t val_) { |
|
|
|
UniValue tmpVal(val); |
|
|
|
UniValue tmpVal(val_); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
} |
|
|
|
} |
|
|
|
bool pushKV(const std::string& key, int val) { |
|
|
|
bool pushKV(const std::string& key, int val_) { |
|
|
|
UniValue tmpVal((int64_t)val); |
|
|
|
UniValue tmpVal((int64_t)val_); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
} |
|
|
|
} |
|
|
|
bool pushKV(const std::string& key, double val) { |
|
|
|
bool pushKV(const std::string& key, double val_) { |
|
|
|
UniValue tmpVal(val); |
|
|
|
UniValue tmpVal(val_); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
return pushKV(key, tmpVal); |
|
|
|
} |
|
|
|
} |
|
|
|
bool pushKVs(const UniValue& obj); |
|
|
|
bool pushKVs(const UniValue& obj); |
|
|
|