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