Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Text.h
1 /*
2  * $Id$
3  * Copyright (c) 2006, IRIT UPS.
4  *
5  * elm/xom/Node.h -- XOM Text class interface.
6  */
7 #ifndef ELM_XOM_TEXT_H
8 #define ELM_XOM_TEXT_H
9 
10 #include <elm/xom/Node.h>
11 
12 namespace elm { namespace xom {
13 
14 // Text class
15 class Text: public Node {
16  friend class NodeFactory;
17 protected:
18  inline Text(void *node);
19 public:
20  Text(String data);
21  Text(const Text *text);
22  void setValue(String data);
23  String getText(void);
24 
25  // Node overload
26  virtual Node *copy(void);
27  virtual Node *getChild(int index);
28  virtual int getChildCount(void);
29  virtual String getValue(void);
30  virtual String toXML(void);
31 };
32 
33 // Text inlines
34 inline Text::Text(void *node): Node(node) {
35 }
36 
37 } } // elm::xom
38 
39 #endif /* ELM_XOM_TEXT_H */
elm::xom::Node::node
void * node
Definition: Node.h:60
elm::xom::NodeFactory
Definition: NodeFactory.h:27
elm::xom::Text::toXML
virtual String toXML(void)
Definition: xom_Text.cpp:102
elm::xom::Text::getChildCount
virtual int getChildCount(void)
Definition: xom_Text.cpp:88
elm::xom::String
Definition: String.h:35
elm::xom::Text::copy
virtual Node * copy(void)
Definition: xom_Text.cpp:56
elm::xom::Text::getChild
virtual Node * getChild(int index)
Definition: xom_Text.cpp:81
elm::xom::Text::setValue
void setValue(String data)
Definition: xom_Text.cpp:65
elm::xom::Text
Definition: Text.h:15
elm
Definition: adapter.h:26
elm::xom::Text::getText
String getText(void)
Definition: xom_Text.cpp:74
elm::xom::Text::getValue
virtual String getValue(void)
Definition: xom_Text.cpp:95
elm::xom::Text::Text
Text(void *node)
Definition: Text.h:34
elm::xom::Node
Definition: Node.h:40