Ignore:
Timestamp:
10/16/12 13:04:44 (12 years ago)
Author:
ymipsl
Message:

Major Update

  • redesign Type and attribute manipulation
  • add enumerate type and attribute
  • use blitz class array instead of boost class array

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/attribute_map.cpp

    r345 r369  
    2323         { 
    2424            const StdStrAttPair & att = *it; 
    25             if (!att.second->isEmpty()) 
    26                att.second->clear(); 
     25            att.second->reset(); 
    2726         } 
    2827      } 
     
    4544            ERROR("CAttributeMap::setAttribute(key, attr)", 
    4645                   << "[ key = " << key << "] attr is null !"); 
    47          this->find(key)->second->setAnyValue(attr->getAnyValue()); 
     46         this->find(key)->second->set(*attr) ; 
     47//         this->find(key)->second->setAnyValue(attr->getAnyValue()); 
    4848      } 
    4949       
     
    127127       
    128128      //--------------------------------------------------------------- 
    129        
     129/*       
    130130      void CAttributeMap::toBinary(StdOStream & os) const 
    131131      { 
     
    184184         } 
    185185      } 
    186        
     186 */      
    187187      void CAttributeMap::generateCInterface(ostream& oss, const string& className) 
    188188      { 
     
    204204         } 
    205205      }       
    206        
     206  
    207207      ///-------------------------------------------------------------- 
    208208 
Note: See TracChangeset for help on using the changeset viewer.