]> git.sesse.net Git - xml-template/blobdiff - c++0x/xml-template.h
Implement attribute handling in C++0x.
[xml-template] / c++0x / xml-template.h
index 8f3d69b19257e3ae85e0d4f57163b39597277c30..4728dbf088379b5edc998285408e28ed07e06aff 100644 (file)
@@ -12,12 +12,14 @@ class Directive {
  public:
        virtual ~Directive();
        virtual void process(xmlNode *node, bool clean) = 0;
+       virtual std::string get_contents();  // Only makes sense for Replace.
 };
 
 class Replace : public Directive {
  public:
        Replace(const std::string &str);
        virtual void process(xmlNode *node, bool clean);
+       virtual std::string get_contents();
 
  private:
        const std::string str;