Teuchos::XMLObjectImplem Class Reference
The
XMLObjectImplem class takes care of the low-level implementation details of
XMLObject.
More...
#include <Teuchos_XMLObjectImplem.hpp>
List of all members.
|
Public Member Functions |
| XMLObjectImplem (const std::string &tag) |
| Construct with a 'tag'.
|
XMLObjectImplem * | deepCopy () const |
| Deep copy.
|
void | addAttribute (const std::string &name, const std::string &value) |
| Add a [name, value] attribute.
|
void | addChild (const XMLObject &child) |
| Add a child XMLObject.
|
void | addContent (const std::string &contentLine) |
| Add a content line.
|
const std::string & | getTag () const |
| Return the tag std::string.
|
bool | hasAttribute (const std::string &name) const |
| Determine whether an attribute exists.
|
const std::string & | getAttribute (const std::string &name) const |
| Look up an attribute by name.
|
int | numChildren () const |
| Return the number of children.
|
const XMLObject & | getChild (int i) const |
| Look up a child by its index.
|
int | numContentLines () const |
| Get the number of content lines.
|
const std::string & | getContentLine (int i) const |
| Look up a content line by index.
|
void | print (std::ostream &os, int indent) const |
| Print to stream with the given indentation level. Output will be well-formed XML.
|
std::string | toString () const |
| Write as a std::string. Output may be ill-formed XML.
|
std::string | header (bool strictXML=false) const |
| Write the header.
|
std::string | terminatedHeader (bool strictXML=false) const |
| Write the header terminated as <Header>.
|
std::string | footer () const |
| Write the footer.
|
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 std::string & |
tag |
) |
|
Member Function Documentation
void XMLObjectImplem::addAttribute |
( |
const std::string & |
name, |
|
|
const std::string & |
value | |
|
) |
| | |
void XMLObjectImplem::addChild |
( |
const XMLObject & |
child |
) |
|
void XMLObjectImplem::addContent |
( |
const std::string & |
contentLine |
) |
|
std::string Teuchos::XMLObjectImplem::footer |
( |
|
) |
const [inline] |
const std::string& Teuchos::XMLObjectImplem::getAttribute |
( |
const std::string & |
name |
) |
const [inline] |
const XMLObject & XMLObjectImplem::getChild |
( |
int |
i |
) |
const |
const std::string& Teuchos::XMLObjectImplem::getContentLine |
( |
int |
i |
) |
const [inline] |
const std::string& Teuchos::XMLObjectImplem::getTag |
( |
|
) |
const [inline] |
bool Teuchos::XMLObjectImplem::hasAttribute |
( |
const std::string & |
name |
) |
const [inline] |
std::string XMLObjectImplem::header |
( |
bool |
strictXML = false |
) |
const |
int XMLObjectImplem::numChildren |
( |
|
) |
const |
int Teuchos::XMLObjectImplem::numContentLines |
( |
|
) |
const [inline] |
void XMLObjectImplem::print |
( |
std::ostream & |
os, |
|
|
int |
indent | |
|
) |
| | const |
std::string XMLObjectImplem::terminatedHeader |
( |
bool |
strictXML = false |
) |
const |
std::string XMLObjectImplem::toString |
( |
|
) |
const |
The documentation for this class was generated from the following files: