blob: 5dc24dc75be58e0f908391614611b76814881393 (
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
|
#ifndef FLATVIEW_H
#define FLATVIEW_H
#include <boost/intrusive_ptr.hpp>
#include "rowProcessor.h"
#include "view.h"
#include "aggregate.h"
/// Project2 component to create output based on a records in a flat row set
class FlatView : public SourceObject, public RowProcessor {
public:
FlatView(ScriptNodePtr);
virtual ~FlatView();
void loadComplete(const CommonObjects *);
void execute(const RowSetPresenter *, ExecContext *) const;
void rowReady(const RowState *, const RowSetPresenter *, ExecContext *, bool & found) const;
const Variable recordName;
const Variable required;
protected:
typedef std::map<Glib::ustring, Variable> Columns;
Columns viewColumns;
};
#endif
|