Nymph  v1.5.2
Flow-Based Data Processing Framework
KTTestProcessor.cc
Go to the documentation of this file.
1 /*
2  * KTTestProcessor.cc
3  *
4  * Created on: Aug 15, 2012
5  * Author: nsoblath
6  */
7 
8 #include "KTTestProcessor.hh"
9 
10 #include "KTLogger.hh"
11 
12 namespace Nymph
13 {
14  KTLOGGER(testsiglog, "KTTestProcessor")
15 
17  fTheSignal()
18  {
19  RegisterSignal("the_signal", &fTheSignal);
20  }
21 
23  {
24  }
25 
26  bool KTTestProcessorA::Configure(const scarab::param_node&)
27  {
28  return true;
29  }
30 
32  {
33  fTheSignal(value);
34  return;
35  }
36 
37 
38 
39 
41  {
42  RegisterSlot("first_slot", this, &KTTestProcessorB::Slot1);
43  RegisterSlot("second_slot", this, &KTTestProcessorB::Slot2);
44  }
45 
47  {
48  }
49 
50  bool KTTestProcessorB::Configure(const scarab::param_node&)
51  {
52  return true;
53  }
54 
55  void KTTestProcessorB::Slot1(int input)
56  {
57  KTINFO(testsiglog, "Slot1: input is " << input);
58  return;
59  }
60 
61  void KTTestProcessorB::Slot2(int input)
62  {
63  KTINFO(testsiglog, "Slot2: twice input is " << 2*input);
64  return;
65  }
66 
67 
68 
69 } /* namespace Nymph */
#define KTINFO(...)
Definition: KTLogger.hh:344
void RegisterSlot(std::string name, XTarget *target, XReturn(XTarget::*funcPtr)())
Definition: KTProcessor.hh:96
bool Configure(const scarab::param_node &node)
Should perform parameter store and command-line configurations.
KTLOGGER(applog, "KTApplication")
bool Configure(const scarab::param_node &node)
Should perform parameter store and command-line configurations.
Contains the logger class and macros, based on Kasper&#39;s KLogger class.