Ardour  9.0-pre0-582-g084a23a80d
XMLTree Class Reference

#include <xml++.h>

Public Member Functions

 XMLTree ()
 
 XMLTree (const std::string &fn, bool validate=false)
 
 XMLTree (const XMLTree *)
 
 ~XMLTree ()
 
XMLNoderoot () const
 
XMLNodeset_root (XMLNode *n)
 
const std::string & filename () const
 
const std::string & set_filename (const std::string &fn)
 
int compression () const
 
int set_compression (int)
 
bool read ()
 
bool read (const std::string &fn)
 
bool read_and_validate ()
 
bool read_and_validate (const std::string &fn)
 
bool read_buffer (char const *, bool to_tree_doc=false)
 
bool write () const
 
bool write (const std::string &fn)
 
void debug (FILE *) const
 
const std::string & write_buffer () const
 
std::shared_ptr< XMLSharedNodeListfind (const std::string xpath, XMLNode *=0) const
 

Private Member Functions

bool read_internal (bool validate)
 

Private Attributes

std::string _filename
 
XMLNode_root
 
xmlDocPtr _doc
 
int _compression
 

Detailed Description

Definition at line 74 of file xml++.h.

Constructor & Destructor Documentation

◆ XMLTree() [1/3]

XMLTree::XMLTree ( )

◆ XMLTree() [2/3]

XMLTree::XMLTree ( const std::string &  fn,
bool  validate = false 
)

◆ XMLTree() [3/3]

XMLTree::XMLTree ( const XMLTree )

◆ ~XMLTree()

XMLTree::~XMLTree ( )

Member Function Documentation

◆ compression()

int XMLTree::compression ( ) const
inline

Definition at line 87 of file xml++.h.

◆ debug()

void XMLTree::debug ( FILE *  ) const

◆ filename()

const std::string& XMLTree::filename ( ) const
inline

Definition at line 84 of file xml++.h.

◆ find()

std::shared_ptr<XMLSharedNodeList> XMLTree::find ( const std::string  xpath,
XMLNode = 0 
) const

◆ read() [1/2]

bool XMLTree::read ( void  )
inline

Definition at line 90 of file xml++.h.

◆ read() [2/2]

bool XMLTree::read ( const std::string &  fn)
inline

Definition at line 91 of file xml++.h.

◆ read_and_validate() [1/2]

bool XMLTree::read_and_validate ( )
inline

Definition at line 92 of file xml++.h.

◆ read_and_validate() [2/2]

bool XMLTree::read_and_validate ( const std::string &  fn)
inline

Definition at line 93 of file xml++.h.

◆ read_buffer()

bool XMLTree::read_buffer ( char const *  ,
bool  to_tree_doc = false 
)

◆ read_internal()

bool XMLTree::read_internal ( bool  validate)
private

◆ root()

XMLNode* XMLTree::root ( ) const
inline

Definition at line 81 of file xml++.h.

◆ set_compression()

int XMLTree::set_compression ( int  )

◆ set_filename()

const std::string& XMLTree::set_filename ( const std::string &  fn)
inline

Definition at line 85 of file xml++.h.

◆ set_root()

XMLNode* XMLTree::set_root ( XMLNode n)
inline

Definition at line 82 of file xml++.h.

◆ write() [1/2]

bool XMLTree::write ( ) const

◆ write() [2/2]

bool XMLTree::write ( const std::string &  fn)
inline

Definition at line 97 of file xml++.h.

◆ write_buffer()

const std::string& XMLTree::write_buffer ( ) const

Member Data Documentation

◆ _compression

int XMLTree::_compression
private

Definition at line 111 of file xml++.h.

◆ _doc

xmlDocPtr XMLTree::_doc
private

Definition at line 110 of file xml++.h.

◆ _filename

std::string XMLTree::_filename
private

Definition at line 108 of file xml++.h.

◆ _root

XMLNode* XMLTree::_root
private

Definition at line 109 of file xml++.h.


The documentation for this class was generated from the following file: