-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathjson_object_impl.hpp
More file actions
33 lines (22 loc) · 807 Bytes
/
json_object_impl.hpp
File metadata and controls
33 lines (22 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include "json/api/json_object.hpp"
#include <nlohmann/json.hpp>
//------------------------------------------------------------------------------
namespace json
{
//------------------------------------------------------------------------------
class JsonObjectImpl final : public JsonObject
{
public:
using JsonObjectPtr = std::unique_ptr< JsonObject >;
using JsonImpl = nlohmann::json;
static JsonObjectPtr createJson( std::istream & _stream );
explicit JsonObjectImpl( JsonImpl && _jsonImpl );
explicit JsonObjectImpl( std::istream & _stream );
JsonValuePtr getAttributeValue( std::string_view _name ) const override;
JsonValuePtr asValue() const override;
private:
JsonImpl m_jsonImpl;
};
//------------------------------------------------------------------------------
}