Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/file_reader is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_file_reader
0005 #define tools_file_reader
0006 
0007 #include <string>
0008 #include <cstdio>
0009 
0010 namespace tools {
0011 namespace file {
0012 
0013 class reader {
0014 public:
0015   virtual ~reader() {}
0016 public:
0017   virtual bool open(const std::string&) = 0;
0018   virtual void close() = 0;
0019   virtual bool is_open() const = 0;
0020   virtual bool read(char*,unsigned int,size_t&) = 0;
0021   virtual bool get_line(char*,unsigned int) = 0;
0022   virtual bool eof() const = 0;
0023 };
0024 
0025 }}
0026 
0027 #endif