Definition at line 23 of file valueBuilder.cpp.
virtual epics::pvData::ValueBuilder::child_struct::~child_struct |
( |
| ) |
|
|
inlinevirtual |
epics::pvData::ValueBuilder::child_struct::child_struct |
( |
ValueBuilder * |
par, |
|
|
const std::string & |
id |
|
) |
| |
|
inline |
virtual void epics::pvData::ValueBuilder::child_struct::build |
( |
const std::string & |
name, |
|
|
FieldBuilderPtr & |
builder |
|
) |
| |
|
inlinevirtual |
Implements epics::pvData::ValueBuilder::child.
Definition at line 32 of file valueBuilder.cpp.
ValueBuilder & endNested()
End a sub-structure.
std::tr1::shared_ptr< FieldBuilder > FieldBuilderPtr
static void buildStruct(const ValueBuilder &self, FieldBuilderPtr &builder)
Definition at line 255 of file valueBuilder.cpp.
260 for(children_t::const_iterator it=
self.children.begin(), end=
self.children.end(); it!=end; ++it)
262 it->second->build(it->first,
builder);
epics::pvData::BitSetPtr empty
Definition at line 106 of file valueBuilder.cpp.
110 for(StringArray::const_iterator it=field.begin(), end=field.end(); it!=end; ++it)
112 PVField::const_shared_pointer sub(val.getSubField(*it));
115 switch(subtype->getType()) {
118 const PVScalar* subs(static_cast<const PVScalar*>(sub.get()));
119 ScalarType stype = subs->getScalar()->getScalarType();
121 #define STYPE(stype) case pv##stype: { const PV ##stype* ptr(static_cast<const PV##stype*>(subs)); PV##stype::value_type temp(ptr->get()); self._add(*it, pv##stype, &temp); } break 139 self._add(*it, *static_cast<const PVStructure*>(sub.get()));
142 THROW_EXCEPTION2(std::runtime_error,
"ValueBuilder can only clone scalar and structure");
#define assert(exp)
Declare that a condition should be true.
#define THROW_EXCEPTION2(TYPE, MSG)
std::tr1::shared_ptr< const Structure > StructureConstPtr
std::tr1::shared_ptr< const Field > FieldConstPtr
std::vector< std::string > StringArray
virtual void epics::pvData::ValueBuilder::child_struct::store |
( |
const PVFieldPtr & |
val | ) |
|
|
inlinevirtual |
Definition at line 266 of file valueBuilder.cpp.
268 for(children_t::const_iterator it=
self.children.begin(), end=
self.children.end(); it!=end; ++it)
270 it->second->store(val->getSubFieldT(it->first));
ValueBuilder epics::pvData::ValueBuilder::child_struct::builder |
The documentation for this struct was generated from the following file: