COOPY » Guide
version 0.6.5
|
00001 #ifndef COOPY_INTSHEET 00002 #define COOPY_INTSHEET 00003 00004 #include <coopy/TypedSheet.h> 00005 00006 #include <stdio.h> 00007 00008 namespace coopy { 00009 namespace store { 00010 class IntSheet; 00011 } 00012 } 00013 00014 class coopy::store::IntSheet : public TypedSheet<int> { 00015 public: 00016 static std::string int2string(int v) { 00017 char buf[256]; 00018 snprintf(buf,sizeof(buf),"%d",v); 00019 return buf; 00020 } 00021 00022 virtual std::string cellString(int x, int y) const { 00023 return int2string(cell(x,y)); 00024 } 00025 }; 00026 00027 00028 #endif