summaryrefslogtreecommitdiff
path: root/project2/presenter.h
blob: ae0a12b1028d7c357bd73cdecc72f0b1a48640a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef PRESENTER_H
#define PRESENTER_H

#include <boost/shared_ptr.hpp>
#include <glibmm/ustring.h>
#include <libxml++/parsers/domparser.h>
#include "view.h"
#include "paramChecker.h"

class Presenter {
	public:
		typedef boost::shared_ptr<xmlpp::Document> XmlDocumentPtr;
		Presenter(const std::string & group, const std::string & file);
		~Presenter();

		virtual XmlDocumentPtr getDataDocument() const;

	protected:
		Views views;
		OrderedParamCheckers parameterChecks;
		xmlpp::DomParser present;
	public:
		const Glib::ustring responseRootNodeName;
		const Glib::ustring responseStyle;
};
typedef boost::shared_ptr<Presenter> PresenterPtr;

#endif