#include <xmlFile.hpp>
◆ File() [1/4]
iv::file::xml::File::File |
( |
| ) |
|
|
default |
◆ File() [2/4]
iv::file::xml::File::File |
( |
std::string_view | pathFile | ) |
|
|
explicit |
◆ File() [3/4]
iv::file::xml::File::File |
( |
const File & | other | ) |
|
|
delete |
◆ File() [4/4]
iv::file::xml::File::File |
( |
File && | other | ) |
|
|
default |
◆ ~File()
iv::file::xml::File::~File |
( |
| ) |
|
|
default |
◆ addAttribute()
template<typename T >
bool iv::file::xml::File::addAttribute |
( |
const std::string_view | node, |
|
|
std::string_view | key, |
|
|
T | value ) |
|
inline |
◆ fromString()
File iv::file::xml::File::fromString |
( |
std::string_view | xmlString | ) |
|
|
static |
- Parameters
-
- Exceptions
-
- Returns
◆ getAttribute()
template<typename T >
T iv::file::xml::File::getAttribute |
( |
const std::string_view | node, |
|
|
std::string_view | key, |
|
|
T | defaultValue ) const |
|
inline |
◆ getChild()
◆ hasChanges()
bool iv::file::xml::File::hasChanges |
( |
| ) |
const |
|
nodiscard |
◆ lastTimeEdited()
◆ operator=() [1/2]
File & iv::file::xml::File::operator= |
( |
const File & | other | ) |
|
|
delete |
◆ operator=() [2/2]
File & iv::file::xml::File::operator= |
( |
File && | other | ) |
|
|
delete |
◆ prvCalculateFileValidation()
uint16_t iv::file::xml::File::prvCalculateFileValidation |
( |
| ) |
const |
|
nodiscardprivate |
◆ prvCheckFileValidation()
bool iv::file::xml::File::prvCheckFileValidation |
( |
uint16_t | crcValue | ) |
const |
|
private |
◆ read()
bool iv::file::xml::File::read |
( |
bool | checkIntegrity = true | ) |
|
◆ save()
bool iv::file::xml::File::save |
( |
| ) |
|
|
nodiscard |
◆ setChild()
iv::file::xml::node iv::file::xml::File::setChild |
( |
std::string_view | name, |
|
|
std::string_view | parentName = "" ) |
- Parameters
-
- Exceptions
-
- Returns
◆ setMetadata()
bool iv::file::xml::File::setMetadata |
( |
uint16_t | crcValue | ) |
const |
|
nodiscardprivate |
◆ toString()
std::string iv::file::xml::File::toString |
( |
| ) |
const |
|
nodiscard |
Converts current XML data into string format.
- Exceptions
-
- Returns
- STRING format of the XML data.
◆ m_pathFile
std::string iv::file::xml::File::m_pathFile |
|
private |
◆ m_xml
pugi::xml_document iv::file::xml::File::m_xml |
|
private |
The documentation for this class was generated from the following files: