Faspstream Manager C/C++ API  1.0
A C and C++ language interface to basic streaming over the fasp protocol
ProcessMonitor.h
Go to the documentation of this file.
1 
2 #ifndef ___PROCESS_MONITOR_H___
3 #define ___PROCESS_MONITOR_H___
4 
5 #include "Poco/Process.h"
6 #include "Poco/SharedPtr.h"
7 
9 {
10 public:
11  virtual void handleError(int errorCode) = 0;
12 };
13 
15 {
16 private:
17  ErrorHandler& _eh;
18  Poco::SharedPtr<Poco::ProcessHandle> _ph;
19 public:
20  ProcessMonitor(ErrorHandler &eh, Poco::SharedPtr<Poco::ProcessHandle> ph);
21  void waitForProcess();
22 };
23 
24 #endif // ___PROCESS_MONITOR_H___
25 
virtual void handleError(int errorCode)=0
void waitForProcess()
Definition: ProcessMonitor.h:14
ProcessMonitor(ErrorHandler &eh, Poco::SharedPtr< Poco::ProcessHandle > ph)
Definition: ProcessMonitor.h:8