Class: ejson::Document
Synopsis:
+ Document (void);
+ ~Document (void);
+ bool parse (const std::string & _data);
+ bool generate (std::string & _data);
+ bool load (const std::string & _file);
+ bool store (const std::string & _file);
+ void display (void);
+ void displayErrorWhenDetected (void);
+ void notDisplayErrorWhenDetected (void);
+ void createError (const std::string & _data,
size_t _pos,
const ejson::filePos & _filePos,
const std::string & _comment);
+ void displayError (void);
+ enum nodeType getType (void);
+ bool iParse (const std::string & _data,
size_t & _pos,
ejson::filePos & _filePos,
ejson::Document & _doc);
+ bool iGenerate (std::string & _data,
size_t _indent);
+ ejson::Document * toDocument (void);
+ const ejson::Document * toDocument (void);
Object Hierarchy:
ejson::Value +--> ejson::Object +--> ejson::Document
Detail:
ejson::Document ()
Document(void);
Constructor
ejson::~Document ()
~Document(void);
Destructor
parse ()
bool parse(const std::string & _data);
parse a string that contain an XML
Parameter [input]: _data Data to parse
Return: false : An error occured
Return: true : Parsing is OK
generate ()
bool generate(std::string & _data);
generate a string that contain the created XML
Parameter [output]: _data Data where the xml is stored
Return: false : An error occured
Return: true : Parsing is OK
load ()
bool load(const std::string & _file);
Load the file that might contain the xml
Parameter [input]: _file Filename of the xml (compatible with etk FSNode naming)
Return: false : An error occured
Return: true : Parsing is OK
store ()
bool store(const std::string & _file);
Store the Xml in the file
Parameter [input]: _file Filename of the xml (compatible with etk FSNode naming)
Return: false : An error occured
Return: true : Parsing is OK
display ()
void display(void);
Display the Document on console
displayErrorWhenDetected ()
void displayErrorWhenDetected(void);
notDisplayErrorWhenDetected ()
void notDisplayErrorWhenDetected(void);
createError ()
void createError(const std::string & _data,
size_t _pos,
const ejson::filePos & _filePos,
const std::string & _comment);
displayError ()
void displayError(void);
getType ()
enum nodeType getType(void);
iParse ()
bool iParse(const std::string & _data,
size_t & _pos,
ejson::filePos & _filePos,
ejson::Document & _doc);
iGenerate ()
bool iGenerate(std::string & _data,
size_t _indent);
toDocument ()
ejson::Document * toDocument(void);
toDocument ()
const ejson::Document * toDocument(void);
ejson::Document ()
Document(void);
Constructor
ejson::~Document ()
~Document(void);
Destructor
parse ()
bool parse(const std::string & _data);
parse a string that contain an XML
-
Parameter [input]: _data Data to parse
Return: false : An error occured
Return: true : Parsing is OK
generate ()
bool generate(std::string & _data);
generate a string that contain the created XML
-
Parameter [output]: _data Data where the xml is stored
Return: false : An error occured
Return: true : Parsing is OK
load ()
bool load(const std::string & _file);
Load the file that might contain the xml
-
Parameter [input]: _file Filename of the xml (compatible with etk FSNode naming)
Return: false : An error occured
Return: true : Parsing is OK
store ()
bool store(const std::string & _file);
Store the Xml in the file
-
Parameter [input]: _file Filename of the xml (compatible with etk FSNode naming)
Return: false : An error occured
Return: true : Parsing is OK
display ()
void display(void);
Display the Document on console
displayErrorWhenDetected ()
void displayErrorWhenDetected(void);
notDisplayErrorWhenDetected ()
void notDisplayErrorWhenDetected(void);
createError ()
void createError(const std::string & _data, size_t _pos, const ejson::filePos & _filePos, const std::string & _comment);
displayError ()
void displayError(void);
getType ()
enum nodeType getType(void);
iParse ()
bool iParse(const std::string & _data, size_t & _pos, ejson::filePos & _filePos, ejson::Document & _doc);
iGenerate ()
bool iGenerate(std::string & _data, size_t _indent);
toDocument ()
ejson::Document * toDocument(void);
toDocument ()
const ejson::Document * toDocument(void);