json_spirit_reader.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // ECOin - Copyright (c) - 2014/2021 - GPLv3 - epsylon@riseup.net (https://03c8.net)
  2. #ifndef JSON_SPIRIT_READER
  3. #define JSON_SPIRIT_READER
  4. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  5. # pragma once
  6. #endif
  7. #include "json_spirit_value.h"
  8. #include "json_spirit_error_position.h"
  9. #include <iostream>
  10. namespace json_spirit
  11. {
  12. // functions to reads a JSON values
  13. bool read( const std::string& s, Value& value );
  14. bool read( std::istream& is, Value& value );
  15. bool read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
  16. void read_or_throw( const std::string& s, Value& value );
  17. void read_or_throw( std::istream& is, Value& value );
  18. void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value );
  19. #ifndef BOOST_NO_STD_WSTRING
  20. bool read( const std::wstring& s, wValue& value );
  21. bool read( std::wistream& is, wValue& value );
  22. bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
  23. void read_or_throw( const std::wstring& s, wValue& value );
  24. void read_or_throw( std::wistream& is, wValue& value );
  25. void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value );
  26. #endif
  27. bool read( const std::string& s, mValue& value );
  28. bool read( std::istream& is, mValue& value );
  29. bool read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
  30. void read_or_throw( const std::string& s, mValue& value );
  31. void read_or_throw( std::istream& is, mValue& value );
  32. void read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value );
  33. #ifndef BOOST_NO_STD_WSTRING
  34. bool read( const std::wstring& s, wmValue& value );
  35. bool read( std::wistream& is, wmValue& value );
  36. bool read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
  37. void read_or_throw( const std::wstring& s, wmValue& value );
  38. void read_or_throw( std::wistream& is, wmValue& value );
  39. void read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value );
  40. #endif
  41. }
  42. #endif