Changeset 346 for XIOS/trunk/src/node/grid.cpp
- Timestamp:
- 04/12/12 17:02:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/grid.cpp
r345 r346 158 158 { 159 159 if (this->isChecked) return; 160 shared_ptr<CContext> context =CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;160 shared_ptr<CContext> context = CContext::getCurrent() ; 161 161 CContextClient* client=context->client ; 162 162 … … 187 187 if (!domain_ref.isEmpty()) 188 188 { 189 if (C ObjectFactory::HasObject<CDomain>(domain_ref.getValue()))190 { 191 this->domain = C ObjectFactory::GetObject<CDomain>(domain_ref.getValue()) ;189 if (CDomain::has(domain_ref.getValue())) 190 { 191 this->domain = CDomain::get(domain_ref.getValue()) ; 192 192 domain->checkAttributes() ; 193 193 } … … 206 206 { 207 207 this->withAxis = true ; 208 if (C ObjectFactory::GetObject<CAxis>(axis_ref.getValue()))209 { 210 this->axis = C ObjectFactory::GetObject<CAxis>(axis_ref.getValue()) ;208 if (CAxis::get(axis_ref.getValue())) 209 { 210 this->axis = CAxis::get(axis_ref.getValue()) ; 211 211 axis->checkAttributes() ; 212 212 } … … 310 310 { 311 311 StdString new_id = StdString("__") + domain->getId() + StdString("__") ; 312 boost::shared_ptr<CGrid> grid = 313 CGroupFactory::CreateChild(CObjectFactory::GetObject<CGridGroup> ("grid_definition"), new_id); 312 boost::shared_ptr<CGrid> grid = CGridGroup::get("grid_definition")->createChild(new_id) ; 314 313 grid->domain_ref.setValue(domain->getId()); 315 314 return (grid); … … 321 320 StdString new_id = StdString("__") + domain->getId() + 322 321 StdString("_") + axis->getId() + StdString("__") ; 323 boost::shared_ptr<CGrid> grid = 324 CGroupFactory::CreateChild(CObjectFactory::GetObject<CGridGroup> ("grid_definition"), new_id); 322 boost::shared_ptr<CGrid> grid = CGridGroup::get("grid_definition")->createChild(new_id) ; 325 323 grid->domain_ref.setValue(domain->getId()); 326 324 grid->axis_ref.setValue(axis->getId()); … … 418 416 void CGrid::sendIndex(void) 419 417 { 420 shared_ptr<CContext> context =CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;418 shared_ptr<CContext> context = CContext::getCurrent() ; 421 419 CContextClient* client=context->client ; 422 420
Note: See TracChangeset
for help on using the changeset viewer.