Nymph  v1.5.2
Flow-Based Data Processing Framework
KTPrimaryProcessor.hh
Go to the documentation of this file.
1 /*
2  * KTPrimaryProcessor.hh
3  *
4  * Created on: Oct 10, 2012
5  * Author: nsoblath
6  */
7 
8 #ifndef KTPRIMARYPROCESSOR_HH_
9 #define KTPRIMARYPROCESSOR_HH_
10 
11 #include "KTProcessor.hh"
12 
13 #include "KTLogger.hh"
14 
15 namespace Nymph
16 {
17 
19  {
20  public:
21  KTPrimaryProcessor(const std::string& name = "default-primary-processor-name");
22  virtual ~KTPrimaryProcessor();
23 
24  public:
26  virtual void operator()();
27 
28  public:
30  virtual bool Run() = 0;
31 
32  };
33 
34 } /* namespace Nymph */
35 #endif /* KTPRIMARYPROCESSOR_HH_ */
Contains KTProcessor.
KTPrimaryProcessor(const std::string &name="default-primary-processor-name")
virtual void operator()()
Callable function used by boost::thread.
virtual bool Run()=0
Starts the main action of the processor.
Contains the logger class and macros, based on Kasper's KLogger class.