COOPY » Guide
version 0.6.5
|
00001 #ifndef COOPY_MERGEOUTPUTROWOPS 00002 #define COOPY_MERGEOUTPUTROWOPS 00003 00004 #include <coopy/MergeOutput.h> 00005 00006 #include <string> 00007 #include <vector> 00008 00009 namespace coopy { 00010 namespace cmp { 00011 class MergeOutputRowOps; 00012 } 00013 } 00014 00015 class coopy::cmp::MergeOutputRowOps : public MergeOutput { 00016 private: 00017 std::string sheet_name; 00018 std::vector<std::string> ids; 00019 coopy::store::PolySheet ops; 00020 public: 00021 virtual bool wantDiff() { return true; } 00022 virtual bool changeRow(const RowChange& change); 00023 00024 virtual bool setSheet(const char *name) { 00025 sheet_name = name; 00026 ops.clear(); 00027 return true; 00028 } 00029 00030 virtual bool needOutputBook() { 00031 return true; 00032 } 00033 }; 00034 00035 #endif