Ignore:
Timestamp:
04/12/12 17:02:23 (12 years ago)
Author:
ymipsl
Message:

Suppress access to CObjectFactory class and CTreeManager.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/grid.cpp

    r345 r346  
    158158   { 
    159159      if (this->isChecked) return; 
    160       shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ; 
     160      shared_ptr<CContext> context = CContext::getCurrent() ; 
    161161      CContextClient* client=context->client ; 
    162162       
     
    187187      if (!domain_ref.isEmpty()) 
    188188      { 
    189          if (CObjectFactory::HasObject<CDomain>(domain_ref.getValue())) 
    190          { 
    191             this->domain = CObjectFactory::GetObject<CDomain>(domain_ref.getValue()) ; 
     189         if (CDomain::has(domain_ref.getValue())) 
     190         { 
     191            this->domain = CDomain::get(domain_ref.getValue()) ; 
    192192            domain->checkAttributes() ; 
    193193         } 
     
    206206      { 
    207207         this->withAxis = true ; 
    208          if (CObjectFactory::GetObject<CAxis>(axis_ref.getValue())) 
    209          { 
    210             this->axis = CObjectFactory::GetObject<CAxis>(axis_ref.getValue()) ; 
     208         if (CAxis::get(axis_ref.getValue())) 
     209         { 
     210            this->axis = CAxis::get(axis_ref.getValue()) ; 
    211211            axis->checkAttributes() ; 
    212212         } 
     
    310310   { 
    311311      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) ; 
    314313      grid->domain_ref.setValue(domain->getId()); 
    315314      return (grid); 
     
    321320      StdString new_id = StdString("__") + domain->getId() + 
    322321                         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) ; 
    325323      grid->domain_ref.setValue(domain->getId()); 
    326324      grid->axis_ref.setValue(axis->getId()); 
     
    418416  void CGrid::sendIndex(void) 
    419417  { 
    420     shared_ptr<CContext> context=CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ; 
     418    shared_ptr<CContext> context = CContext::getCurrent() ; 
    421419    CContextClient* client=context->client ; 
    422420     
Note: See TracChangeset for help on using the changeset viewer.