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