Teuchos::XMLObjectImplem Class Reference

The XMLObjectImplem class takes care of the low-level implementation details of XMLObject. More...

#include <Teuchos_XMLObjectImplem.hpp>

Collaboration diagram for Teuchos::XMLObjectImplem:

[legend]
List of all members.

Public Member Functions

 XMLObjectImplem (const string &string)
 Construct with a tag string.
XMLObjectImplemdeepCopy () const
 Deep copy.
void addAttribute (const string &name, const string &value)
 Add a [name, value] attribute.
void addChild (const XMLObject &child)
 Add a child XMLObject.
void addContent (const string &contentLine)
 Add a content line.
string toString () const
 Write as a string.
const string & getTag () const
 Return the tag string.
string header () const
 Write the header.
string terminatedHeader () const
 Write the header terminated as <Header/>.
string footer () const
 Write the footer.
bool hasAttribute (const string &name) const
 Determine whether an attribute exists.
const string & getAttribute (const string &name) const
 Look up an attribute by name.
int numChildren () const
 Return the number of children.
const XMLObjectgetChild (int i) const
 Look up a child by its index.
int numContentLines () const
 Get the number of content lines.
const string & getContentLine (int i) const
 Look up a content line by index.
void print (ostream &os, int indent) const
 Print to stream with the given indentation level.

Private Member Functions

void printContent (ostream &os, int indent) const
 Print content lines using the given indentation level.

Detailed Description

The XMLObjectImplem class takes care of the low-level implementation details of XMLObject.

Definition at line 49 of file Teuchos_XMLObjectImplem.hpp.


Constructor & Destructor Documentation

XMLObjectImplem::XMLObjectImplem const string &  string  ) 
 

Construct with a tag string.

Definition at line 35 of file Teuchos_XMLObjectImplem.cpp.


Member Function Documentation

XMLObjectImplem * XMLObjectImplem::deepCopy  )  const
 

Deep copy.

Definition at line 39 of file Teuchos_XMLObjectImplem.cpp.

void XMLObjectImplem::addAttribute const string &  name,
const string &  value
 

Add a [name, value] attribute.

Definition at line 56 of file Teuchos_XMLObjectImplem.cpp.

void XMLObjectImplem::addChild const XMLObject child  ) 
 

Add a child XMLObject.

Definition at line 61 of file Teuchos_XMLObjectImplem.cpp.

void XMLObjectImplem::addContent const string &  contentLine  ) 
 

Add a content line.

Definition at line 66 of file Teuchos_XMLObjectImplem.cpp.

string XMLObjectImplem::toString  )  const
 

Write as a string.

Definition at line 103 of file Teuchos_XMLObjectImplem.cpp.

const string& Teuchos::XMLObjectImplem::getTag  )  const [inline]
 

Return the tag string.

Definition at line 73 of file Teuchos_XMLObjectImplem.hpp.

string XMLObjectImplem::header  )  const
 

Write the header.

Definition at line 76 of file Teuchos_XMLObjectImplem.cpp.

string XMLObjectImplem::terminatedHeader  )  const
 

Write the header terminated as <Header/>.

Definition at line 89 of file Teuchos_XMLObjectImplem.cpp.

string Teuchos::XMLObjectImplem::footer  )  const [inline]
 

Write the footer.

Definition at line 82 of file Teuchos_XMLObjectImplem.hpp.

bool Teuchos::XMLObjectImplem::hasAttribute const string &  name  )  const [inline]
 

Determine whether an attribute exists.

Definition at line 85 of file Teuchos_XMLObjectImplem.hpp.

const string& Teuchos::XMLObjectImplem::getAttribute const string &  name  )  const [inline]
 

Look up an attribute by name.

Definition at line 89 of file Teuchos_XMLObjectImplem.hpp.

int XMLObjectImplem::numChildren  )  const
 

Return the number of children.

Definition at line 54 of file Teuchos_XMLObjectImplem.cpp.

const XMLObject & XMLObjectImplem::getChild int  i  )  const
 

Look up a child by its index.

Definition at line 71 of file Teuchos_XMLObjectImplem.cpp.

int Teuchos::XMLObjectImplem::numContentLines  )  const [inline]
 

Get the number of content lines.

Definition at line 99 of file Teuchos_XMLObjectImplem.hpp.

const string& Teuchos::XMLObjectImplem::getContentLine int  i  )  const [inline]
 

Look up a content line by index.

Definition at line 102 of file Teuchos_XMLObjectImplem.hpp.

void XMLObjectImplem::print ostream &  os,
int  indent
const
 

Print to stream with the given indentation level.

Definition at line 139 of file Teuchos_XMLObjectImplem.cpp.

void XMLObjectImplem::printContent ostream &  os,
int  indent
const [private]
 

Print content lines using the given indentation level.

Definition at line 164 of file Teuchos_XMLObjectImplem.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:39:12 2008 for Teuchos - Trilinos Tools Package by doxygen 1.3.9.1