1 #ifndef _PROCESSWRAPPER_H_
\r
2 #define _PROCESSWRAPPER_H_
\r
8 #include "WindowedFifo.h"
\r
10 #ifdef INCLUDE_PROFILER
\r
11 extern FILE *profiler_output_file;
\r
12 extern unsigned int profiler_event_counter;
\r
15 class ProcessWrapper
\r
18 ProcessWrapper(char* name);
\r
19 virtual ~ProcessWrapper();
\r
20 virtual void initialize();
\r
22 virtual bool isDetached() { return _isDetached; }
\r
23 virtual void detach();
\r
24 virtual int getIndex(unsigned indexNumber) const;
\r
25 virtual char* getName() const;
\r
27 #ifdef INCLUDE_PROFILER
\r
28 virtual void addToProfile(const char *event, void *port,
\r
32 #ifdef INCLUDE_TRACE
\r
35 char channel_name[NAME_LENGTH];
\r
38 #ifdef INCLUDE_PERFORMANCE
\r
41 CURRENT_TIME start_time;
\r
42 CURRENT_TIME end_time;
\r
47 DOLProcess _process;
\r
49 int _iteratorIndex[4];
\r
50 virtual int getIndex(const char* string, char* tokens,
\r
51 int indexNumber) const;
\r