json_spirit_reader.cpp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // ECOin - Copyright (c) - 2014/2021 - GPLv3 - epsylon@riseup.net (https://03c8.net)
  2. #include "json_spirit_reader.h"
  3. #include "json_spirit_reader_template.h"
  4. using namespace json_spirit;
  5. bool json_spirit::read( const std::string& s, Value& value )
  6. {
  7. return read_string( s, value );
  8. }
  9. void json_spirit::read_or_throw( const std::string& s, Value& value )
  10. {
  11. read_string_or_throw( s, value );
  12. }
  13. bool json_spirit::read( std::istream& is, Value& value )
  14. {
  15. return read_stream( is, value );
  16. }
  17. void json_spirit::read_or_throw( std::istream& is, Value& value )
  18. {
  19. read_stream_or_throw( is, value );
  20. }
  21. bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
  22. {
  23. return read_range( begin, end, value );
  24. }
  25. void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
  26. {
  27. begin = read_range_or_throw( begin, end, value );
  28. }
  29. #ifndef BOOST_NO_STD_WSTRING
  30. bool json_spirit::read( const std::wstring& s, wValue& value )
  31. {
  32. return read_string( s, value );
  33. }
  34. void json_spirit::read_or_throw( const std::wstring& s, wValue& value )
  35. {
  36. read_string_or_throw( s, value );
  37. }
  38. bool json_spirit::read( std::wistream& is, wValue& value )
  39. {
  40. return read_stream( is, value );
  41. }
  42. void json_spirit::read_or_throw( std::wistream& is, wValue& value )
  43. {
  44. read_stream_or_throw( is, value );
  45. }
  46. bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
  47. {
  48. return read_range( begin, end, value );
  49. }
  50. void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
  51. {
  52. begin = read_range_or_throw( begin, end, value );
  53. }
  54. #endif
  55. bool json_spirit::read( const std::string& s, mValue& value )
  56. {
  57. return read_string( s, value );
  58. }
  59. void json_spirit::read_or_throw( const std::string& s, mValue& value )
  60. {
  61. read_string_or_throw( s, value );
  62. }
  63. bool json_spirit::read( std::istream& is, mValue& value )
  64. {
  65. return read_stream( is, value );
  66. }
  67. void json_spirit::read_or_throw( std::istream& is, mValue& value )
  68. {
  69. read_stream_or_throw( is, value );
  70. }
  71. bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
  72. {
  73. return read_range( begin, end, value );
  74. }
  75. void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
  76. {
  77. begin = read_range_or_throw( begin, end, value );
  78. }
  79. #ifndef BOOST_NO_STD_WSTRING
  80. bool json_spirit::read( const std::wstring& s, wmValue& value )
  81. {
  82. return read_string( s, value );
  83. }
  84. void json_spirit::read_or_throw( const std::wstring& s, wmValue& value )
  85. {
  86. read_string_or_throw( s, value );
  87. }
  88. bool json_spirit::read( std::wistream& is, wmValue& value )
  89. {
  90. return read_stream( is, value );
  91. }
  92. void json_spirit::read_or_throw( std::wistream& is, wmValue& value )
  93. {
  94. read_stream_or_throw( is, value );
  95. }
  96. bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
  97. {
  98. return read_range( begin, end, value );
  99. }
  100. void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
  101. {
  102. begin = read_range_or_throw( begin, end, value );
  103. }
  104. #endif