X-Git-Url: https://git.sesse.net/?p=xml-template;a=blobdiff_plain;f=c%2B%2B0x%2Fxml-template.h;h=4728dbf088379b5edc998285408e28ed07e06aff;hp=8f3d69b19257e3ae85e0d4f57163b39597277c30;hb=29f0ad69120092c93021e37f764777d5ccd84d3e;hpb=695c2222293c1a245ac5a316edf031f5f5a7bb30 diff --git a/c++0x/xml-template.h b/c++0x/xml-template.h index 8f3d69b..4728dbf 100644 --- a/c++0x/xml-template.h +++ b/c++0x/xml-template.h @@ -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;