QtXmlTextNode.cxx
Go to the documentation of this file.
1 
12 #include "QtXmlTextNode.h"
13 
14 #include <qstring.h>
15 
16 using namespace hippodraw;
17 
19 QtXmlTextNode ( const QtXmlTextNode & node )
20  : XmlNode (),
21  XmlTextNode (),
22  QtXmlNode ()
23 {
24  m_text_node = node.m_text_node;
26 }
27 
29 QtXmlTextNode ( const QDomText & node )
30 {
31  m_text_node = node;
33 }
34 
37 {
38 }
39 
40 void
42 setData ( const std::string & data )
43 {
44  QString qstring ( data.c_str() );
45  m_text_node.setData ( qstring );
46 }
QDomNode m_node
The DOM node wrapped by this object.
Definition: QtXmlNode.h:41
~QtXmlTextNode()
The destructor.
void * data(numeric::array arr)
Definition: num_util.cpp:389
void setData(const std::string &data)
Sets the data for the node.
QtXmlTextNode(const QDomText &)
A pure virtual base class of XML DOM Text node wrapper.
Definition: XmlTextNode.h:28
hippodraw::QtXmlTextNode class interface
An XML element using the Qt XML module.
Definition: QtXmlNode.h:35
QDomText m_text_node
The DOM text node wrapped by this object.
Definition: QtXmlTextNode.h:44
An XML Dom text node using the Qt XML module.
Definition: QtXmlTextNode.h:38
A pure virtual base class of XML node wrappers.
Definition: XmlNode.h:27

Generated for HippoDraw Class Library by doxygen