Warning, /include/Geant4/tools/wroot/ifile 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_wroot_ifile
0005 #define tools_wroot_ifile
0006
0007 #include "seek"
0008 #include "../press_func"
0009
0010 namespace tools {
0011 namespace wroot {
0012 class buffer;
0013 }}
0014
0015 namespace tools {
0016 namespace wroot {
0017
0018 class ifile {
0019 public:
0020 virtual ~ifile(){}
0021 public:
0022 virtual bool verbose() const = 0;
0023 virtual std::ostream& out() const = 0;
0024 virtual bool byte_swap() const = 0;
0025 enum from {
0026 begin,
0027 current,
0028 end
0029 };
0030 virtual bool set_pos(seek = 0,from = begin) = 0;
0031
0032 virtual seek END() const = 0;
0033 virtual void set_END(seek) = 0;
0034
0035 virtual bool write_buffer(const char*,uint32) = 0;
0036
0037 virtual uint32 version() const = 0;
0038
0039 virtual bool synchronize() = 0;
0040
0041 virtual bool ziper(char,compress_func&) const = 0;
0042
0043 virtual uint32 compression() const = 0;
0044
0045 virtual void compress_buffer(const buffer&,char*&,uint32&,bool&) = 0;
0046 };
0047
0048 }}
0049
0050 #endif