GzipPostProcessing.hh 992 Bytes
/*
 * GzipPostProcessing.hh
 *
 *  Created on: 25 sept. 2013
 *      Author: CS
 */

#ifndef GZIPPOSTPROCESSING_HH_
#define GZIPPOSTPROCESSING_HH_

#include <string>
#include "PostProcessing.hh"

namespace postprocessing {

class GzipPostProcessing: public PostProcessing {
public:
	GzipPostProcessing();
	virtual ~GzipPostProcessing();

	/**
	 * Applies post-processing.
	 */
	void apply(PostProcessingAble* pOutput);

	/**
	 * Compresses a file.
	 */
	static std::string gzip(std::string& pFileName, const std::string& pOutDir =
			std::string());

	/**
	 * Registers related node and process.
	 */
	void registerChildList(
			std::map<std::string,
					boost::shared_ptr<AMDA::XMLConfigurator::NodeCfg>>& childList);

private:
	/**
	 * Artificial attribute to force self-registering to post-processing factory
	 */
	static std::string _key;

	/**
	 * Output file extension.
	 */
	static const std::string EXTENSION;
};

} /* namespace postprocessing */
#endif /* GZIPPOSTPROCESSING_HH_ */