Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* CTransform.h
*
* Created on: Oct 17, 2016
* Author: wfg
*/
#ifndef CTRANSFORM_H_
#define CTRANSFORM_H_
namespace adios
{
/**
* Parent class that defines data variable transformations. Used as a member of CVariable
*/
class CTransform
{
public:
const std::string m_Method; ///< name of the transformation method
const unsigned int m_CompressionLevel; ///< depends on library implementation
CVariable& m_Variable; ///< variable to be transformed
/**
* Initialize parent method
* @param method zlib, bzip2, szip
* @param variable
*/
CTransform( const std::string method, CVariable& variable );
virtual ~CTransform( );
virtual void WriteTransform( ) = 0;
virtual void ReadTransform( ) = 0;
virtual void GetCompressedLength( ) const = 0;
virtual void GetExpandedLength( ) const = 0;
};
} //end namespace
#endif /* CTRANSFORM_H_ */