870 B
870 B
Value Container
nt typedef
The pvxs::Value container class provides the means to interact with PVA data values.
#include <pvxs/data.h>
namespace pvxs { ... }A pvxs::Value may be obtained via the remote peer (client or server), or created locally. See ntapi or typedefapi.
pvxs::Value
pvxs::NoField
pvxs::NoConvert
Array fields
Array fields are represented using the pvxs::shared_array container. An example using pvxs::nt::NTScalar.
shared_array<double> arr({1.0, 2.0});
auto top = nt::NTScalar{TypeCode::Float64A}.create();
top["value"] = arr.freeze().castTo<void void>();pvxs::shared_array