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/type/message.cpp

    r335 r369  
    1212   CMessage& CMessage::push(const CBaseType& type) 
    1313   { 
    14      typeList.push_back(type.duplicate()); 
     14     typeList.push_back(type.clone()); 
    1515     return *this ; 
    1616   } 
    1717    
    18     CMessage& CMessage::push(CBaseType& type) 
    19    { 
    20      typeList.push_back(&type); 
    21      return *this ; 
    22    } 
     18//    CMessage& CMessage::push(CBaseType& type) 
     19//   { 
     20//     typeList.push_back(&type); 
     21//     return *this ; 
     22//   } 
    2323    
    2424   size_t CMessage::size(void) const 
     
    6666    { 
    6767      list<CBaseType*>::iterator it;  
    68       for(it=typeList.begin();it!=typeList.end();it++) (*it)->destroy() ; 
     68      for(it=typeList.begin();it!=typeList.end();it++) delete *it ; 
    6969      typeList.clear() ; 
    7070    } 
     
    9797  } 
    9898 
    99   CMessage& operator<<(CMessage& msg, const CBaseType&  type) 
    100   { 
    101     msg.push(*type.duplicate()) ; 
    102     return msg ; 
    103   }  
     99//  CMessage& operator<<(CMessage& msg, const CBaseType&  type) 
     100//  { 
     101//    msg.push(*type.clone()) ; 
     102//    return msg ; 
     103//  }  
    104104   
    105105} 
Note: See TracChangeset for help on using the changeset viewer.