summaryrefslogtreecommitdiff
path: root/project2/xmlPresenter.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/xmlPresenter.h')
-rw-r--r--project2/xmlPresenter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/xmlPresenter.h b/project2/xmlPresenter.h
index 9b32c31..ae40470 100644
--- a/project2/xmlPresenter.h
+++ b/project2/xmlPresenter.h
@@ -8,7 +8,7 @@ namespace xmlpp {
class Document;
}
-class XmlPresenter : public ContentPresenter, public SourceOf<xmlpp::Document>, public SourceOf<xmlDoc> {
+class XmlPresenter : public ContentPresenter, public SourceOf<xmlpp::Document>, public SourceOf<xmlDoc>, public SourceOf<boost::shared_ptr<xmlpp::Document> > {
public:
typedef boost::shared_ptr<xmlpp::Document> XmlDocumentPtr;
XmlPresenter(const Glib::ustring & responseRootNodeName, const Glib::ustring & responseStyle, const Glib::ustring & contentType);
@@ -24,6 +24,7 @@ class XmlPresenter : public ContentPresenter, public SourceOf<xmlpp::Document>,
operator const xmlpp::Document * () const;
operator const xmlDoc * () const;
+ operator const boost::shared_ptr<xmlpp::Document> * () const;
private:
void createDoc(const Glib::ustring & responseRootNodeName, const Glib::ustring & responseStyle) const;