Psyllid  v1.12.4
Project 8 Data Acquisisition Software
node_builder.cc
Go to the documentation of this file.
1 /*
2  * node_builder.cc
3  *
4  * Created on: Feb 18, 2016
5  * Author: nsoblath
6  */
7 
8 #include "node_builder.hh"
9 
10 namespace psyllid
11 {
12  //****************
13  // node_binding
14  //****************
15 
17  {}
18 
20  {}
21 
23  {
24  return *this;
25  }
26 
27 
28  //****************
29  // node_builder
30  //****************
31 
33  node_binding(),
34  f_binding( a_binding ),
35  f_config(),
36  f_name()
37  {
38  }
39 
41  {
42  delete f_binding;
43  }
44 
46  {
47  delete f_binding;
48  f_binding = a_rhs.f_binding->clone();
49  f_config = a_rhs.f_config;
50  f_name = a_rhs.f_name;
51  this->node_binding::operator=( a_rhs );
52  return *this;
53  }
54 
55 
56 
57 /*
58 
59  node_builder::node_builder() :
60  f_name(),
61  f_config()
62  {
63  }
64 
65  node_builder::node_builder( const node_builder& a_orig ) :
66  f_name( a_orig.f_name ),
67  f_config( a_orig.f_config )
68  {
69  }
70 
71  node_builder::~node_builder()
72  {
73  }
74 
75  node_builder& node_builder::operator=( const node_builder& a_rhs )
76  {
77  f_name = a_rhs.f_name;
78  f_config = a_rhs.f_config;
79  return *this;
80  }
81 
82  void node_builder::configure( const scarab::param_node& a_config )
83  {
84  f_config.merge( a_config );
85  return;
86  }
87 
88  void node_builder::replace_config( const scarab::param_node& a_config )
89  {
90  f_config.clear();
91  f_config.merge( a_config );
92  return;
93  }
94 
95  void node_builder::dump_config( scarab::param_node& a_config )
96  {
97  a_config.clear();
98  a_config.merge( f_config );
99  return;
100  }
101  */
102 
103 } /* namespace psyllid */
node_builder(node_binding *a_binding)
Definition: node_builder.cc:32
scarab::param_node f_config
node_binding * f_binding
Holds node configuration and can be used to create node classes and node binding classes.
node_builder & operator=(const node_builder &)
Definition: node_builder.cc:45
virtual node_binding * clone() const =0
Allows access to midge nodes.
Definition: node_builder.hh:38
node_binding & operator=(const node_binding &a_rhs)
Definition: node_builder.cc:22