g4tools  5.4.0
ifile
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_wroot_ifile
5 #define tools_wroot_ifile
6 
7 #include "seek"
8 #include "../press_func"
9 
10 namespace tools {
11 namespace wroot {
12  class buffer;
13 }}
14 
15 namespace tools {
16 namespace wroot {
17 
18 class ifile {
19 public:
20  virtual ~ifile(){}
21 public:
22  virtual bool verbose() const = 0;
23  virtual std::ostream& out() const = 0;
24  virtual bool byte_swap() const = 0;
25  enum from {
28  end
29  };
30  virtual bool set_pos(seek = 0,from = begin) = 0;
31 
32  virtual seek END() const = 0;
33  virtual void set_END(seek) = 0;
34 
35  virtual bool write_buffer(const char*,uint32) = 0;
36 
37  virtual uint32 version() const = 0;
38 
39  virtual bool synchronize() = 0;
40 
41  virtual bool ziper(char,compress_func&) const = 0;
42 
43  virtual uint32 compression() const = 0;
44 
45  virtual void compress_buffer(const buffer&,char*&,uint32&,bool&) = 0;
46 };
47 
48 }}
49 
50 #endif
tools::wroot::seek
int64 seek
Definition: seek:16
tools::wroot::ifile::ziper
virtual bool ziper(char, compress_func &) const =0
tools::wroot::ifile
Definition: ifile:18
tools::wroot::ifile::current
@ current
Definition: ifile:27
tools::wroot::ifile::end
@ end
Definition: ifile:28
tools::wroot::ifile::write_buffer
virtual bool write_buffer(const char *, uint32)=0
tools::compress_func
bool(* compress_func)(std::ostream &, unsigned int, unsigned int, const char *, unsigned int, char *, unsigned int &)
Definition: press_func:11
tools::wroot::ifile::from
from
Definition: ifile:25
tools::wroot::ifile::set_pos
virtual bool set_pos(seek=0, from=begin)=0
tools::wroot::ifile::~ifile
virtual ~ifile()
Definition: ifile:20
tools::wroot::ifile::version
virtual uint32 version() const =0
tools::wroot::ifile::synchronize
virtual bool synchronize()=0
tools::wroot::ifile::compression
virtual uint32 compression() const =0
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::wroot::ifile::byte_swap
virtual bool byte_swap() const =0
tools::wroot::ifile::END
virtual seek END() const =0
tools::wroot::buffer
Definition: buffer:28
seek
tools::wroot::ifile::out
virtual std::ostream & out() const =0
tools::wroot::ifile::set_END
virtual void set_END(seek)=0
tools::wroot::ifile::verbose
virtual bool verbose() const =0
tools::wroot::ifile::begin
@ begin
Definition: ifile:26
tools::wroot::ifile::compress_buffer
virtual void compress_buffer(const buffer &, char *&, uint32 &, bool &)=0
tools::uint32
unsigned int uint32
Definition: typedefs:71