a8/a8/mutable_xobject.h
aozhiwei c1f8ea93f7 1
2022-12-13 18:25:13 +08:00

28 lines
722 B
C++

#pragma once
namespace a8
{
class MutableXObject : public XObject
{
protected:
MutableXObject();
public:
static a8::MutableXObject* NewObject();
static a8::MutableXObject* NewArray();
static std::shared_ptr<a8::MutableXObject> CreateObject();
static std::shared_ptr<a8::MutableXObject> CreateArray();
a8::MutableXObject& Push(a8::XValue val);
a8::MutableXObject& Push(a8::MutableXObject& val);
a8::MutableXObject& SetVal(const std::string& key, a8::XValue val);
a8::MutableXObject& SetVal(const std::string& key, a8::XObject& val);
a8::MutableXObject& SetVal(const std::string& key, a8::MutableXObject& val);
};
}