Flow123d  master-f44eb46
json_spirit_reader.h
Go to the documentation of this file.
1 #ifndef JSON_SPIRIT_READER
2 #define JSON_SPIRIT_READER
3 
4 // Copyright John W. Wilkinson 2007 - 2011
5 // Distributed under the MIT License, see accompanying file LICENSE.txt
6 
7 // json spirit version 4.05
8 
9 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
10 # pragma once
11 #endif
12 
13 #include "json_spirit_value.h"
15 #include <iostream>
16 
17 namespace json_spirit
18 {
19  // functions to reads a JSON values
20 
21 #ifdef JSON_SPIRIT_VALUE_ENABLED
22  bool read( const std::string& s, Value& value );
23  bool read( std::istream& is, Value& value );
24  bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
25 
26  void read_or_throw( const std::string& s, Value& value );
27  void read_or_throw( std::istream& is, Value& value );
28  void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
29 #endif
30 
31 #if defined( JSON_SPIRIT_WVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
32  bool read( const std::wstring& s, wValue& value );
33  bool read( std::wistream& is, wValue& value );
34  bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
35 
36  void read_or_throw( const std::wstring& s, wValue& value );
37  void read_or_throw( std::wistream& is, wValue& value );
38  void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
39 #endif
40 
41 #ifdef JSON_SPIRIT_MVALUE_ENABLED
42  bool read( const std::string& s, mValue& value );
43  bool read( std::istream& is, mValue& value );
44  bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
45 
46  void read_or_throw( const std::string& s, mValue& value );
47  void read_or_throw( std::istream& is, mValue& value );
48  void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
49 #endif
50 
51 #if defined( JSON_SPIRIT_WMVALUE_ENABLED ) && !defined( BOOST_NO_STD_WSTRING )
52  bool read( const std::wstring& s, wmValue& value );
53  bool read( std::wistream& is, wmValue& value );
54  bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
55 
56  void read_or_throw( const std::wstring& s, wmValue& value );
57  void read_or_throw( std::wistream& is, wmValue& value );
58  void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
59 #endif
60 }
61 
62 #endif
@ Value
static constexpr bool value
Definition: json.hpp:87
mConfig::Value_type mValue
bool read(const std::string &s, mValue &value)
void read_or_throw(const std::string &s, mValue &value)