lua json library
This commit is contained in:
+5
-3
@@ -33,9 +33,9 @@ namespace dynamic {
|
||||
Value(valtype type, valvalue value);
|
||||
~Value();
|
||||
|
||||
static Value boolean(bool value);
|
||||
static Value of(number_u value);
|
||||
static Value of(const std::string& value);
|
||||
static std::unique_ptr<Value> boolean(bool value);
|
||||
static std::unique_ptr<Value> of(number_u value);
|
||||
static std::unique_ptr<Value> of(const std::string& value);
|
||||
};
|
||||
|
||||
class List {
|
||||
@@ -68,6 +68,7 @@ namespace dynamic {
|
||||
List& put(Map* value);
|
||||
List& put(List* value);
|
||||
List& put(bool value);
|
||||
List& put(std::unique_ptr<Value> value);
|
||||
|
||||
Value* getValueWriteable(size_t index) const;
|
||||
|
||||
@@ -121,6 +122,7 @@ namespace dynamic {
|
||||
Map& putMap(std::string key);
|
||||
|
||||
bool has(std::string key);
|
||||
size_t size() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user