more doc
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user