Changeset 680 for XIOS/trunk/src/type/enum_impl.hpp
- Timestamp:
- 09/01/15 17:15:42 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/type/enum_impl.hpp
r591 r680 159 159 160 160 ERROR("template <typename T> void CEnum<T>::_fromString(const string& str)", 161 << tmpStr << " cannot be converted in a valid enumeration, possibilities are : "<<strList.str() );161 << tmpStr << " cannot be converted in a valid enumeration, possibilities are: " << strList.str()); 162 162 163 163 } … … 189 189 else if (sizeof(*ptrValue)==sizeof(int)) return buffer.put((int) *ptrValue) ; 190 190 else if (sizeof(*ptrValue)==sizeof(long int)) return buffer.put((long int) *ptrValue) ; 191 else ERROR("template <typename T> 192 << "incompatibility between enumeration and standard integer type");191 else ERROR("template <typename T> bool CEnum<T>::_toBuffer(CBufferOut& buffer) const", 192 << "incompatibility between enumeration and standard integer type."); 193 193 return false ; 194 194 } … … 217 217 if (ret) *ptrValue = (T_enum) val ; 218 218 } 219 else ERROR("template <typename T> 220 << "incompatibility between enumeration and standard integer type");219 else ERROR("template <typename T> bool CEnum<T>::_fromBuffer(CBufferIn& buffer)", 220 << "incompatibility between enumeration and standard integer type."); 221 221 return ret ; 222 222 } … … 246 246 void CEnum<T>::checkEmpty(void) const 247 247 { 248 if (empty) ERROR("template <typename T> void CEnum<T>::checkEmpty(void) const", <<"Type is not initialized") ; 248 if (empty) ERROR("template <typename T> void CEnum<T>::checkEmpty(void) const", 249 << "Enum is not initialized."); 249 250 } 250 251 … … 254 255 { 255 256 if (!type.toBuffer(buffer)) ERROR("template <typename T> CBufferOut& operator<<(CBufferOut& buffer, const CEnum<T>& type)", 256 <<"Buffer remain size is to low for size type");257 << "Not enough free space in buffer to queue the enum."); 257 258 return buffer ; 258 259 } … … 262 263 { 263 264 if (!CEnum<T>(type).toBuffer(buffer)) ERROR("template <typename T> CBufferOut& operator<<(CBufferOut& buffer, const typename T::t_enum & type)", 264 <<"Buffer remain size is to low for size type") ;265 << "Not enough free space in buffer to queue the enum."); 265 266 return buffer ; 266 267 } … … 269 270 CBufferIn& operator>>(CBufferIn& buffer, CEnum<T>& type) 270 271 { 271 if (! 272 <<"Buffer remain size is to low for size type");272 if (!type.fromBuffer(buffer)) ERROR("template <typename T> CBufferIn& operator>>(CBufferIn& buffer, CEnum<T>& type)", 273 << "Not enough data in buffer to unqueue the enum."); 273 274 return buffer ; 274 275 }
Note: See TracChangeset
for help on using the changeset viewer.