PVData C++  8.0.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Types | Public Member Functions | Friends | List of all members
epics::pvData::PVStructure Class Reference

Data interface for a structure,. More...

#include <pv/pvData.h>

Inheritance diagram for epics::pvData::PVStructure:
Inheritance graph
[legend]
Collaboration diagram for epics::pvData::PVStructure:
Collaboration graph
[legend]

Classes

struct  Formatter
 

Public Types

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 PVStructurereference
 
typedef const PVStructureconst_reference
 
- Public Types inherited from epics::pvData::PVField
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
 

Public Member Functions

virtual ~PVStructure ()
 
virtual void setImmutable ()
 
const StructureConstPtrgetStructure () const
 
const PVFieldPtrArraygetPVFields () const
 
template<typename A >
std::tr1::shared_ptr< PVFieldgetSubField (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< PVFieldgetSubFieldT (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::ostreamdumpValue (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
 
- Public Member Functions inherited from epics::pvData::PVField
virtual ~PVField ()
 
const std::stringgetFieldName () const
 
std::string getFullName () const
 
std::size_t getFieldOffset () const
 
std::size_t getNextFieldOffset () const
 
std::size_t getNumberFields () const
 
bool isImmutable () const
 
const FieldConstPtrgetField () const
 
PVStructuregetParent ()
 
const PVStructuregetParent () const
 
void postPut ()
 
void setPostHandler (PostHandlerPtr const &postHandler)
 
virtual bool equals (PVField &pv)
 
void copy (const PVField &from)
 
void copyUnchecked (const PVField &from)
 
- Public Member Functions inherited from epics::pvData::Serializable
virtual ~Serializable ()
 
- Public Member Functions inherited from epics::pvData::BitSetSerializable
virtual ~BitSetSerializable ()
 

Friends

class PVDataCreate
 

Additional Inherited Members

- Static Public Attributes inherited from epics::pvData::PVField
static size_t num_instances
 
- Protected Member Functions inherited from epics::pvData::PVField
PVField::shared_pointer getPtrSelf ()
 
 PVField (FieldConstPtr field)
 
void setParentAndName (PVStructure *parent, std::string const &fieldName)
 

Detailed Description

Data interface for a structure,.

Definition at line 712 of file pvData.h.

Constructor & Destructor Documentation

virtual epics::pvData::PVStructure::~PVStructure ( )
virtual

Destructor

epics::pvData::PVStructure::PVStructure ( StructureConstPtr const &  structure)
explicit

Constructor

Parameters
structureThe introspection interface.
epics::pvData::PVStructure::PVStructure ( StructureConstPtr const &  structure,
PVFieldPtrArray const &  pvFields 
)

Constructor

Parameters
structureThe introspection interface.
pvFieldsThe array of fields for the structure.

Member Function Documentation

virtual void epics::pvData::PVStructure::deserialize ( ByteBuffer pbuffer,
DeserializableControl pflusher 
)
virtual

Deserialize

Parameters
pbufferThe byte buffer.
pflusherInterface to call when buffer is empty.

Implements epics::pvData::Serializable.

virtual void epics::pvData::PVStructure::deserialize ( ByteBuffer pbuffer,
DeserializableControl pflusher,
BitSet pbitSet 
)
virtual

Deserialize

Parameters
pbufferThe byte buffer.
pflusherInterface to call when buffer is empty.
pbitSetA bitset the specifies which fields to deserialize.

Implements epics::pvData::BitSetSerializable.

virtual std::ostream& epics::pvData::PVStructure::dumpValue ( std::ostream o) const
virtual

Puts the PVField raw value to the stream.

Parameters
ooutput stream.
Returns
The output stream.

Implements epics::pvData::PVField.

const PVFieldPtrArray& epics::pvData::PVStructure::getPVFields ( ) const
inline

Get the array of pointers to the subfields in the structure.

Returns
The array.

Definition at line 736 of file pvData.h.

const StructureConstPtr& epics::pvData::PVStructure::getStructure ( ) const
inline

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)
inline

Get the subfield with the specified offset.

Parameters
aA 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)
inline

Get a subfield with the specified name.

Parameters
aA 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)
inline

Get the subfield with the specified offset.

Parameters
aA sub-field name or index
Exceptions
std::runtime_errorif the requested sub-field doesn't exist, or has a different type
Returns
Pointer to the field

Definition at line 786 of file pvData.h.

virtual void epics::pvData::PVStructure::serialize ( ByteBuffer pbuffer,
SerializableControl pflusher 
) const
virtual

Serialize.

Parameters
pbufferThe byte buffer.
pflusherInterface to call when buffer is full.

Implements epics::pvData::Serializable.

virtual void epics::pvData::PVStructure::serialize ( ByteBuffer pbuffer,
SerializableControl pflusher,
BitSet pbitSet 
) const
virtual

Serialize.

Parameters
pbufferThe byte buffer.
pflusherInterface to call when buffer is full.
pbitSetA 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: