ConverterGSIErrorCollectionField.h

Go to the documentation of this file.
00001 //Copyright GSI 2012
00002 #ifndef CONVERTER_GSI_ERROR_COLLECTION_FIELD_H_
00003 #define CONVERTER_GSI_ERROR_COLLECTION_FIELD_H_
00004 
00005 #include <fesa-core-gsi/DataStore/TypeDefinition.h>
00006 
00007 namespace fesa
00008 {
00009 
00016 template<>
00017 class Converter<fesaGSI::GSI_ERROR >
00018 {
00019     public:
00025         static void valueToString(fesaGSI::GSI_ERROR& value,std::string& str);
00026 
00032         static void stringToValue(const std::string& value, fesaGSI::GSI_ERROR* pVal);
00033 
00034 };
00035 
00036 inline void Converter<fesaGSI::GSI_ERROR>::valueToString(
00037                 fesaGSI::GSI_ERROR& value,std::string& str)
00038 {
00039     throw FesaException(__FILE__, __LINE__, FesaErrorSpecializedConverterNotProvided.c_str());
00040     str = "dummy";
00041 
00042 }
00043 
00044 inline void Converter<fesaGSI::GSI_ERROR >::stringToValue(const std::string& value,
00045                 fesaGSI::GSI_ERROR* pVal)
00046 {
00047     throw FesaException(__FILE__, __LINE__,FesaErrorSpecializedConverterNotProvided.c_str());
00048 }
00049 
00050 }
00051 
00052 #endif /* CONVERTER_GSI_ERROR_COLLECTION_FIELD_H_ */

Generated on 25 Jan 2013 for fesa-core-gsi by  doxygen 1.6.1