1 #ifndef __STDAIR_FAC_FACBOM_HPP 2 #define __STDAIR_FAC_FACBOM_HPP 21 template <
typename BOM>
25 typedef std::list<BOM*> BomPool_T;
26 typedef typename BOM::Key_T Key_T;
43 BOM&
create (
const Key_T&);
85 if (_instance == NULL) {
87 assert (_instance != NULL);
97 for (
typename BomPool_T::iterator itBom = _pool.begin();
98 itBom != _pool.end(); ++itBom) {
99 BOM* currentBom_ptr = *itBom;
100 assert (currentBom_ptr != NULL);
101 delete currentBom_ptr; currentBom_ptr = NULL;
119 BOM* oBom_ptr =
new BOM (iKey);
120 assert (oBom_ptr != NULL);
121 _pool.push_back (oBom_ptr);
127 BOM* oBom_ptr =
new BOM (iBom);
128 assert (oBom_ptr != NULL);
129 _pool.push_back (oBom_ptr);
134 #endif // __STDAIR_FAC_FACBOM_HPP
static FacBom & instance()
static FacSupervisor & instance()
void registerPersistentBomFactory(FacAbstract *)
Handle on the StdAir library context.
Base class for Factory layer.