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/cxios_impl.hpp

    r335 r346  
    44#include "xmlioserver_spl.hpp" 
    55#include "variable.hpp" 
     6#include "object_template_impl.hpp" 
    67 
    78namespace xios 
     
    1011  T CXios::getin(const string& id) 
    1112  { 
    12     return CObjectFactory::GetObject<CVariable>("xios",id)->getData<T>() ; 
     13    return CVariable::get("xios",id)->getData<T>() ; 
    1314  } 
    1415 
     
    1617  T CXios::getin(const string& id, const T& defaultValue) 
    1718  { 
    18     if (CObjectFactory::HasObject<CVariable>("xios",id)) 
    19       return CObjectFactory::GetObject<CVariable>("xios",id)->getData<T>() ; 
     19    if (CVariable::has("xios",id)) return CVariable::get("xios",id)->getData<T>() ; 
    2020    else return defaultValue ; 
    2121  } 
Note: See TracChangeset for help on using the changeset viewer.