ADTF  3.18.2
filecompression.h
Go to the documentation of this file.
1 
8 #ifndef COMPRESSION_FILE_HEADER_H
9 #define COMPRESSION_FILE_HEADER_H
10 
11 namespace A_UTILS_NS
12 {
13 
18 {
19  public:
21  typedef enum
22  {
23  CA_Auto = 0,
24  CA_Bzip2 = 1
26 
27  public:
28 
36  static tResult Compress(const tChar* strInputFile, const tChar* strOutputFile = nullptr, tUInt32 nAlgo = CA_Auto);
37 
45  static tResult Decompress(const tChar* strInputFile, const tChar* strOutputFile, tUInt32 nAlgo = CA_Auto);
46 };
47 
48 }
49 
50 #endif
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
Class for compressing and extracting files.
static tResult Compress(const tChar *strInputFile, const tChar *strOutputFile=nullptr, tUInt32 nAlgo=CA_Auto)
Compresses the given input file to the given output file.
static tResult Decompress(const tChar *strInputFile, const tChar *strOutputFile, tUInt32 nAlgo=CA_Auto)
Decompresses the given input file to the given output file.
tCompressionAlgorithms
Enumeration of compression algorithms.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11