diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-28 18:57:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-28 18:57:03 +0300 |
commit | 6872a9a9b1f032ede5471a8a03abc76e7c7259d9 (patch) | |
tree | 59c6e96e8c6f52ba2b6c69cf3b52bc86a8ffb48e /include/m_json.h | |
parent | 16133fc3ddb4952e78a20078ece5440766b76f73 (diff) | |
parent | f6c14ec9ec02d5eec251f20463aeb2e091978cd7 (diff) |
two missing operators added to json wrapper
Diffstat (limited to 'include/m_json.h')
-rw-r--r-- | include/m_json.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/m_json.h b/include/m_json.h index dfbc293022..9211e408fb 100644 --- a/include/m_json.h +++ b/include/m_json.h @@ -144,11 +144,28 @@ public: __forceinline JSONNode* Parse(LPCSTR text) { return (m_node = json_parse(text)); }
};
+struct NULL_PARAM : public PARAM
+{
+ __forceinline NULL_PARAM(LPCSTR _name) : PARAM(_name)
+ {}
+ ;
+};
+
+struct JSON_PARAM : public PARAM
+{
+ JSONNode node;
+ __forceinline JSON_PARAM(LPCSTR _name, JSONNode _node) :
+ PARAM(_name), node(_node)
+ {}
+};
+
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const INT_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const INT64_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const BOOL_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const CHAR_PARAM ¶m);
LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const WCHAR_PARAM ¶m);
+LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const NULL_PARAM ¶m); +LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const JSON_PARAM ¶m); #endif // __cplusplus
|