ejson::Document Class Reference
  #include <Document.hpp>
Inheritance diagram for ejson::Document:
 
  
 | Additional Inherited Members | |
|  Public Types inherited from ejson::Object | |
| using | iterator = ejson::iterator< ejson::Object > | 
|  Protected Attributes inherited from ejson::Value | |
| ememory::SharedPtr< ejson::internal::Value > | m_data | 
Detailed Description
ejson Document interface (acces with the file and stream).
Constructor & Destructor Documentation
§ Document() [1/3]
| ejson::Document::Document | ( | ememory::SharedPtr< ejson::internal::Value > | _internalValue | ) | 
Constructor.
- Parameters
- 
  [in] _internalValue Internal Value to set data 
§ Document() [2/3]
| ejson::Document::Document | ( | const ejson::Document & | _obj | ) | 
Copy constructor.
- Parameters
- 
  [in] _obj Object to copy 
§ Document() [3/3]
| ejson::Document::Document | ( | ) | 
Constructor.
Member Function Documentation
§ displayError()
| void ejson::Document::displayError | ( | ) | 
Display error detected.
§ generate()
| bool ejson::Document::generate | ( | std::string & | _data | ) | 
generate a string that contain the created Json
- Parameters
- 
  [out] _data Data where the Json is stored 
- Returns
- false : An error occured
- true : Parsing is OK
§ getDisplayError()
| bool ejson::Document::getDisplayError | ( | ) | 
Get the display of the error status.
- Returns
- true Display error
- false Does not display error (get it at end)
§ load()
| bool ejson::Document::load | ( | const std::string & | _file | ) | 
Load the file that might contain the Json.
- Parameters
- 
  [in] _file Filename of the Json (compatible with etk FSNode naming) 
- Returns
- false : An error occured
- true : Parsing is OK
§ operator=()
| ejson::Document& ejson::Document::operator= | ( | const ejson::Document & | _obj | ) | 
§ parse()
| bool ejson::Document::parse | ( | const std::string & | _data | ) | 
parse a string that contain an Json
- Parameters
- 
  [in] _data Data to parse 
- Returns
- false : An error occured
- true : Parsing is OK
§ setDisplayError()
| void ejson::Document::setDisplayError | ( | bool | _value | ) | 
Set the display of the error when detected.
- Parameters
- 
  [in] _value true: display error, false not display error (get it at end) 
§ store()
| bool ejson::Document::store | ( | const std::string & | _file | ) | 
Store the Json in the file.
- Parameters
- 
  [in] _file Filename of the Json (compatible with etk FSNode naming) 
- Returns
- false : An error occured
- true : Parsing is OK
§ storeSafe()
| bool ejson::Document::storeSafe | ( | const std::string & | _file | ) | 
Store the Json in the file (safe mode mean that the file is store in a second file xxx.tmp and moved in the file xxx (only one mode to be really safe with filesystem ...)
- Parameters
- 
  [in] _file Filename of the Json (compatible with etk FSNode naming) 
- Returns
- false : An error occured
- true : Parsing is OK
The documentation for this class was generated from the following file:
- framework/atria-soft/ejson/ejson/Document.hpp
 1.8.12
 1.8.12