Changeset 133 for XMLIO_V2/dev/dev_rv/src/XMLIO/c_interface.cpp
- Timestamp:
- 10/14/10 15:40:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/c_interface.cpp
r132 r133 18 18 } 19 19 20 static inline XString stringXtoStd(const std::string& _str) 20 static inline XString stringXtoStd(const std::string& _str) // Non testée 21 21 { 22 22 XString _retstr = {new char[_str.size()](), _str.size()}; … … 79 79 XMLParser::Parse(node); 80 80 } 81 81 82 /* ********************************************************** */ 82 83 /* DATA TREATMENT INTERFACE */ … … 90 91 for (it = AllDataTreatment.begin(); 91 92 it != AllDataTreatment.end(); it++) 92 delete (*it);93 if (*it != NULL) delete (*it); 93 94 } 94 95 … … 113 114 void xios_dtreatment_create_files_and_headers_(const XHandle * const _hd, const XFileType * const _ft) 114 115 { 115 // Si le handle de traitement n'est pas initialisé à 0, on ne fait aucun traitement.116 116 if (isNullHandle(*_hd) || (_hd->data_type != DTREATMENT)) return; 117 117 DataTreatment * const __dt = (DataTreatment*)_hd->data_ptr; … … 128 128 } 129 129 130 /* ********************************************************** */ 131 /* CONTEXT INTERFACE */ 132 /* ********************************************************** */ 133 134 void 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.