Bridge++  Ver. 2.0.2
fopr_WilsonGeneral.cpp
Go to the documentation of this file.
1 
14 #include "fopr_WilsonGeneral.h"
15 
16 #ifdef USE_FACTORY
17 
18 namespace Selector_Fopr_WilsonGeneral
19 {
20  namespace {
21  Fopr *create_object()
22  {
23  return new Fopr_WilsonGeneral();
24  }
25 
26 
27  Fopr *create_object_with_repr(const std::string& repr)
28  {
29  return new Fopr_WilsonGeneral(repr);
30  }
31 
32 
33  Fopr *create_object_with_params(const Parameters& params)
34  {
35  return new Fopr_WilsonGeneral(params);
36  }
37  }
38 
39  bool register_factory()
40  {
41  bool init = true;
42  init &= Fopr::Factory_noarg::Register("WilsonGeneral", create_object);
43  init &= Fopr::Factory_string::Register("WilsonGeneral", create_object_with_repr);
44  init &= Fopr::Factory_params::Register("WilsonGeneral", create_object_with_params);
45  return init;
46  }
47 
48 
49 #ifdef USE_FACTORY_AUTOREGISTER
50  namespace {
51  bool init = register_factory();
52  }
53 #endif
54 }
55 #endif
Fopr_WilsonGeneral
Org::Fopr_WilsonGeneral Fopr_WilsonGeneral
Definition: fopr_WilsonGeneral.h:32
AFopr< Field >
Parameters
Class for parameters.
Definition: parameters.h:46
fopr_WilsonGeneral.h