String -> std::string, toString methods removed
This commit is contained in:
@@ -17,12 +17,14 @@
|
||||
#include <pv/pvData.h>
|
||||
#include <pv/alarm.h>
|
||||
|
||||
using std::string;
|
||||
|
||||
namespace epics { namespace pvData {
|
||||
|
||||
AlarmSeverity AlarmSeverityFunc::getSeverity(int value)
|
||||
{
|
||||
if(value<0 || value>4) {
|
||||
throw std::logic_error(String("getSeverity value is illegal"));
|
||||
throw std::logic_error(string("getSeverity value is illegal"));
|
||||
}
|
||||
switch (value) {
|
||||
case 0: return noAlarm;
|
||||
@@ -31,7 +33,7 @@ AlarmSeverity AlarmSeverityFunc::getSeverity(int value)
|
||||
case 3: return invalidAlarm;
|
||||
case 4: return undefinedAlarm;
|
||||
}
|
||||
throw std::logic_error(String("should never get here"));
|
||||
throw std::logic_error(string("should never get here"));
|
||||
}
|
||||
|
||||
StringArrayPtr AlarmSeverityFunc::getSeverityNames()
|
||||
@@ -61,13 +63,13 @@ AlarmSeverity Alarm::getSeverity() const
|
||||
case 3: return invalidAlarm;
|
||||
case 4: return undefinedAlarm;
|
||||
}
|
||||
throw std::logic_error(String("should never get here"));
|
||||
throw std::logic_error(string("should never get here"));
|
||||
}
|
||||
|
||||
AlarmStatus AlarmStatusFunc::getStatus(int value)
|
||||
{
|
||||
if(value<0 || value>7) {
|
||||
throw std::logic_error(String("getStatus value is illegal"));
|
||||
throw std::logic_error(string("getStatus value is illegal"));
|
||||
}
|
||||
switch (value) {
|
||||
case 0: return noStatus;
|
||||
@@ -79,7 +81,7 @@ AlarmStatus AlarmStatusFunc::getStatus(int value)
|
||||
case 6: return undefinedStatus;
|
||||
case 7: return clientStatus;
|
||||
}
|
||||
throw std::logic_error(String("should never get here"));
|
||||
throw std::logic_error(string("should never get here"));
|
||||
}
|
||||
|
||||
StringArrayPtr AlarmStatusFunc::getStatusNames()
|
||||
@@ -115,7 +117,7 @@ AlarmStatus Alarm::getStatus() const
|
||||
case 6: return undefinedStatus;
|
||||
case 7: return clientStatus;
|
||||
}
|
||||
throw std::logic_error(String("should never get here"));
|
||||
throw std::logic_error(string("should never get here"));
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user