PostProcessingAble.hh 1.11 KB
/*
 * PostProcessingAble.hh
 *
 *  Created on: 27 sept. 2013
 *      Author: CS
 */

#ifndef POSTPROCESSINGABLE_HH_
#define POSTPROCESSINGABLE_HH_

#include <string>
#include <vector>
#include <memory>

namespace postprocessing {

class PostProcessing;

class PostProcessingAble {

public:
	PostProcessingAble();
	virtual ~PostProcessingAble();

	/**
	 * Lists output files.
	 */
	virtual const std::vector<std::string>& getOutputs() const;

	/**
	 * Gives post-processing result out directory.
	 */
	virtual const std::string& getDestination() const;

	/**
	 * Browses post-processing list to apply each post-processing.
	 */
	void applyPostProcessing();

	/**
	 * Adds a post-processing to the list.
	 */
	void addPostProcessing(PostProcessing* pPostProcessing);

protected:

	/**
	 * A list of output files.
	 */
	std::vector<std::string> _files;

	/**
	 * An optional post-processing output destination, may be empty.
	 */
	std::string _outputDestination;

private:

	/**
	 * A post-processing list.
	 */
	std::vector<PostProcessing*> _postProcessingList;

};

} /* namespace postprocessing */
#endif /* POSTPROCESSINGABLE_HH_ */