OpendTect-6_4  6.4
ziparchiveinfo.h
Go to the documentation of this file.
1 #ifndef ziparchiveinfo_h
2 #define ziparchiveinfo_h
3 
4 /*+
5 ________________________________________________________________________
6 
7 (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8 Author: Salil Agarwal
9 Date: 27 August 2012
10 RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "generalmod.h"
16 #include "objectset.h"
17 #include "bufstring.h"
18 
19 class BufferStringSet;
20 class ZipFileInfo;
21 
22 
28 {
29 public:
30 
31  ZipArchiveInfo(const char* fnm);
32  ~ZipArchiveInfo();
33 
34  bool isOK() const { return isok_; }
35  const char* errorMsg() const;
36 
37  bool getAllFnms(BufferStringSet&) const;
38 
40  od_int64 getFileCompSize(const char* fnm) const;
41  od_int64 getFileCompSize(int) const;
42  od_int64 getFileUnCompSize(const char* fnm) const;
43  od_int64 getFileUnCompSize(int) const;
44 
45  od_int64 getLocalHeaderOffset(const char* fnm) const;
46  od_int64 getLocalHeaderOffset(int) const;
47 
48 protected:
49 
50  bool readZipArchive(const char* fnm);
51 
54  bool isok_;
55 
56 };
57 
58 
59 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BufferString errormsg_
Definition: ziparchiveinfo.h:53
#define od_int64
Definition: plftypes.h:36
Set of BufferString objects.
Definition: bufstringset.h:28
Gives information of zip archives.
Definition: ziparchiveinfo.h:27
bool isOK() const
Definition: ziparchiveinfo.h:34
bool isok_
Definition: ziparchiveinfo.h:54
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Zip file information.
Definition: ziphandler.h:27
ObjectSet< ZipFileInfo > fileinfo_
Definition: ziparchiveinfo.h:52

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019