4 #ifndef DJINNI_GENERATED_DYNAMICOBJECT_HPP 5 #define DJINNI_GENERATED_DYNAMICOBJECT_HPP 7 #include "../utils/optional.hpp" 12 #ifndef LIBCORE_EXPORT 14 #include <libcore_export.h> 16 #define LIBCORE_EXPORT 20 namespace ledger {
namespace core {
namespace api {
40 virtual std::shared_ptr<DynamicObject> putString(
const std::string & key,
const std::string & value) = 0;
48 virtual std::shared_ptr<DynamicObject> putInt(
const std::string & key, int32_t value) = 0;
56 virtual std::shared_ptr<DynamicObject> putLong(
const std::string & key, int64_t value) = 0;
64 virtual std::shared_ptr<DynamicObject> putDouble(
const std::string & key,
double value) = 0;
72 virtual std::shared_ptr<DynamicObject> putData(
const std::string & key,
const std::vector<uint8_t> & value) = 0;
80 virtual std::shared_ptr<DynamicObject> putBoolean(
const std::string & key,
bool value) = 0;
87 virtual std::shared_ptr<DynamicObject> putObject(
const std::string & key,
const std::shared_ptr<DynamicObject> & value) = 0;
94 virtual std::shared_ptr<DynamicObject> putArray(
const std::string & key,
const std::shared_ptr<DynamicArray> & value) = 0;
143 virtual std::shared_ptr<DynamicObject> getObject(
const std::string & key) = 0;
150 virtual std::shared_ptr<DynamicArray> getArray(
const std::string & key) = 0;
157 virtual bool contains(
const std::string & key) = 0;
164 virtual bool remove(
const std::string & key) = 0;
170 virtual std::vector<std::string> getKeys() = 0;
183 virtual std::string dump() = 0;
189 virtual std::vector<uint8_t> serialize() = 0;
195 virtual bool isReadOnly() = 0;
201 virtual int64_t size() = 0;
207 static std::shared_ptr<DynamicObject> newInstance();
214 static std::shared_ptr<DynamicObject> load(
const std::vector<uint8_t> & serialized);
218 #endif //DJINNI_GENERATED_DYNAMICOBJECT_HPP Definition: DynamicObject.hpp:30
DynamicType
Definition: DynamicType.hpp:20
Definition: Account.cpp:8