|
| DocumentHandleXML () |
| Default ctor. More...
|
|
| ~DocumentHandleXML () override=default |
| Default dtor. More...
|
|
TiXmlHandle | getRootHandle () |
|
TiXmlHandle | getDocumentHandle () |
|
bool | create (const std::string &path, DocumentMode mode) override |
| Opens or creates a file at 'path' in depending on 'mode'. More...
|
|
bool | create (const std::string &path, DocumentMode mode, const std::string &rootName) |
|
bool | merge (const std::string &path, MergeMode mode) override |
| Merges file at 'path' with the handled document. More...
|
|
bool | saveAs (const std::string &path, bool force) override |
| Saves the current configuration to 'path'. More...
|
|
bool | seek (std::string handle) |
|
bool | seekFromRoot (const std::string &handle) |
|
void | reset () |
|
template<typename T , typename U = T, typename = typename std::enable_if<!std::is_const<T>::value && std::is_convertible<U, T>::value>::type> |
bool | read (const std::string &name, T &value, const typename traits::element< T >::stringType &attributeName=traits::element< T >::getDefaultName(), const U &defaultValue=traits::element< T >::getDefaultValue()) const |
|
template<typename T , typename U = T, typename = typename std::enable_if<!std::is_const<T>::value && std::is_convertible<U, T>::value>::type> |
bool | readAttributes (T &value, const typename traits::element< T >::stringType &attributeName=traits::element< T >::getDefaultName(), const U &defaultValue=traits::element< T >::getDefaultValue()) const |
|
template<typename T , typename = typename std::enable_if<!std::is_const<T>::value>> |
bool | readSiblings (const std::string &name, T &value, const typename traits::element< T >::siblingStringType &attributeName=traits::element< typename traits::element< T >::siblingType >::getDefaultName(), const typename traits::element< T >::siblingType &defaultValue=traits::element< typename traits::element< T >::siblingType >::getDefaultValue()) const |
|
template<typename T , typename = typename std::enable_if<!std::is_const<T>::value>> |
bool | readSiblingAttributes (T &value, const typename traits::element< T >::siblingStringType &attributeName=traits::element< typename traits::element< T >::siblingType >::getDefaultName(), const typename traits::element< T >::siblingType &defaultValue=traits::element< typename traits::element< T >::siblingType >::getDefaultValue()) const |
|
template<typename T > |
bool | write (const std::string &name, const T &value, const typename traits::element< T >::stringType &attributeName=traits::element< T >::getDefaultName()) |
|
template<typename T > |
bool | writeAttributes (const T &value, const typename traits::element< T >::stringType &attributeName=traits::element< T >::getDefaultName()) |
|
template<typename T > |
bool | writeSiblings (const std::string &name, const T &value, const typename traits::element< T >::siblingStringType &attributeName=traits::element< typename traits::element< T >::siblingType >::getDefaultName()) |
|
Public Member Functions inherited from tinyxml_tools::DocumentHandle |
| DocumentHandle () |
| Default ctor. More...
|
|
virtual | ~DocumentHandle ()=default |
| Default dtor. More...
|
|
bool | save () |
| Saves the current configuration to the file specified in create() More...
|
|