COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/include/coopy/DataStat.h
Go to the documentation of this file.
00001 #ifndef SSFOSSIL_DATASTAT
00002 #define SSFOSSIL_DATASTAT
00003 
00004 #include <coopy/DataColumn.h>
00005 #include <coopy/ColumnInfo.h>
00006 #include <coopy/FloatSheet.h>
00007 #include <coopy/CompareFlags.h>
00008 
00009 namespace coopy {
00010   namespace cmp {
00011     class DataStat;
00012   }
00013 }
00014 
00015 class coopy::cmp::DataStat {
00016 private:
00017   int rowDivider;
00018 public:
00019   DataStat() {
00020     clear();
00021   }
00022 
00023   std::vector<DataColumn> col;
00024   std::vector<coopy::store::ColumnType> ct;
00025   coopy::store::FloatSheet oddness;
00026   coopy::store::FloatSheet oddness_accum;
00027 
00028   void clear() {
00029     rowDivider = -1;
00030     ct.clear();
00031   }
00032 
00033   void evaluate(const coopy::store::DataSheet& sheet);
00034 
00035   void evaluate2(const coopy::store::DataSheet& sheet,
00036                  const coopy::cmp::CompareFlags& flags);
00037 
00038   const std::vector<coopy::store::ColumnType>& suggestTypes() const {
00039     return ct;
00040   }
00041 
00042   int getRowDivider() {
00043     return rowDivider;
00044   }
00045 };
00046 
00047 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines