summaryrefslogtreecommitdiff
path: root/project2/common/rowView.h
blob: 558284c320ad0038784e75cab3766d74ff590992 (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
30
31
32
33
#ifndef ROWVIEW_H
#define ROWVIEW_H

#include <libxml++/nodes/element.h>
#include <boost/intrusive_ptr.hpp>
#include "rowProcessor.h"
#include "view.h"

/// Project2 component to create output based on a records in a row set
class RowView : public View, public RowProcessor {
	public:
		RowView(const xmlpp::Element *);
		virtual ~RowView();

		void loadComplete(const CommonObjects *);
		void execute(const MultiRowSetPresenter *) const;
		void rowReady(const RowState *) const;

		const Variable rootName;
		const Variable recordName;

	protected:
		typedef std::map<Glib::ustring, Variable> Columns;
		Columns viewColumns;

		void executeChildren() const;
		typedef ANONSTORAGEOF(View) SubViews;
		SubViews subViews;
		mutable const MultiRowSetPresenter * presenter;
};

#endif