Newer
Older
/*
* CTransform.h
*
* Created on: Oct 17, 2016
* Author: wfg
*/
#ifndef CTRANSFORM_H_
#define CTRANSFORM_H_
#include <core/SVariable.h>
#include <string>
/// \endcond
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
/**
* Initialize parent method
* @param method zlib, bzip2, szip
* @param variable
*/
CTransform( const unsigned int compressionLevel ):
m_CompressionLevel( compressionLevel )
virtual void Compress( ) const = 0; ///< Compress m_Variable data m_Value
virtual void Decompress( ) const = 0; ///< Ext m_Variable data m_Value