COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/include/coopy/MergeOutputNovel.h
Go to the documentation of this file.
00001 #ifndef COOPY_MERGEOUTPUTNOVEL
00002 #define COOPY_MERGEOUTPUTNOVEL
00003 
00004 #include <coopy/MergeOutput.h>
00005 
00006 #include <map>
00007 
00008 namespace coopy {
00009   namespace cmp {
00010     class MergeOutputNovel;
00011   }
00012 }
00013 
00014 
00015 class coopy::cmp::MergeOutputNovel : public Patcher {
00016 private:
00017   std::string sheet_name;
00018   int yoffset;
00019   std::map<int,int> col_map;
00020   std::map<int,std::string> remote_name;
00021   std::map<std::string,int> noted;
00022   std::string base_col_name;
00023 public:
00024   MergeOutputNovel() {
00025     sheet_name = coopy_get_default_table_name();
00026     yoffset = 0;
00027     base_col_name = "_ROW_";
00028   }
00029   
00030   virtual bool wantLinks() { 
00031     return true;
00032   }
00033 
00034   virtual bool setSheet(const char *name) {
00035     sheet_name = name;
00036     col_map.clear();
00037     remote_name.clear();
00038     return true;
00039   }
00040 
00041   virtual bool declareLink(const LinkDeclare& decl);
00042 
00043   virtual bool outputStartsFromInput() {
00044     return true;
00045   }
00046   
00047   virtual bool needOutputBook() {
00048     return true;
00049   }
00050 
00051   bool formatSheet();
00052 };
00053 
00054 
00055 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines