ardour
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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 (const std::string &)
 
bool write () const
 
bool write (const std::string &fn)
 
void debug (FILE *) const
 
const std::string & write_buffer () const
 
boost::shared_ptr
< XMLSharedNodeList
find (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 55 of file xml++.h.

Constructor & Destructor Documentation

XMLTree::XMLTree ( )

Definition at line 22 of file xml++.cc.

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

Definition at line 39 of file xml++.cc.

XMLTree::~XMLTree ( )

Definition at line 48 of file xml++.cc.

Member Function Documentation

int XMLTree::compression ( ) const
inline

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

void XMLTree::debug ( FILE *  out) const

Definition at line 182 of file xml++.cc.

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

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

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

Definition at line 371 of file xml++.cc.

bool XMLTree::read ( void  )
inline

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

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

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

bool XMLTree::read_and_validate ( )
inline

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

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

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

bool XMLTree::read_buffer ( const std::string &  )

Definition at line 125 of file xml++.cc.

bool XMLTree::read_internal ( bool  validate)
private

Definition at line 72 of file xml++.cc.

XMLNode* XMLTree::root ( ) const
inline

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

int XMLTree::set_compression ( int  c)

Definition at line 58 of file xml++.cc.

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

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

XMLNode* XMLTree::set_root ( XMLNode n)
inline

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

bool XMLTree::write ( ) const

Definition at line 147 of file xml++.cc.

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

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

const string & XMLTree::write_buffer ( ) const

Definition at line 198 of file xml++.cc.

Member Data Documentation

int XMLTree::_compression
private

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

xmlDocPtr XMLTree::_doc
private

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

std::string XMLTree::_filename
private

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

XMLNode* XMLTree::_root
private

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


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