Closed mrkraimer closed 4 years ago
Issue 63 was caused by a single line of code in putDoubleArray. But while reviewing the code and what caused the error I realized that by just adding a private method
PvaClientData::getSinglePVField
A lot of code duplicated in getDouble, getDoubleArray, getString, getStringArray, putDouble,etc. could be replaced by a call to getSinglePVField. In addition to removing many lines of code it prevents the error the caused issue 63.
A also added more tests to exampleCPP/testClient. The new tests did show the bug that caused issue 63 and show the the new code works.
…, putDouble, etc