COOPY » Guide
version 0.6.5
|
00001 #ifndef CSVRENDER_INC 00002 #define CSVRENDER_INC 00003 00004 #include <coopy/DataSheet.h> 00005 00006 class CsvRender { 00007 private: 00008 bool full; 00009 bool decorate; 00010 bool header; 00011 bool dox; 00012 bool caption; 00013 public: 00014 CsvRender() { 00015 full = false; 00016 decorate = true; 00017 dox = false; 00018 caption = false; 00019 } 00020 void setDecorate(bool flag) { decorate = flag; } 00021 void setFull(bool flag) { full = flag; } 00022 void setHeader(bool flag) { header = flag; } 00023 void setDox(bool flag) { dox = flag; } 00024 void setCaption(bool flag) { caption = flag; } 00025 std::string renderHtml(const coopy::store::DataSheet& sheet, 00026 const std::string& title = ""); 00027 }; 00028 00029 #endif