COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/include/coopy/OrderMerge.h
Go to the documentation of this file.
00001 #ifndef COOPY_ORDERMERGE
00002 #define COOPY_ORDERMERGE
00003 
00004 #include <coopy/OrderResult.h>
00005 #include <coopy/CsvSheet.h>
00006 #include <coopy/OrderResult.h>
00007 #include <coopy/MatchUnit.h>
00008 #include <coopy/CompareFlags.h>
00009 
00010 #include <list>
00011 
00012 namespace coopy {
00013   namespace cmp {
00014     class OrderMerge;
00015   }
00016 }
00017 
00018 class coopy::cmp::OrderMerge {
00019 public:
00020   OrderResult order_local, order_remote;
00021   std::list<MatchUnit> accum;
00022   int overlap;
00023   coopy::store::IntSheet xlocal, xremote;
00024   int start_local;
00025   int start_remote;
00026   CompareFlags flags;
00027 
00028   void process(int ilocal, int iremote,
00029                int& base_local, int& base_remote,
00030                int stop_local, int stop_remote);
00031 
00032   void merge(const OrderResult& nlocal,
00033              const OrderResult& nremote,
00034              const CompareFlags& flags,
00035              bool columnar); 
00036 
00037   void merge_by_id(const OrderResult& nlocal,
00038                    const OrderResult& nremote,
00039                    const CompareFlags& flags); 
00040 };
00041 
00042 
00043 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines