Changeset 346 for XIOS/trunk/src/cxios_impl.hpp
- Timestamp:
- 04/12/12 17:02:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/cxios_impl.hpp
r335 r346 4 4 #include "xmlioserver_spl.hpp" 5 5 #include "variable.hpp" 6 #include "object_template_impl.hpp" 6 7 7 8 namespace xios … … 10 11 T CXios::getin(const string& id) 11 12 { 12 return C ObjectFactory::GetObject<CVariable>("xios",id)->getData<T>() ;13 return CVariable::get("xios",id)->getData<T>() ; 13 14 } 14 15 … … 16 17 T CXios::getin(const string& id, const T& defaultValue) 17 18 { 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>() ; 20 20 else return defaultValue ; 21 21 }
Note: See TracChangeset
for help on using the changeset viewer.