/* * ZipPostProcessing.hh * * Created on: 25 sept. 2013 * Author: CS */ #ifndef ZIPPOSTPROCESSING_HH_ #define ZIPPOSTPROCESSING_HH_ #include #include #include "PostProcessing.hh" namespace postprocessing { class ZipPostProcessing: public PostProcessing { public: ZipPostProcessing(); ZipPostProcessing(const std::string& pParentName); virtual ~ZipPostProcessing(); /** * Applies post-processing. */ void apply(PostProcessingAble* pOutput); /** * Compresses a list of files. */ static std::string zip(const std::vector& pFiles, const std::string& pPrefix = std::string(), const std::string& pOutDir = std::string()); /** * Registers related node and process. */ void registerChildList( std::map>& 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 /* ZIPPOSTPROCESSING_HH_ */