inlib  1.2.0
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/file_reader
Go to the documentation of this file.
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
00002 // See the file inlib.license for terms.
00003 
00004 #ifndef inlib_file_reader
00005 #define inlib_file_reader
00006 
00007 #include <string>
00008 #include <cstdio>
00009 
00010 namespace inlib {
00011 namespace file {
00012 
00013 class reader {
00014 public:
00015   virtual ~reader() {}
00016 public:
00017   virtual bool open(const std::string&) = 0;
00018   virtual void close() = 0;
00019   virtual bool is_open() const = 0;
00020   virtual bool read(char*,unsigned int,size_t&) = 0;
00021 };
00022 
00023 }}
00024 
00025 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines