TarPostProcessing.hh 1.12 KB
/*
 * TarPostProcessing.hh
 *
 *  Created on: 26 sept. 2013
 *      Author: CS
 */

#ifndef TARPOSTPROCESSING_HH_
#define TARPOSTPROCESSING_HH_

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

namespace postprocessing {

class TarPostProcessing: public PostProcessing {
public:
	TarPostProcessing();
	TarPostProcessing(const std::string& pParentName);
	virtual ~TarPostProcessing();

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

	/**
	 * Archives some files.
	 */
	static std::string tar(const std::vector<std::string>& pFiles, const std::string& pPrefix = std::string(),
			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;

	std::string _parentName;

};

} /* namespace postprocessing */
#endif /* TARPOSTPROCESSING_HH_ */