summaryrefslogtreecommitdiff
path: root/project2/xml/rawView.h
blob: b192c89c184c6b6e200bc8c9256292c0120dcf7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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