COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/MergeOutputPatch.cpp
Go to the documentation of this file.
00001 #include <coopy/MergeOutputPatch.h>
00002 
00003 using namespace std;
00004 using namespace coopy::store;
00005 using namespace coopy::cmp;
00006 
00007 bool MergeOutputPatch::addRow(const char *tag,
00008                               const std::vector<SheetCell>& row,
00009                               const std::string& blank) {
00010   result.addField(tag,false);
00011   for (size_t i=0; i<row.size(); i++) {
00012     if (row[i].text!=blank) {
00013       result.addField(row[i].text.c_str(),row[i].escaped);
00014     } else {
00015       result.addField("",true);
00016     }
00017   }
00018   result.addRecord();
00019   return true;
00020 }
00021 
00022 
00023 bool MergeOutputPatch::mergeAllDone() {
00024   SheetStyle style;
00025   fprintf(out,"%s",get().encode(style).c_str());
00026   return true;
00027 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines