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/node/file.cpp

    r352 r369  
    216216      nbDomain=setDomain.size() ; 
    217217 
    218       if (!AllDomainEmpty ||  type.getValue()=="one_file") 
     218      if (!AllDomainEmpty ||  type == type_attr::one_file) 
    219219      { 
    220220         StdString filename = (!name.isEmpty()) ?   name.getValue() : getId(); 
     
    228228         if (!type.isEmpty()) 
    229229         { 
    230            if (type.getValue()=="one_file") multifile=false ; 
    231            else if (type.getValue()=="multi_file") multifile=true ; 
     230           if (type==type_attr::one_file) multifile=false ; 
     231           else if (type==type_attr::multiple_file) multifile=true ; 
    232232           else ERROR("void Context::createDataOutput(void)", 
    233233                      "incorrect file <type> attribut : must be <multi_file> or <one_file>, " 
     
    280280     delete lastSync ; 
    281281     delete lastSplit ; 
    282      if (!AllDomainEmpty ||  type.getValue()=="one_file") 
     282     if (!AllDomainEmpty ||  type==type_attr::one_file) 
    283283       if (isOpen)  
    284284       { 
     
    349349    
    350350   //--------------------------------------------------------------- 
    351     
     351/* 
    352352   void CFile::toBinary  (StdOStream & os) const 
    353353   { 
     
    382382       
    383383   } 
    384     
     384*/ 
     385 
    385386   CField* CFile::addField(const string& id) 
    386387   { 
Note: See TracChangeset for help on using the changeset viewer.