Esempio n. 1
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 2
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 3
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 4
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 5
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 6
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 7
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 8
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 9
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 10
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 11
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 12
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 13
0
// static
wxWebView* wxWebView::New(const wxString& backend)
{
    wxStringWebViewFactoryMap::iterator iter = FindFactory(backend);

    if(iter == m_factoryMap.end())
        return NULL;
    else
        return (*iter).second->Create();
}
Esempio n. 14
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 15
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 16
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 17
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 18
0
// 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);

}
Esempio n. 19
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 20
0
//------------------------------------------------------------------------------
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;
}
Esempio n. 21
0
//------------------------------------------------------------------------------
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;
}