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/data_output.cpp

    r345 r346  
    2323         if (grid->axis_ref.isEmpty()) 
    2424         { 
    25             this->writeGrid 
    26             (CObjectFactory::GetObject<CDomain>(grid->domain_ref.getValue())); 
     25            this->writeGrid(CDomain::get(grid->domain_ref.getValue())); 
    2726         } 
    2827         else 
    2928         { 
    30             this->writeGrid 
    31             (CObjectFactory::GetObject<CDomain>(grid->domain_ref.getValue()), 
    32              CObjectFactory::GetObject<CAxis>(grid->axis_ref.getValue())); 
     29            this->writeGrid(CDomain::get(grid->domain_ref.getValue()), 
     30                            CAxis::get(grid->axis_ref.getValue())); 
    3331         } 
    3432      } 
     
    7573         (const boost::shared_ptr<CField> field) 
    7674      { 
    77          boost::shared_ptr<CContext> context = 
    78          CObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()); 
     75         boost::shared_ptr<CContext> context = CContext::getCurrent() ; 
    7976         boost::shared_ptr<CCalendar> calendar = context->getCalendar(); 
    8077          
     
    9592      void CDataOutput::writeFieldData(const boost::shared_ptr<CField> field) 
    9693      { 
    97          boost::shared_ptr<CGrid> grid = 
    98             CObjectFactory::GetObject<CGrid>(field->grid_ref.getValue()); 
    99          boost::shared_ptr<CDomain> domain = 
    100             CObjectFactory::GetObject<CDomain>(grid->domain_ref.getValue()); 
     94         boost::shared_ptr<CGrid> grid = CGrid::get(field->grid_ref.getValue()); 
     95         boost::shared_ptr<CDomain> domain = CDomain::get(grid->domain_ref.getValue()); 
    10196             
    10297//         if (domain->isEmpty()) return; 
Note: See TracChangeset for help on using the changeset viewer.