2012-11-26 21:38:13 +00:00
|
|
|
#ifndef TMPFILES_H__
|
|
|
|
#define TMPFILES_H__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <set>
|
|
|
|
#include "Param.h"
|
|
|
|
|
|
|
|
namespace pdf2htmlEX {
|
|
|
|
|
|
|
|
class TmpFiles
|
|
|
|
{
|
|
|
|
public:
|
2012-11-27 16:17:29 +00:00
|
|
|
explicit TmpFiles( const Param& param );
|
|
|
|
~TmpFiles();
|
2012-11-26 21:38:13 +00:00
|
|
|
|
2012-11-27 16:17:29 +00:00
|
|
|
void add( const std::string& fn);
|
2012-11-26 21:38:13 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void clean();
|
|
|
|
|
|
|
|
private:
|
2012-11-27 16:17:29 +00:00
|
|
|
const Param& param;
|
2012-11-26 21:38:13 +00:00
|
|
|
std::set<std::string> tmp_files;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace pdf2htmlEX
|
|
|
|
|
|
|
|
#endif //TMPFILES_H__
|