COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/include/coopy/IntSheet.h
Go to the documentation of this file.
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
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines