File: normPostProcess.h

package info (click to toggle)
norm 1.5.9%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,680 kB
  • sloc: cpp: 123,494; xml: 7,536; tcl: 5,460; makefile: 3,442; python: 1,898; java: 1,750; ansic: 642; sh: 21; csh: 8
file content (29 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (4)
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