Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
force_G.cpp
Go to the documentation of this file.
1 
14 #include "force_G.h"
15 
16 #ifdef USE_FACTORY
17 
18 #ifdef USE_FACTORY_AUTOREGISTER
19 #else
20 // setup factories for all subclasses
21 
22 #include "force_G_Plaq.h"
23 #include "force_G_Rectangle.h"
24 #include "force_G_Plaq_SF.h"
25 #include "force_G_Rectangle_SF.h"
26 
27 bool Force_G::init_factory()
28 {
29  bool result = true;
30 
31  result &= Force_G_Plaq::register_factory();
32  result &= Force_G_Rectangle::register_factory();
33  result &= Force_G_Plaq_SF::register_factory();
34  result &= Force_G_Rectangle_SF::register_factory();
35 
36  return result;
37 }
38 
39 
40 #endif /* USE_FACTORY_AUTOREGISTER */
41 
42 #endif /* USE_FACTORY */