COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/include/coopy/Reader.h
Go to the documentation of this file.
00001 #ifndef COOPY_READER_INC
00002 #define COOPY_READER_INC
00003 
00004 #include <string>
00005 
00006 #include <coopy/Format.h>
00007 
00008 namespace coopy {
00009   namespace format {
00010     class Reader;
00011   }
00012 }
00013 
00014 class coopy::format::Reader {
00015 private:
00016   std::string unread;
00017 public:
00018   virtual ~Reader() {}
00019 
00020   // Return some bytes, not necessarily all.  
00021   // Returning a 0-length string signals end.
00022   virtual std::string read() = 0;
00023 
00024   // Get a line.  
00025   std::string readLine(bool& eof);
00026   
00027   virtual Format getFormat() = 0;
00028 };
00029 
00030 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines