My Project
OSDecompFactoryInitializer.h
Go to the documentation of this file.
1/* $Id: OSDecompFactoryInitializer.cpp 3038 2009-11-07 11:43:44Z kmartin $ */
14#include <map>
16//#include "OSDecompSlpSolver.h"
17#include "OSBearcatSolverXij.h"
18//#include "MySolver.h"
19
20
21#include <string>
22
23
25
26public:
27 //the constructor
29 // user edit this, e.g
30 //OSDecompSolverFactory::factories["MySolver"] = new MySolver::Factory;
31 //OSDecompSolverFactory::factories["OSDecompCoinSolver"] = new OSDecompCoinSolver::Factory;
32 //OSDecompSolverFactory::factories["OSDecompSlpSolver"] = new OSDecompSlpSolver::Factory;
34 }
35
36
37 //the destructor
39
40 std::map<std::string, OSDecompSolverFactory*>::iterator mit ;
41 for(mit = OSDecompSolverFactory::factories.begin();
42 mit != OSDecompSolverFactory::factories.end(); mit++){
43 delete mit->second;
44 std::cout << "DELETED A FACTORY " << std::endl;
45 }
46 }//end destructor
47};
48
static std::map< std::string, OSDecompSolverFactory * > factories