Document.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <exml/Element.hpp>
9 #include <vector>
10 
11 namespace exml {
15  class Document : public exml::Element {
16  public:
26  Document(const exml::Document& _obj);
30  Document();
41  void setCaseSensitive(bool _val);
46  virtual bool getCaseSensitive() const;
47  public:
54  bool parse(const std::string& _data);
61  bool generate(std::string& _data);
68  bool load(const std::string& _file);
75  bool store(const std::string& _file);
79  void display();
84  void setDisplayError(bool _value);
90  bool getDisplayError();
94  void displayError();
95  };
96 };
Basic document element of a document.
Definition: Document.hpp:15
bool parse(const std::string &_data)
parse a string that contain an XML
bool store(const std::string &_file)
Store the Xml in the file.
void displayError()
Display error detected.
exml namespace containing all function for XML interpretor
Definition: Attribute.hpp:11
void display()
Display the Document on console.
void setDisplayError(bool _value)
Set the display of the error when detected.
bool generate(std::string &_data)
generate a string that contain the created XML
void setCaseSensitive(bool _val)
Enable or diasable the case sensitive (must be done before the call of parsing)
exml::Document & operator=(const exml::Document &_obj)
Copy constructor.
Basic element Node of an XML document <YYYYY>.
Definition: Element.hpp:101
bool getDisplayError()
Get the display of the error status.
virtual bool getCaseSensitive() const
get the status of case sensitive mode.
Document()
Constructor.
bool load(const std::string &_file)
Load the file that might contain the xml.