PVData C++
8.0.6
|
#include <pv/valueBuilder.h>
Public Member Functions | |
ValueBuilder (const std::string &id=std::string()) | |
empty structure | |
ValueBuilder (const PVStructure &) | |
Clone existing definition and value. | |
template<ScalarType ENUM> | |
ValueBuilder & | add (const std::string &name, typename meta::arg_type< typename ScalarTypeTraits< ENUM >::type >::type V) |
Add a scalar field with a given name and initial value. | |
template<class T > | |
ValueBuilder & | add (const std::string &name, const shared_vector< const T > &V) |
Add a scalar array field. | |
ValueBuilder & | add (const std::string &name, const PVStructure &V) |
ValueBuilder & | addNested (const std::string &name, Type type=structure, const std::string &id=std::string()) |
Start a sub-structure. | |
ValueBuilder & | endNested () |
End a sub-structure. | |
std::tr1::shared_ptr< PVStructure > | buildPVStructure () const |
Friends | |
struct | child |
struct | child_struct |
struct | child_scalar_base |
template<typename T > | |
struct | child_scalar |
struct | child_scalar_array |
Incrementally define and initialize a PVStructure
Equivalent to FieldBuilder with the added ability to assign initial values.
Definition at line 31 of file valueBuilder.h.
PVStructure::shared_pointer epics::pvData::ValueBuilder::buildPVStructure | ( | ) | const |
Complete building structure
Definition at line 274 of file valueBuilder.cpp.