This class implements introspection object for a structure.
More...
#include <pv/pvIntrospect.h>
|
typedef std::tr1::shared_ptr
< Structure > | shared_pointer |
|
typedef std::tr1::shared_ptr
< const Structure > | const_shared_pointer |
|
typedef std::tr1::weak_ptr
< Structure > | weak_pointer |
|
typedef std::tr1::weak_ptr
< const Structure > | const_weak_pointer |
|
typedef Structure & | reference |
|
typedef const Structure & | const_reference |
|
enum | { isField =1
} |
|
typedef std::tr1::shared_ptr
< Field > | shared_pointer |
|
typedef std::tr1::shared_ptr
< const Field > | const_shared_pointer |
|
typedef std::tr1::weak_ptr< Field > | weak_pointer |
|
typedef std::tr1::weak_ptr
< const Field > | const_weak_pointer |
|
|
class | FieldCreate |
|
class | Union |
|
This class implements introspection object for a structure.
Definition at line 689 of file pvIntrospect.h.
std::tr1::shared_ptr<PVStructure> epics::pvData::Structure::build |
( |
| ) |
const |
Allocate a new instance
- Version
- Added after 7.0.0
static const std::string& epics::pvData::Structure::defaultId |
( |
| ) |
|
|
static |
Get the default structure ID.
- Returns
- The default structure ID.
Puts the string representation to the stream.
- Parameters
-
- Returns
- The output stream.
Implements epics::pvData::Field.
Lookup Field by name
- Parameters
-
fieldName | Member field name. May not contain '.' |
- Returns
- NULL if no member by this name.
template<typename FT >
std::tr1::shared_ptr<const FT> epics::pvData::Structure::getField |
( |
std::string const & |
fieldName | ) |
const |
|
inline |
Lookup Field by name and cast to Field sub-class.
- Parameters
-
fieldName | Member field name. May not contain '.' |
- Returns
- NULL If no member by this name, or member exists, but has type other than FT.
Definition at line 726 of file pvIntrospect.h.
const FieldConstPtr& epics::pvData::Structure::getField |
( |
std::size_t |
index | ) |
const |
|
inline |
Lookup Field by index, within this Structure.
- Parameters
-
index | Index of member in this structure. |
- Returns
- Field pointer (never NULL)
- Exceptions
-
Definition at line 764 of file pvIntrospect.h.
template<typename FT >
std::tr1::shared_ptr<const FT> epics::pvData::Structure::getField |
( |
std::size_t |
index | ) |
const |
|
inline |
Lookup Field by index, within this Structure.
- Parameters
-
index | Index of member in this structure. |
- Returns
- NULL if member is not a sub-class of FT
- Exceptions
-
Definition at line 772 of file pvIntrospect.h.
std::size_t epics::pvData::Structure::getFieldIndex |
( |
std::string const & |
fieldName | ) |
const |
Get the field index for the specified fieldName.
- Returns
- The introspection interface. This will be -1 if the field is not in the structure.
const std::string& epics::pvData::Structure::getFieldName |
( |
std::size_t |
fieldIndex | ) |
const |
|
inline |
Get the name of the field with the specified index;
- Parameters
-
fieldIndex | The index of the desired field. |
- Returns
- The fieldName.
Definition at line 826 of file pvIntrospect.h.
StringArray const& epics::pvData::Structure::getFieldNames |
( |
| ) |
const |
|
inline |
Get the names of the fields in the structure.
- Returns
- The array of fieldNames.
Definition at line 820 of file pvIntrospect.h.
Get the fields in the structure.
- Returns
- The array of fields.
Definition at line 815 of file pvIntrospect.h.
Lookup Field by name
- Parameters
-
fieldName | Member field name. May not contain '.' |
- Returns
- Field pointer (never NULL)
- Exceptions
-
Definition at line 738 of file pvIntrospect.h.
template<typename FT >
std::tr1::shared_ptr<const FT> epics::pvData::Structure::getFieldT |
( |
std::string const & |
fieldName | ) |
const |
|
inline |
Lookup Field by name and cast to Field sub-class.
- Parameters
-
fieldName | Member field name. May not contain '.' |
- Returns
- Field pointer (never NULL)
- Exceptions
-
std::runtime_error | If no member by this name, or member exists, but has type other than FT. |
Definition at line 746 of file pvIntrospect.h.
FieldConstPtr epics::pvData::Structure::getFieldT |
( |
std::size_t |
index | ) |
const |
|
inline |
Lookup Field by index, within this Structure.
- Parameters
-
index | Index of member in this structure. |
- Returns
- Field pointer (never NULL)
- Exceptions
-
Definition at line 783 of file pvIntrospect.h.
template<typename FT >
std::tr1::shared_ptr<const FT> epics::pvData::Structure::getFieldT |
( |
std::size_t |
index | ) |
const |
|
inline |
Lookup Field by index, within this Structure.
- Parameters
-
index | Index of member in this structure. |
- Returns
- Field pointer (never NULL)
- Exceptions
-
Definition at line 792 of file pvIntrospect.h.
virtual std::string epics::pvData::Structure::getID |
( |
| ) |
const |
|
virtual |
Get the identification string.
- Returns
- The identification string, can be empty.
Implements epics::pvData::Field.
std::size_t epics::pvData::Structure::getNumberFields |
( |
| ) |
const |
|
inline |
Get the number of immediate subfields in the structure.
- Returns
- The number of fields.
Definition at line 712 of file pvIntrospect.h.
Serialize field into given buffer.
- Parameters
-
buffer | serialization buffer. |
flusher | flush interface. |
Implements epics::pvData::Serializable.
The documentation for this class was generated from the following file: