-
Atkins, Charles Vernon authoredAtkins, Charles Vernon authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Transform.h 984 B
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* Transform.h
*
* Created on: Oct 17, 2016
* Author: wfg
*/
#ifndef TRANSFORM_H_
#define TRANSFORM_H_
/// \cond EXCLUDE_FROM_DOXYGEN
#include <string>
#include <vector>
/// \endcond
#include "ADIOSConfig.h"
namespace adios
{
/**
* Parent class that defines data variable transformations. Used as a member of
* CVariable
*/
class Transform
{
public:
const std::string m_Method;
/**
* Initialize parent method
* @param method zlib, bzip2, szip
*/
Transform(std::string method);
virtual ~Transform() = default;
virtual void Compress(const std::vector<char> &bufferIn,
std::vector<char> &bufferOut);
virtual void Decompress(const std::vector<char> &bufferIn,
std::vector<char> &bufferOut);
};
} // end namespace adios
#endif /* TRANSFORM_H_ */