Ignore:
Timestamp:
08/25/21 19:31:05 (3 years ago)
Author:
ymipsl
Message:

Revisiting registry management and make it working.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/registry.hpp

    r1639 r2209  
    3838 
    3939/** retrieve a value from a key */ 
    40       void getKey(const std::string& key, CBaseType& value) { this->getKey_(key,value); } 
     40      void getKey(const std::string& key, CBaseType& value) const { this->getKey_(key,value); } 
    4141 
    4242/** retrieve a value from a key */ 
    4343      template<typename T> typename boost::enable_if_c<!boost::is_convertible<T&, CBaseType&>::value>::type 
    44       getKey(const std::string& key, T& value) { CType_ref<T> valRef(value); this->getKey_(key,valRef); } 
     44      getKey(const std::string& key, T& value) const { CType_ref<T> valRef(value); this->getKey_(key,valRef); } 
    4545 
    4646 
     
    103103 
    104104/** retrieve a value from a key (internal use)*/ 
    105       void getKey_(const std::string& key, CBaseType& value) ; 
     105      void getKey_(const std::string& key, CBaseType& value) const ; 
    106106 
    107107/** use internally for recursivity */ 
Note: See TracChangeset for help on using the changeset viewer.