Ignore:
Timestamp:
10/14/10 15:40:26 (14 years ago)
Author:
hozdoba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/XMLIO/c_interface.cpp

    r132 r133  
    1818} 
    1919 
    20 static inline XString stringXtoStd(const std::string& _str) 
     20static inline XString stringXtoStd(const std::string& _str) // Non testée 
    2121{ 
    2222   XString _retstr = {new char[_str.size()](), _str.size()}; 
     
    7979   XMLParser::Parse(node); 
    8080} 
     81 
    8182/* ********************************************************** */ 
    8283/*                      DATA TREATMENT INTERFACE              */ 
     
    9091   for (it  = AllDataTreatment.begin(); 
    9192        it != AllDataTreatment.end(); it++) 
    92       delete (*it); 
     93      if (*it != NULL) delete (*it); 
    9394} 
    9495 
     
    113114void xios_dtreatment_create_files_and_headers_(const XHandle * const _hd, const XFileType * const _ft) 
    114115{ 
    115    // Si le handle de traitement n'est pas initialisé à 0, on ne fait aucun traitement. 
    116116   if (isNullHandle(*_hd) || (_hd->data_type != DTREATMENT)) return; 
    117117   DataTreatment * const __dt = (DataTreatment*)_hd->data_ptr; 
     
    128128} 
    129129 
     130/* ********************************************************** */ 
     131/*                      CONTEXT INTERFACE                     */ 
     132/* ********************************************************** */ 
     133 
     134void xios_context_set_current_(const XHandle * const _ctxt, const bool * const _wswap) 
     135{ 
     136   bool __wswap = (_wswap == NULL) ? false : *_wswap; 
     137   if (isNullHandle(*_ctxt) || (_ctxt->data_type != ECONTEXT)) return; 
     138 
     139   Context* const __ctxt = (Context*) _ctxt->data_ptr; 
     140   Context::SetCurrentContext(__ctxt->getId(), __wswap) ; 
     141} 
     142 
Note: See TracChangeset for help on using the changeset viewer.