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;