StandardField IDs, dumpValue fix for (u)int8

This commit is contained in:
Matej Sekoranja
2012-10-10 17:59:12 +02:00
parent 04db13d00e
commit bd9f1d1949
4 changed files with 41 additions and 20 deletions

View File

@@ -28,4 +28,16 @@ namespace epics { namespace pvData {
return static_pointer_cast<const ScalarArray>(PVField::getField());
}
template<>
std::ostream& PVValueArray<int8>::dumpValue(std::ostream& o, size_t index) const
{
return o << static_cast<int>(*(get() + index));
}
template<>
std::ostream& PVValueArray<uint8>::dumpValue(std::ostream& o, size_t index) const
{
return o << static_cast<unsigned int>(*(get() + index));
}
}}