Data interface for a structure,.
More...
#include <pv/pvData.h>
|
typedef std::tr1::shared_ptr
< PVStructure > | shared_pointer |
|
typedef std::tr1::shared_ptr
< const PVStructure > | const_shared_pointer |
|
typedef std::tr1::weak_ptr
< PVStructure > | weak_pointer |
|
typedef std::tr1::weak_ptr
< const PVStructure > | const_weak_pointer |
|
typedef PVStructure & | reference |
|
typedef const PVStructure & | const_reference |
|
enum | { isPVField =1
} |
|
typedef std::tr1::shared_ptr
< PVField > | shared_pointer |
|
typedef std::tr1::shared_ptr
< const PVField > | const_shared_pointer |
|
typedef std::tr1::weak_ptr
< PVField > | weak_pointer |
|
typedef std::tr1::weak_ptr
< const PVField > | const_weak_pointer |
|
|
virtual | ~PVStructure () |
|
virtual void | setImmutable () |
|
const StructureConstPtr & | getStructure () const |
|
const PVFieldPtrArray & | getPVFields () const |
|
template<typename A > |
std::tr1::shared_ptr< PVField > | getSubField (A a) |
|
template<typename A > |
std::tr1::shared_ptr< const
PVField > | getSubField (A a) const |
|
template<typename PVD , typename A > |
std::tr1::shared_ptr< PVD > | getSubField (A a) |
|
template<typename PVD , typename A > |
std::tr1::shared_ptr< const PVD > | getSubField (A a) const |
|
template<typename A > |
std::tr1::shared_ptr< PVField > | getSubFieldT (A a) |
|
template<typename A > |
std::tr1::shared_ptr< const
PVField > | getSubFieldT (A a) const |
|
template<typename PVD , typename A > |
std::tr1::shared_ptr< PVD > | getSubFieldT (A a) |
|
template<typename PVD , typename A > |
std::tr1::shared_ptr< const PVD > | getSubFieldT (A a) const |
|
virtual void | serialize (ByteBuffer *pbuffer, SerializableControl *pflusher) const |
|
virtual void | deserialize (ByteBuffer *pbuffer, DeserializableControl *pflusher) |
|
virtual void | serialize (ByteBuffer *pbuffer, SerializableControl *pflusher, BitSet *pbitSet) const |
|
virtual void | deserialize (ByteBuffer *pbuffer, DeserializableControl *pflusher, BitSet *pbitSet) |
|
| PVStructure (StructureConstPtr const &structure) |
|
| PVStructure (StructureConstPtr const &structure, PVFieldPtrArray const &pvFields) |
|
virtual std::ostream & | dumpValue (std::ostream &o) const |
|
void | copy (const PVStructure &from) |
|
void | copyUnchecked (const PVStructure &from) |
|
void | copyUnchecked (const PVStructure &from, const BitSet &maskBitSet, bool inverse=false) |
|
Formatter | stream () const |
|
virtual | ~PVField () |
|
const std::string & | getFieldName () const |
|
std::string | getFullName () const |
|
std::size_t | getFieldOffset () const |
|
std::size_t | getNextFieldOffset () const |
|
std::size_t | getNumberFields () const |
|
bool | isImmutable () const |
|
const FieldConstPtr & | getField () const |
|
PVStructure * | getParent () |
|
const PVStructure * | getParent () const |
|
void | postPut () |
|
void | setPostHandler (PostHandlerPtr const &postHandler) |
|
virtual bool | equals (PVField &pv) |
|
void | copy (const PVField &from) |
|
void | copyUnchecked (const PVField &from) |
|
virtual | ~Serializable () |
|
virtual | ~BitSetSerializable () |
|
Data interface for a structure,.
Definition at line 712 of file pvData.h.
virtual epics::pvData::PVStructure::~PVStructure |
( |
| ) |
|
|
virtual |
Constructor
- Parameters
-
structure | The introspection interface. |
Constructor
- Parameters
-
structure | The introspection interface. |
pvFields | The array of fields for the structure. |
Deserialize
- Parameters
-
pbuffer | The byte buffer. |
pflusher | Interface to call when buffer is empty. |
pbitSet | A bitset the specifies which fields to deserialize. |
Implements epics::pvData::BitSetSerializable.
Get the array of pointers to the subfields in the structure.
- Returns
- The array.
Definition at line 736 of file pvData.h.
Get the introspection interface
- Returns
- The interface.
Definition at line 731 of file pvData.h.
template<typename A >
std::tr1::shared_ptr<PVField> epics::pvData::PVStructure::getSubField |
( |
A |
a | ) |
|
|
inline |
Get the subfield with the specified offset.
- Parameters
-
a | A sub-field name or index |
- Returns
- Pointer to the field or NULL if field does not exist.
Definition at line 744 of file pvData.h.
template<typename PVD , typename A >
std::tr1::shared_ptr<PVD> epics::pvData::PVStructure::getSubField |
( |
A |
a | ) |
|
|
inline |
Get a subfield with the specified name.
- Parameters
-
a | A sub-field name or index |
- Returns
- A pointer to the sub-field or null if field does not exist or has a different type
PVIntPtr ptr = pvStruct->getSubField<PVInt>("substruct.leaffield");
A field name is a '.' delimited list of child field names (no whitespace allowed)
Definition at line 766 of file pvData.h.
template<typename A >
std::tr1::shared_ptr<PVField> epics::pvData::PVStructure::getSubFieldT |
( |
A |
a | ) |
|
|
inline |
Get the subfield with the specified offset.
- Parameters
-
a | A sub-field name or index |
- Exceptions
-
- Returns
- Pointer to the field
Definition at line 786 of file pvData.h.
Serialize.
- Parameters
-
pbuffer | The byte buffer. |
pflusher | Interface to call when buffer is full. |
pbitSet | A bitset the specifies which fields to serialize. |
Implements epics::pvData::BitSetSerializable.
virtual void epics::pvData::PVStructure::setImmutable |
( |
| ) |
|
|
virtual |
Set the field to be immutable, i.e. it can no longer be modified. This is permanent, i.e. once done the field cannot be made mutable.
Reimplemented from epics::pvData::PVField.
The documentation for this class was generated from the following file: