Files
pvxs/documentation/value.rst
T
Michael Davidsaver b81ec52577 more doc
2020-02-06 09:57:26 -08:00

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