Changeset 680 for XIOS/trunk/src/type/enum_ref_impl.hpp
- Timestamp:
- 09/01/15 17:15:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/type/enum_ref_impl.hpp
r591 r680 160 160 161 161 ERROR("template <typename T> void CEnum_ref<T>::_fromString(const string& str)", 162 << tmpStr << " cannot be converted in a valid enumeration, possibilities are : "<<strList.str() );162 << tmpStr << " cannot be converted in a valid enumeration, possibilities are: " << strList.str()); 163 163 } 164 164 … … 178 178 else if (sizeof(*ptrValue)==sizeof(int)) return buffer.put((int) *ptrValue) ; 179 179 else if (sizeof(*ptrValue)==sizeof(long int)) return buffer.put((long int) *ptrValue) ; 180 else ERROR("template <typename T> 181 << "incompatibility between enumeration and standard integer type");180 else ERROR("template <typename T> bool CEnum_ref<T>::_toBuffer(CBufferOut& buffer) const", 181 << "incompatibility between enumeration and standard integer type."); 182 182 return false ; 183 183 } … … 206 206 if (ret) *ptrValue = (T_enum) val ; 207 207 } 208 else ERROR("template <typename T> 209 << "incompatibility between enumeration and standard integer type");208 else ERROR("template <typename T> bool CEnum_ref<T>::_fromBuffer(CBufferIn& buffer)", 209 << "incompatibility between enumeration and standard integer type."); 210 210 return ret ; 211 211 } … … 234 234 if (ret) *ptrValue = (T_enum) val ; 235 235 } 236 else ERROR("template <typename T> 237 << "incompatibility between enumeration and standard integer type");236 else ERROR("template <typename T> bool CEnum_ref<T>::_fromBuffer(CBufferIn& buffer)", 237 << "incompatibility between enumeration and standard integer type"); 238 238 } 239 239 … … 260 260 { 261 261 if (empty) ERROR("template <typename T> void CEnum_ref<T>::checkEmpty(void)", 262 << "Type_ref reference is not assigned") ;262 << "Enum reference is not initialized.") ; 263 263 } 264 264 … … 269 269 { 270 270 if (!type.toBuffer(buffer)) ERROR("template <typename T> CBufferOut& operator<<(CBufferOut& buffer, const CEnum_ref<T>& type)", 271 <<"Buffer remain size is to low for size type");271 << "Not enough free space in buffer to queue the enum."); 272 272 return buffer ; 273 273 } … … 277 277 { 278 278 if (!CEnum_ref<T>(type).toBuffer(buffer)) ERROR("template <typename T> CBufferOut& operator<<(CBufferOut& buffer, const typename T::t_enum& type)", 279 <<"Buffer remain size is to low for size type") ;279 << "Not enough free space in buffer to queue the enum."); 280 280 return buffer ; 281 281 } … … 284 284 CBufferIn& operator>>(CBufferIn& buffer, typename T::t_enum& type) 285 285 { 286 if (! 287 <<"Buffer remain size is to low for size type");286 if (!CEnum_ref<T>(type).fromBuffer(buffer)) ERROR("template <typename T> CBufferIn& operator>>(CBufferIn& buffer, typename T::t_enum& type)", 287 << "Not enough data in buffer to unqueue the enum."); 288 288 return buffer ; 289 289 } … … 292 292 CBufferIn& operator>>(CBufferIn& buffer, const CEnum_ref<T>& type) 293 293 { 294 if (! type.fromBuffer(buffer) ) ERROR(" template <typename T> CBufferIn& operator>>(CBufferIn& buffer, const CEnum_ref<T>& type) ", 295 <<"Buffer remain size is to low for size type") ; 294 if (!type.fromBuffer(buffer)) ERROR("template <typename T> CBufferIn& operator>>(CBufferIn& buffer, const CEnum_ref<T>& type) ", 295 << "Not enough data in buffer to unqueue the enum."); 296 return buffer ; 296 297 return buffer ; 297 298 }
Note: See TracChangeset
for help on using the changeset viewer.