COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/include/coopy/MatchUnit.h
Go to the documentation of this file.
00001 #ifndef COOPY_MATCHUNIT
00002 #define COOPY_MATCHUNIT
00003 
00004 namespace coopy {
00005   namespace cmp {
00006     class MatchUnit;
00007 
00008     enum {
00009       // status, from local perspective
00010       MATCH_UNIT_NONE,
00011       MATCH_UNIT_INSERT,
00012       MATCH_UNIT_DELETE,
00013       MATCH_UNIT_PRESERVE,
00014     };
00015   }
00016 }
00017 
00018 class coopy::cmp::MatchUnit {
00019 public:
00020   int pivotUnit;
00021   int localUnit;
00022   int remoteUnit;
00023   bool deleted;
00024   int status;
00025 
00026   MatchUnit() {
00027     remoteUnit = localUnit = pivotUnit = -1;
00028     deleted = false;
00029     status = MATCH_UNIT_NONE;
00030   }
00031 
00032   MatchUnit(int pivot, int local, int remote, bool deleted, int status) {
00033     pivotUnit = pivot;
00034     localUnit = local;
00035     remoteUnit = remote;
00036     this->deleted = deleted;
00037     this->status = status;
00038   }
00039 };
00040 
00041 #endif
00042 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines