This commit is contained in:
Michael Davidsaver
2020-02-06 09:57:26 -08:00
parent 5815d595c4
commit b81ec52577
3 changed files with 56 additions and 6 deletions
+3
View File
@@ -13,6 +13,9 @@ TypeDef NTScalar::build() const
{
using namespace pvxs::members;
if(!value.valid() || value.kind()==Kind::Compound)
throw std::logic_error("NTScalar only permits (array of) primative");
TypeDef def(TypeCode::Struct,
value.isarray() ? "epics:nt/NTScalarArray:1.0" : "epics:nt/NTScalar:1.0", {
Member(value, "value"),