1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#ifndef _NORM_POST_PROCESS
#define _NORM_POST_PROCESS
#include "protoDefs.h" // for NULL
class NormPostProcessor
{
public:
NormPostProcessor();
virtual ~NormPostProcessor();
// Implement this per derivation
static NormPostProcessor* Create();
bool IsEnabled() {return (NULL != process_argv);}
bool SetCommand(const char* cmd);
void GetCommand(char* buffer, unsigned int buflen);
virtual bool ProcessFile(const char* path) = 0;
virtual void Kill() = 0;
virtual bool IsActive() = 0;
virtual void OnDeath() {};
protected:
char** process_argv;
unsigned int process_argc;
}; // end class NormPostProcessor
#endif // _NORM_POST_PROCESS
|