more testing

This commit is contained in:
Michael Davidsaver
2016-01-29 14:04:26 -05:00
parent d54cc78ce8
commit 4f5dd551d9
5 changed files with 226 additions and 56 deletions

View File

@@ -16,21 +16,6 @@ namespace pvd = epics::pvData;
namespace pva = epics::pvAccess;
namespace {
template<typename T>
struct ScalarAccessor {
pvd::PVScalar::shared_pointer field;
typedef T value_type;
ScalarAccessor(const pvd::PVStructurePtr& s, const char *name)
:field(s->getSubFieldT<pvd::PVScalar>(name))
{}
operator value_type() {
return field->getAs<T>();
}
ScalarAccessor& operator=(T v) {
field->putFrom<T>(v);
return *this;
}
};
void testmonitor()
{