Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Json::OurReader Class Reference

Classes

class  ErrorInfo
 
struct  StructuredError
 
class  Token
 

Public Types

typedef char Char
 
typedef const CharLocation
 

Public Member Functions

std::string getFormattedErrorMessages () const
 
std::vector< StructuredErrorgetStructuredErrors () const
 
bool good () const
 
 OurReader (OurFeatures const &features)
 
bool parse (const char *beginDoc, const char *endDoc, Value &root, bool collectComments=true)
 
bool pushError (const Value &value, const std::string &message)
 
bool pushError (const Value &value, const std::string &message, const Value &extra)
 

Private Types

typedef std::deque< ErrorInfoErrors
 
typedef std::stack< Value * > Nodes
 
enum  TokenType {
  tokenEndOfStream = 0, tokenObjectBegin, tokenObjectEnd, tokenArrayBegin,
  tokenArrayEnd, tokenString, tokenNumber, tokenTrue,
  tokenFalse, tokenNull, tokenArraySeparator, tokenMemberSeparator,
  tokenComment, tokenError
}
 

Private Member Functions

void addComment (Location begin, Location end, CommentPlacement placement)
 
bool addError (const std::string &message, Token &token, Location extra=0)
 
bool addErrorAndRecover (const std::string &message, Token &token, TokenType skipUntilToken)
 
ValuecurrentValue ()
 
bool decodeDouble (Token &token)
 
bool decodeDouble (Token &token, Value &decoded)
 
bool decodeNumber (Token &token)
 
bool decodeNumber (Token &token, Value &decoded)
 
bool decodeString (Token &token)
 
bool decodeString (Token &token, std::string &decoded)
 
bool decodeUnicodeCodePoint (Token &token, Location &current, Location end, unsigned int &unicode)
 
bool decodeUnicodeEscapeSequence (Token &token, Location &current, Location end, unsigned int &unicode)
 
void getLocationLineAndColumn (Location location, int &line, int &column) const
 
std::string getLocationLineAndColumn (Location location) const
 
Char getNextChar ()
 
bool match (Location pattern, int patternLength)
 
void operator= (OurReader const &)
 
 OurReader (OurReader const &)
 
bool readArray (Token &token)
 
bool readComment ()
 
bool readCppStyleComment ()
 
bool readCStyleComment ()
 
void readNumber ()
 
bool readObject (Token &token)
 
bool readString ()
 
bool readStringSingleQuote ()
 
bool readToken (Token &token)
 
bool readValue ()
 
bool recoverFromError (TokenType skipUntilToken)
 
void skipCommentTokens (Token &token)
 
void skipSpaces ()
 
void skipUntilSpace ()
 

Private Attributes

Location begin_
 
bool collectComments_
 
std::string commentsBefore_
 
Location current_
 
std::string document_
 
Location end_
 
Errors errors_
 
OurFeatures const features_
 
ValuelastValue_
 
Location lastValueEnd_
 
Nodes nodes_
 
int stackDepth_
 

Detailed Description

Definition at line 1126 of file jsoncpp.cpp.

Member Typedef Documentation

typedef char Json::OurReader::Char

Definition at line 1128 of file jsoncpp.cpp.

typedef std::deque<ErrorInfo> Json::OurReader::Errors
private

Definition at line 1182 of file jsoncpp.cpp.

Definition at line 1129 of file jsoncpp.cpp.

typedef std::stack<Value*> Json::OurReader::Nodes
private

Definition at line 1224 of file jsoncpp.cpp.

Member Enumeration Documentation

Enumerator
tokenEndOfStream 
tokenObjectBegin 
tokenObjectEnd 
tokenArrayBegin 
tokenArrayEnd 
tokenString 
tokenNumber 
tokenTrue 
tokenFalse 
tokenNull 
tokenArraySeparator 
tokenMemberSeparator 
tokenComment 
tokenError 

Definition at line 1151 of file jsoncpp.cpp.

Constructor & Destructor Documentation

Json::OurReader::OurReader ( OurFeatures const &  features)

Definition at line 1242 of file jsoncpp.cpp.

Json::OurReader::OurReader ( OurReader const &  )
private

Member Function Documentation

void Json::OurReader::addComment ( Location  begin,
Location  end,
CommentPlacement  placement 
)
private

Definition at line 1506 of file jsoncpp.cpp.

bool Json::OurReader::addError ( const std::string &  message,
Token token,
Location  extra = 0 
)
private

Definition at line 1906 of file jsoncpp.cpp.

bool Json::OurReader::addErrorAndRecover ( const std::string &  message,
Token token,
TokenType  skipUntilToken 
)
private

Definition at line 1928 of file jsoncpp.cpp.

Value & Json::OurReader::currentValue ( )
private

Definition at line 1935 of file jsoncpp.cpp.

bool Json::OurReader::decodeDouble ( Token token)
private

Definition at line 1738 of file jsoncpp.cpp.

bool Json::OurReader::decodeDouble ( Token token,
Value decoded 
)
private

Definition at line 1748 of file jsoncpp.cpp.

bool Json::OurReader::decodeNumber ( Token token)
private

Definition at line 1688 of file jsoncpp.cpp.

