Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
source.cpp
Go to the documentation of this file.
1 
14 #include "source.h"
15 
16 #ifdef USE_FACTORY
17 
18 #ifdef USE_FACTORY_AUTOREGISTER
19 #else
20 // setup factories for all subclasses
21 
22 #include "source_Local.h"
23 #include "source_Wall.h"
24 #include "source_Exponential.h"
25 #include "source_MomentumWall.h"
26 #include "source_Random.h"
27 
28 bool Source::init_factory()
29 {
30  bool result = true;
31 
32  result &= Source_Local::register_factory();
33  result &= Source_Wall::register_factory();
34  result &= Source_Exponential::register_factory();
35  result &= Source_MomentumWall::register_factory();
36  result &= Source_Random::register_factory();
37 
38  return result;
39 }
40 
41 
42 #endif /* USE_FACTORY_AUTOREGISTER */
43 
44 #endif /* USE_FACTORY */
Momentum wall source.