![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Convenience Class for NTAttribute. More...
#include "ntattribute.h"
Public Member Functions | |
POINTER_DEFINITIONS (NTAttribute) | |
bool | isValid () |
~NTAttribute () | |
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::PVStringPtr | getName () const |
epics::pvData::PVUnionPtr | getValue () const |
epics::pvData::PVStringArrayPtr | getTags () 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 NTAttributeBuilderPtr | createBuilder () |
Static Public Attributes | |
static const std::string | URI |
Friends | |
class | detail::NTAttributeBuilder |
Convenience Class for NTAttribute.
Definition at line 124 of file ntattribute.h.
|
inline |
bool epics::nt::NTAttribute::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 177 of file ntattribute.cpp.
bool epics::nt::NTAttribute::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 168 of file ntattribute.cpp.
|
static |
Creates an NTAttribute builder instance.
Definition at line 163 of file ntattribute.cpp.
PVStructurePtr epics::nt::NTAttribute::getAlarm | ( | ) | const |
Returns the alarm field.
Definition at line 201 of file ntattribute.cpp.
PVStringPtr epics::nt::NTAttribute::getDescriptor | ( | ) | const |
Returns the descriptor field.
Definition at line 191 of file ntattribute.cpp.
PVStringPtr epics::nt::NTAttribute::getName | ( | ) | const |
Returns the name field.
Definition at line 207 of file ntattribute.cpp.
PVStructurePtr epics::nt::NTAttribute::getPVStructure | ( | ) | const |
Returns the PVStructure wrapped by this instance.
Definition at line 186 of file ntattribute.cpp.
PVStringArrayPtr epics::nt::NTAttribute::getTags | ( | ) | const |
Returns the tags field.
Definition at line 217 of file ntattribute.cpp.
PVStructurePtr epics::nt::NTAttribute::getTimeStamp | ( | ) | const |
Returns the timeStamp field.
Definition at line 196 of file ntattribute.cpp.
PVUnionPtr epics::nt::NTAttribute::getValue | ( | ) | const |
|
static |
Returns whether the specified Structure reports to be a compatible NTAttribute.
Checks if the specified Structure reports compatibility with this version of NTAttribute 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 123 of file ntattribute.cpp.
|
static |
Returns whether the specified PVStructure reports to be a compatible NTAttribute.
Checks if the specified PVStructure reports compatibility with this version of NTAttribute 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 128 of file ntattribute.cpp.
|
static |
Returns whether the specified Structure is compatible with NTAttribute.
Checks if the specified Structure is compatible with this version of NTAttribute through the introspection interface.
structure | the Structure to test |
Definition at line 133 of file ntattribute.cpp.
|
static |
Returns whether the specified PVStructure is compatible with NTAttribute.
Checks if the specified tructure is compatible with this version of NTAttribute through the introspection interface.
pvStructure | the PVStructure to test |
Definition at line 151 of file ntattribute.cpp.
bool epics::nt::NTAttribute::isValid | ( | ) |
Returns whether the wrapped PVStructure is valid with respect to this version of NTAttribute.
Unlike isCompatible(), isValid() may perform checks on the value data as well as the introspection data.
Definition at line 158 of file ntattribute.cpp.
epics::nt::NTAttribute::POINTER_DEFINITIONS | ( | NTAttribute | ) |
|
static |
Creates an NTAttribute wrapping the specified PVStructure if the latter is compatible.
Checks the supplied PVStructure is compatible with NTAttribute and if so returns an NTAttribute 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 112 of file ntattribute.cpp.
|
static |
Creates an NTAttribute wrapping the specified PVStructure, regardless of the latter's compatibility.
No checks are made as to whether the specified PVStructure is compatible with NTAttribute or is non-null.
pvStructure | the PVStructure to be wrapped |
Definition at line 118 of file ntattribute.cpp.
|
friend |
Definition at line 290 of file ntattribute.h.
|
static |
Definition at line 129 of file ntattribute.h.