summaryrefslogtreecommitdiff
path: root/project2/xml/rawView.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/xml/rawView.h')
-rw-r--r--project2/xml/rawView.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/project2/xml/rawView.h b/project2/xml/rawView.h
new file mode 100644
index 0000000..b192c89
--- /dev/null
+++ b/project2/xml/rawView.h
@@ -0,0 +1,22 @@
+#ifndef RAWVIEW_H
+#define RAWVIEW_H
+
+#include <libxml++/nodes/element.h>
+#include <boost/intrusive_ptr.hpp>
+#include <map>
+#include "view.h"
+
+/// Project2 component to create output based on its own XML tree node
+class RawView : public View {
+ public:
+ RawView(const xmlpp::Element * p);
+ void execute(const Presenter *) const;
+ virtual void loadComplete(const CommonObjects *);
+ private:
+ void copyNode(const Presenter *, const xmlpp::Element *) const;
+ const xmlpp::Element * copyRoot;
+};
+
+#endif
+
+