summaryrefslogtreecommitdiff
path: root/project2/common/rowView.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-01-31 00:30:49 +0000
committerrandomdan <randomdan@localhost>2012-01-31 00:30:49 +0000
commit0b014943efe1cbddf7312bf00758e1d657aaa745 (patch)
treeb1fc1e6f522cf82f81eadd09d2a6b3068787440d /project2/common/rowView.h
parentAdd some configurability to the Html2Text transform (diff)
downloadproject2-0b014943efe1cbddf7312bf00758e1d657aaa745.tar.bz2
project2-0b014943efe1cbddf7312bf00758e1d657aaa745.tar.xz
project2-0b014943efe1cbddf7312bf00758e1d657aaa745.zip
Add support for aggregates in row views
Add a few aggregates implementations (min, max, distinct) Use distinct to get the GB homepage in a single DB trip Fix lessthan operation on variable types to be the right way round as it now matters
Diffstat (limited to 'project2/common/rowView.h')
-rw-r--r--project2/common/rowView.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/project2/common/rowView.h b/project2/common/rowView.h
index 4b90884..40ec8a9 100644
--- a/project2/common/rowView.h
+++ b/project2/common/rowView.h
@@ -4,6 +4,7 @@
#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 row set
class RowView : public View, public RowProcessor {
@@ -25,6 +26,10 @@ class RowView : public View, public RowProcessor {
void executeChildren() const;
typedef ANONSTORAGEOF(View) SubViews;
SubViews subViews;
+ typedef ANONSTORAGEOF(ValueAggregate) ValueAggregates;
+ ValueAggregates valueAggregates;
+ typedef ANONSTORAGEOF(SetAggregate) SetAggregates;
+ SetAggregates setAggregates;
mutable const MultiRowSetPresenter * presenter;
};