File: normPostProcess.h

package info (click to toggle)
norm 1.5.8%2Bdfsg2-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 11,256 kB
  • sloc: cpp: 114,141; python: 27,185; xml: 7,165; tcl: 5,460; makefile: 3,463; java: 1,749; ansic: 607; sh: 181; 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