LeviLamina
Loading...
Searching...
No Matches
Json::Reader Class Reference

Classes

class  ErrorInfo
 
class  Token
 

Public Types

enum class  TokenType : int {
  TokenEndOfStream = 0 , TokenObjectBegin = 1 , TokenObjectEnd = 2 , TokenArrayBegin = 3 ,
  TokenArrayEnd = 4 , TokenString = 5 , TokenNumber = 6 , TokenTrue = 7 ,
  TokenFalse = 8 , TokenNull = 9 , TokenArraySeparator = 10 , TokenMemberSeparator = 11 ,
  TokenComment = 12 , TokenError = 13
}
 
using Char = char
 
using Location = char const*
 
using Errors = ::std::deque<::Json::Reader::ErrorInfo>
 
using Nodes = ::std::stack<::Json::Value*, ::std::deque<::Json::Value*>>
 

Public Member Functions

MCAPI Reader (::Json::Features const &features)
 
MCAPI bool addError (::std::string const &message, ::Json::Reader::Token &token, char const *extra)
 
MCAPI::Json::Value decodeDouble (::Json::Reader::Token &token, bool &successful)
 
MCAPI::Json::Value decodeNumber (::Json::Reader::Token &token, bool &successful)
 
MCAPI bool decodeString (::Json::Reader::Token &token, char *decoded)
 
MCAPI bool decodeUnicodeCodePoint (::Json::Reader::Token &token, char const *&current, char const *end, uint &unicode)
 
MCAPI bool decodeUnicodeEscapeSequence (::Json::Reader::Token &token, char const *&current, char const *end, uint &unicode)
 
MCAPI::std::string getFormattedErrorMessages () const
 
MCAPI::std::string getLocationLineAndColumn (char const *location) const
 
MCAPI bool parse (::std::string const &document, ::Json::Value &root, bool collectComments)
 
MCAPI bool parse (::std::istream &sin, ::Json::Value &root, bool collectComments)
 
MCAPI bool parse (char const *beginDoc, char const *endDoc, ::Json::Value &root, bool)
 
MCAPI bool parse (char const *originalBegin, uint64 length, ::Json::Value &root, bool collectComments)
 
MCAPI::Json::Value readArray (::Json::Reader::Token &ok, bool &)
 
MCAPI::Json::Value readObject (::Json::Reader::Token &successful, bool &)
 
MCAPI bool readToken (::Json::Reader::Token &token)
 
MCAPI::Json::Value readValue (bool &successful)
 
MCAPI bool recoverFromError (::Json::Reader::TokenType skipUntilToken)
 
MCAPI void * $ctor ()
 
MCAPI void * $ctor (::Json::Features const &features)
 
MCAPI void $dtor ()
 

Public Attributes

::ll::TypedStorage< 8, 40, ::std::stack<::Json::Value *, ::std::deque<::Json::Value * > > > nodes_
 
::ll::TypedStorage< 8, 40, ::std::deque<::Json::Reader::ErrorInfo > > errors_
 
::ll::TypedStorage< 8, 32, ::std::string > document_
 
::ll::TypedStorage< 8, 8, char const * > begin_
 
::ll::TypedStorage< 8, 8, char const * > end_
 
::ll::TypedStorage< 8, 8, char const * > current_
 
::ll::TypedStorage< 8, 8, char const * > lastValueEnd_
 
::ll::TypedStorage< 8, 8, ::Json::Value * > lastValue_
 
::ll::TypedStorage< 8, 32, ::std::string > commentsBefore_
 
::ll::TypedStorage< 1, 2, ::Json::Featuresfeatures_
 
::ll::TypedStorage< 1, 1, bool > collectComments_
 

The documentation for this class was generated from the following file: