rdbstats  2.0.9
StatsResult.h
1 #ifndef StatsResult_H
2 #define StatsResult_H
3 
4 /* --8<--8<--8<--8<--
5  *
6  * Copyright (C) 2006 Smithsonian Astrophysical Observatory
7  *
8  * This file is part of rdbstats
9  *
10  * rdbstats is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * rdbstats is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the
22  * Free Software Foundation, Inc.
23  * 51 Franklin Street, Fifth Floor
24  * Boston, MA 02110-1301, USA
25  *
26  * -->8-->8-->8-->8-- */
27 
28 #include <Exception/Exception.h>
29 
30 #include "SelectedCols.h"
31 
35 template <class Type>
36 class StatsResult {
37 
38 public:
39 
40  virtual ~StatsResult( ) { }
41 
42  StatsResult( Type& col, RDB& otable );
43 
44  void calculate_statistics( );
45 
46  void update_statistics( );
47 
48 protected:
49 
52 
54  RDB& ordbtable;
55 
56 };
57 
58 #ifndef StatsResult_cc
59 #include "StatsResult.cc"
60 #endif
61 
62 #endif
Type & rdb_stats_columns
The reference to the selected rdb data column.
Definition: StatsResult.h:51
RDB & ordbtable
The reference to the output rdb table.
Definition: StatsResult.h:54
A container class to hold the relevant data for the rdb data columns.
Definition: StatsResult.h:36