![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Convenience Class for NTNameValue. More...
#include "ntnameValue.h"
Public Member Functions | |
POINTER_DEFINITIONS (NTNameValue) | |
bool | isValid () |
~NTNameValue () | |
bool | attachTimeStamp (epics::pvData::PVTimeStamp &pvTimeStamp) const |
bool | attachAlarm (epics::pvData::PVAlarm &pvAlarm) const |
epics::pvData::PVStructurePtr | getPVStructure () const |
epics::pvData::PVStringPtr | getDescriptor () const |
epics::pvData::PVStructurePtr | getTimeStamp () const |
epics::pvData::PVStructurePtr | getAlarm () const |
epics::pvData::PVStringArrayPtr | getName () const |
epics::pvData::PVFieldPtr | getValue () const |
template<typename PVT > | |
std::tr1::shared_ptr< PVT > | getValue () const |
Static Public Member Functions | |
static shared_pointer | wrap (epics::pvData::PVStructurePtr const &pvStructure) |
static shared_pointer | wrapUnsafe (epics::pvData::PVStructurePtr const &pvStructure) |
static bool | is_a (epics::pvData::StructureConstPtr const &structure) |
static bool | is_a (epics::pvData::PVStructurePtr const &pvStructure) |
static bool | isCompatible (epics::pvData::StructureConstPtr const &structure) |
static bool | isCompatible (epics::pvData::PVStructurePtr const &pvStructure) |
static NTNameValueBuilderPtr | createBuilder () |
Static Public Attributes | |
static const std::string | URI |
Friends | |
class | detail::NTNameValueBuilder |
Convenience Class for NTNameValue.
Definition at line 128 of file ntnameValue.h.
|
inline |
bool epics::nt::NTNameValue::attachAlarm | ( | epics::pvData::PVAlarm & | pvAlarm | ) | const |
Attaches a PVAlarm to the wrapped PVStructure. Does nothing if no alarm field.
pvAlarm | the PVAlarm that will be attached. |
Definition at line 180 of file ntnameValue.cpp.
bool epics::nt::NTNameValue::attachTimeStamp | ( | epics::pvData::PVTimeStamp & | pvTimeStamp | ) | const |
Attaches a PVTimeStamp to the wrapped PVStructure. Does nothing if no timeStamp field.
pvTimeStamp | the PVTimeStamp that will be attached. |
Definition at line 171 of file ntnameValue.cpp.
|
static |
Creates an NTNameValue builder instance.
Definition at line 166 of file ntnameValue.cpp.
PVStructurePtr epics::nt::NTNameValue::getAlarm | ( | ) | const |
Returns the alarm field.
Definition at line 204 of file ntnameValue.cpp.
PVStringPtr epics::nt::NTNameValue::getDescriptor | ( | ) | const |
Returns the descriptor field.
Definition at line 194 of file ntnameValue.cpp.
PVStringArrayPtr epics::nt::NTNameValue::getName | ( | ) | const |
Returns the name array field.
Definition at line 209 of file ntnameValue.cpp.
PVStructurePtr epics::nt::NTNameValue::getPVStructure | ( | ) | const |
Returns the PVStructure wrapped by this instance.
Definition at line 189 of file ntnameValue.cpp.
PVStructurePtr epics::nt::NTNameValue::getTimeStamp | ( | ) | const |
Returns the timeStamp field.
Definition at line 199 of file ntnameValue.cpp.
PVFieldPtr epics::nt::NTNameValue::getValue | ( | ) | const |
Returns the value array field.
Definition at line 214 of file ntnameValue.cpp.
|
inline |
Returns the value array field of a specified expected type (e.g. PVDoubleArray).
PVT | The expected type of the value field which should be be PVScalarArray or a derived class. |
Definition at line 289 of file ntnameValue.h.
|
static |
Returns whether the specified Structure reports to be a compatible NTNameValue.
Checks if the specified Structure reports compatibility with this version of NTNameValue through its type ID, including checking version numbers. The return value does not depend on whether the structure is actually compatible in terms of its introspection type.
structure | the Structure to test. |
Definition at line 127 of file ntnameValue.cpp.
|
static |
Returns whether the specified PVStructure reports to be a compatible NTNameValue.
Checks if the specified PVStructure reports compatibility with this version of NTNameValue through its type ID, including checking version numbers. The return value does not depend on whether the structure is actually compatible in terms of its introspection type
pvStructure | The PVStructure to test. |
Definition at line 132 of file ntnameValue.cpp.
|
static |
Returns whether the specified Structure is compatible with NTNameValue.
Checks if the specified PVStructure is compatible with this version of NTNameValue through the introspection interface.
structure | the Structure to test. |
Definition at line 137 of file ntnameValue.cpp.
|
static |
Returns whether the specified PVStructure is compatible with NTNameValue.
Checks if the specified PVStructure is compatible with this version of NTNameValue through the introspection interface.
pvStructure | the PVStructure to test |
Definition at line 154 of file ntnameValue.cpp.
bool epics::nt::NTNameValue::isValid | ( | ) |
Returns whether the wrapped PVStructure is valid with respect to this version of NTNameValue.
Unlike isCompatible(), isValid() may perform checks on the value data as well as the introspection data.
Definition at line 161 of file ntnameValue.cpp.
epics::nt::NTNameValue::POINTER_DEFINITIONS | ( | NTNameValue | ) |
|
static |
Creates an NTNameValue wrapping the specified PVStructure if the latter is compatible.
Checks the supplied PVStructure is compatible with NTNameValue and if so returns an NTNameValue which wraps it. This method will return null if the structure is is not compatible or is null.
pvStructure | the PVStructure to be wrapped. |
Definition at line 116 of file ntnameValue.cpp.
|
static |
Creates an NTNameValue wrapping the specified PVStructure, regardless of the latter's compatibility.
No checks are made as to whether the specified PVStructure is compatible with NTNameValue or is non-null.
pvStructure | the PVStructure to be wrapped. |
Definition at line 122 of file ntnameValue.cpp.
|
friend |
Definition at line 301 of file ntnameValue.h.
|
static |
Definition at line 133 of file ntnameValue.h.