Nymph  v1.5.2
Flow-Based Data Processing Framework
KTTestConfigurable.hh
Go to the documentation of this file.
1 /*
2  * KTTestConfigurable.hh
3  *
4  * Created on: Jul 25, 2012
5  * Author: nsoblath
6  */
7 
8 #ifndef KTTESTCONFIGURABLE_HH_
9 #define KTTESTCONFIGURABLE_HH_
10 
11 #include "KTConfigurable.hh"
12 
13 namespace Nymph
14 {
16  {
17  public:
18  KTTestConfigurable(const std::string& name = "test-configurable");
19  virtual ~KTTestConfigurable();
20 
21  public:
22  bool Configure(const scarab::param_node& node);
23 
24  public:
25  int GetIntData() const;
26  double GetDoubleData() const;
27  const std::string& GetStringData() const;
28 
29  void PrintConfig() const;
30 
31  private:
32  int fIntData;
33  double fDoubleData;
34  std::string fStringData;
35  };
36 
37  inline int KTTestConfigurable::GetIntData() const
38  {
39  return fIntData;
40  }
41 
42  inline double KTTestConfigurable::GetDoubleData() const
43  {
44  return fDoubleData;
45  }
46 
47  inline const std::string& KTTestConfigurable::GetStringData() const
48  {
49  return fStringData;
50  }
51 
52 } /* namespace Nymph */
53 #endif /* KTTESTCONFIGURABLE_HH_ */
bool Configure(const scarab::param_node &node)
Should perform parameter store and command-line configurations.
const std::string & GetStringData() const
KTTestConfigurable(const std::string &name="test-configurable")