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