bool Json::OurReader::decodeNumber ( Token token,
Value decoded 
)
private

Definition at line 1698 of file jsoncpp.cpp.

bool Json::OurReader::decodeString ( Token token)
private

Definition at line 1784 of file jsoncpp.cpp.

bool Json::OurReader::decodeString ( Token token,
std::string &  decoded 
)
private

Definition at line 1795 of file jsoncpp.cpp.

bool Json::OurReader::decodeUnicodeCodePoint ( Token token,
Location current,
Location  end,
unsigned int &  unicode 
)
private

Definition at line 1848 of file jsoncpp.cpp.

bool Json::OurReader::decodeUnicodeEscapeSequence ( Token token,
Location current,
Location  end,
unsigned int &  unicode 
)
private

Definition at line 1877 of file jsoncpp.cpp.

std::string Json::OurReader::getFormattedErrorMessages ( ) const

Definition at line 1982 of file jsoncpp.cpp.

void Json::OurReader::getLocationLineAndColumn ( Location  location,
int &  line,
int &  column 
) const
private

Definition at line 1943 of file jsoncpp.cpp.

std::string Json::OurReader::getLocationLineAndColumn ( Location  location) const
private

Definition at line 1966 of file jsoncpp.cpp.

OurReader::Char Json::OurReader::getNextChar ( )
private

Definition at line 1937 of file jsoncpp.cpp.

std::vector< OurReader::StructuredError > Json::OurReader::getStructuredErrors ( ) const

Definition at line 1998 of file jsoncpp.cpp.

bool Json::OurReader::good ( ) const

Definition at line 2048 of file jsoncpp.cpp.

bool Json::OurReader::match ( Location  pattern,
int  patternLength 
)
private

Definition at line 1471 of file jsoncpp.cpp.

void Json::OurReader::operator= ( OurReader const &  )
private
bool Json::OurReader::parse ( const char *  beginDoc,
const char *  endDoc,
Value root,
bool  collectComments = true 
)

Definition at line 1247 of file jsoncpp.cpp.

bool Json::OurReader::pushError ( const Value value,
const std::string &  message 
)

Definition at line 2013 of file jsoncpp.cpp.

bool Json::OurReader::pushError ( const Value value,
const std::string &  message,
const Value extra 
)

Definition at line 2030 of file jsoncpp.cpp.

bool Json::OurReader::readArray ( Token token)
private

Definition at line 1650 of file jsoncpp.cpp.

bool Json::OurReader::readComment ( )
private

Definition at line 1482 of file jsoncpp.cpp.

bool Json::OurReader::readCppStyleComment ( )
private

Definition at line 1526 of file jsoncpp.cpp.

bool Json::OurReader::readCStyleComment ( )
private

Definition at line 1517 of file jsoncpp.cpp.

void Json::OurReader::readNumber ( )
private

Definition at line 1542 of file jsoncpp.cpp.

bool Json::OurReader::readObject ( Token token)
private

Definition at line 1588 of file jsoncpp.cpp.

bool Json::OurReader::readString ( )
private

Definition at line 1563 of file jsoncpp.cpp.

bool Json::OurReader::readStringSingleQuote ( )
private

Definition at line 1576 of file jsoncpp.cpp.

bool Json::OurReader::readToken ( Token token)
private

Definition at line 1384 of file jsoncpp.cpp.

bool Json::OurReader::readValue ( )
private

Definition at line 1295 of file jsoncpp.cpp.

bool Json::OurReader::recoverFromError ( TokenType  skipUntilToken)
private

Definition at line 1915 of file jsoncpp.cpp.

void Json::OurReader::skipCommentTokens ( Token token)
private

Definition at line 1374 of file jsoncpp.cpp.

void Json::OurReader::skipSpaces ( )
private

Definition at line 1461 of file jsoncpp.cpp.

void Json::OurReader::skipUntilSpace ( )
private

Member Data Documentation

Location Json::OurReader::begin_
private

Definition at line 1228 of file jsoncpp.cpp.

bool Json::OurReader::collectComments_
private

Definition at line 1237 of file jsoncpp.cpp.

std::string Json::OurReader::commentsBefore_
private

Definition at line 1233 of file jsoncpp.cpp.

Location Json::OurReader::current_
private

Definition at line 1230 of file jsoncpp.cpp.

std::string Json::OurReader::document_
private

Definition at line 1227 of file jsoncpp.cpp.

Location Json::OurReader::end_
private

Definition at line 1229 of file jsoncpp.cpp.

Errors Json::OurReader::errors_
private

Definition at line 1226 of file jsoncpp.cpp.

OurFeatures const Json::OurReader::features_
private

Definition at line 1236 of file jsoncpp.cpp.

Value* Json::OurReader::lastValue_
private

Definition at line 1232 of file jsoncpp.cpp.

Location Json::OurReader::lastValueEnd_
private

Definition at line 1231 of file jsoncpp.cpp.

Nodes Json::OurReader::nodes_
private

Definition at line 1225 of file jsoncpp.cpp.

int Json::OurReader::stackDepth_
private

Definition at line 1234 of file jsoncpp.cpp.


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


mission_planning
Author(s): ivan
autogenerated on Thu Nov 12 2015 19:08:20