//------------------------------------------------------------------------------ Function* FactoryManager::CreateFunction(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::FUNCTION, ofType); if (f != NULL) return f->CreateFunction(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ GmatCommand* FactoryManager::CreateCommand(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::COMMAND, ofType); if (f != NULL) return f->CreateCommand(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ Burn* FactoryManager::CreateBurn(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::BURN, ofType); if (f != NULL) return f->CreateBurn(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ CelestialBody* FactoryManager::CreateCelestialBody(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::CELESTIAL_BODY, ofType); if (f != NULL) return f->CreateCelestialBody(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ Solver* FactoryManager::CreateSolver(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::SOLVER, ofType); if (f != NULL) return f->CreateSolver(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ CalculatedPoint* FactoryManager::CreateCalculatedPoint(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::CALCULATED_POINT, ofType); if (f != NULL) return f->CreateCalculatedPoint(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ StopCondition* FactoryManager::CreateStopCondition(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::STOP_CONDITION, ofType); if (f != NULL) return f->CreateStopCondition(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ PhysicalModel* FactoryManager::CreatePhysicalModel(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::PHYSICAL_MODEL, ofType); if (f != NULL) return f->CreatePhysicalModel(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ Parameter* FactoryManager::CreateParameter(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::PARAMETER, ofType); if (f != NULL) return f->CreateParameter(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ Hardware* FactoryManager::CreateHardware(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::HARDWARE, ofType); if (f != NULL) return f->CreateHardware(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ SpaceObject* FactoryManager::CreateSpacecraft(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::SPACECRAFT, ofType); if (f != NULL) return f->CreateSpacecraft(ofType,withName); return NULL; }
//------------------------------------------------------------------------------ Attitude* FactoryManager::CreateAttitude(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::ATTITUDE, ofType); if (f != NULL) return f->CreateAttitude(ofType, withName); return NULL; }
// static wxWebView* wxWebView::New(const wxString& backend) { wxStringWebViewFactoryMap::iterator iter = FindFactory(backend); if(iter == m_factoryMap.end()) return NULL; else return (*iter).second->Create(); }
//------------------------------------------------------------------------------ AxisSystem* FactoryManager::CreateAxisSystem(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::AXIS_SYSTEM, ofType); if (f != NULL) return f->CreateAxisSystem(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ MathNode* FactoryManager::CreateMathNode(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::MATH_NODE, ofType); if (f != NULL) return f->CreateMathNode(ofType, withName); return NULL; }
//------------------------------------------------------------------------------ AtmosphereModel* FactoryManager::CreateAtmosphereModel(const std::string &ofType, const std::string &withName, const std::string &forBody) { Factory* f = FindFactory(Gmat::ATMOSPHERE, ofType); if (f != NULL) return f->CreateAtmosphereModel(ofType, withName, forBody); return NULL; }
//------------------------------------------------------------------------------ GmatBase* FactoryManager::CreateObject(const Gmat::ObjectType generalType, const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(generalType, ofType); if (f != NULL) return f->CreateObject(ofType,withName); return NULL; }
// static wxWebView* wxWebView::New(wxWindow* parent, wxWindowID id, const wxString& url, const wxPoint& pos, const wxSize& size, const wxString& backend, long style, const wxString& name) { wxStringWebViewFactoryMap::iterator iter = FindFactory(backend); if(iter == m_factoryMap.end()) return NULL; else return (*iter).second->Create(parent, id, url, pos, size, style, name); }
//------------------------------------------------------------------------------ EphemerisFile* FactoryManager::CreateEphemerisFile(const std::string &ofType, const std::string &withName) { Factory* f = FindFactory(Gmat::EPHEMERIS_FILE, ofType); if (f != NULL) return f->CreateEphemerisFile(ofType, withName); #ifdef DEBUG_FACTORY_MANAGER MessageInterface::ShowMessage("Could not find Factory for %s\n", ofType.c_str()); #endif return NULL; }
//------------------------------------------------------------------------------ Subscriber* FactoryManager::CreateSubscriber(const std::string &ofType, const std::string &withName, const std::string &fileName) { Factory* f = FindFactory(Gmat::SUBSCRIBER, ofType); if (f != NULL) return f->CreateSubscriber(ofType, withName, fileName); #ifdef DEBUG_FACTORY_MANAGER MessageInterface::ShowMessage("Could not find Factory for %s\n", ofType.c_str()); #endif return NULL; }
//------------------------------------------------------------------------------ Propagator* FactoryManager::CreatePropagator(const std::string &ofType, const std::string &withName) { #ifdef DEBUG_CREATION MessageInterface::ShowMessage("Creating an integrator of type %s with " "name %s\n", ofType.c_str(), withName.c_str()); #endif Factory* f = FindFactory(Gmat::PROPAGATOR, ofType); #ifdef DEBUG_CREATION MessageInterface::ShowMessage("Factory pointer: %p\n", f); #endif if (f != NULL) return f->CreatePropagator(ofType, withName); return NULL; }