|
Simbody
3.4 (development)
|
This is the "leaf" content of an element. More...
#include <Xml.h>
Inheritance diagram for SimTK::Xml::Text:Public Member Functions | |
| Text () | |
| Create an empty Text node handle, suitable only for holding references to other Text nodes. | |
| Text (const String &text) | |
| Create a new Text node with the given text; the node is not yet owned by any XML document. | |
| Text | clone () const |
| The clone() method makes a deep copy of this Text node and returns a new orphan Text node with the same contents; ordinary assignment and copy construction are shallow. | |
| const String & | getText () const |
| Obtain a const reference to the String holding the value of this Text. | |
| String & | updText () |
| Obtain a writable reference to the String holding the value of this Text node; this can be used to alter the value. | |
Static Public Member Functions | |
Conversion to Text from Node | |
If you have a handle to a Node, such as would be returned by a node_iterator, you can check whether that Node is a Text node and if so cast it to one. | |
| static bool | isA (const Node &) |
| Test whether a given Node is an Text node. | |
| static const Text & | getAs (const Node &node) |
| Recast a Node to a const Text node, throwing an error if the Node is not actually a Text node. | |
| static Text & | getAs (Node &node) |
| Recast a writable Node to a writable Text node, throwing an error if the Node is not actually a Text node. | |
This is the "leaf" content of an element.
| SimTK::Xml::Text::Text | ( | ) | [inline] |
| SimTK::Xml::Text::Text | ( | const String & | text | ) | [explicit] |
Create a new Text node with the given text; the node is not yet owned by any XML document.
| Text SimTK::Xml::Text::clone | ( | ) | const |
The clone() method makes a deep copy of this Text node and returns a new orphan Text node with the same contents; ordinary assignment and copy construction are shallow.
Reimplemented from SimTK::Xml::Node.
| const String& SimTK::Xml::Text::getText | ( | ) | const |
| static bool SimTK::Xml::Text::isA | ( | const Node & | ) | [static] |
| static const Text& SimTK::Xml::Text::getAs | ( | const Node & | node | ) | [static] |
| static Text& SimTK::Xml::Text::getAs | ( | Node & | node | ) | [static] |