#ifndef TEXTNODE_H #define TEXTNODE_H #include "Node.h" namespace xml { class TextNode : public Node { protected: std::string text; public: explicit TextNode(const std::string& initialText); virtual ~TextNode(); virtual std::istream& load(std::istream& in); virtual std::ostream& print(std::ostream& out, int depth = 0) const; private: DECLARE_COPY_METHODS(TextNode) }; } // namespace xml #endif // TEXTNODE_H