![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Convenience Class for NTEnum. More...
#include "ntenum.h"
Public Member Functions | |
POINTER_DEFINITIONS (NTEnum) | |
bool | isValid () |
~NTEnum () | |
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::PVStructurePtr | 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 NTEnumBuilderPtr | createBuilder () |
Static Public Attributes | |
static const std::string | URI |
Friends | |
class | detail::NTEnumBuilder |
bool epics::nt::NTEnum::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 166 of file ntenum.cpp.
bool epics::nt::NTEnum::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 157 of file ntenum.cpp.
|
static |
Creates an NTEnum builder instance.
Definition at line 152 of file ntenum.cpp.
PVStructurePtr epics::nt::NTEnum::getAlarm | ( | ) | const |
Returns the alarm field.
Definition at line 190 of file ntenum.cpp.
PVStringPtr epics::nt::NTEnum::getDescriptor | ( | ) | const |
Returns the descriptor field.
Definition at line 180 of file ntenum.cpp.
PVStructurePtr epics::nt::NTEnum::getPVStructure | ( | ) | const |
Returns the PVStructure wrapped by this instance.
Definition at line 175 of file ntenum.cpp.
PVStructurePtr epics::nt::NTEnum::getTimeStamp | ( | ) | const |
Returns the timeStamp field.
Definition at line 185 of file ntenum.cpp.
PVStructurePtr epics::nt::NTEnum::getValue | ( | ) | const |
|
static |
Returns whether the specified Structure reports to be a compatible NTEnum.
Checks if the specified Structure reports compatibility with this version of NTEnum 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 114 of file ntenum.cpp.
|
static |
Returns whether the specified PVStructure reports to be a compatible NTEnum.
Checks if the specified PVStructure reports compatibility with this version of NTEnum 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 119 of file ntenum.cpp.
|
static |
Returns whether the specified Structure is compatible with NTEnum.
Checks if the specified Structure is compatible with this version of NTEnum through the introspection interface.
structure | The Structure to test |
Definition at line 124 of file ntenum.cpp.
|
static |
Returns whether the specified PVStructure is compatible with NTEnum.
Checks if the specified PVStructure is compatible with this version of NTEnum through the introspection interface.
pvStructure | the PVStructure to test |
Definition at line 140 of file ntenum.cpp.
bool epics::nt::NTEnum::isValid | ( | ) |
Returns whether the wrapped PVStructure is valid with respect to this version of NTEnum.
Unlike isCompatible(), isValid() may perform checks on the value data as well as the introspection data.
Definition at line 147 of file ntenum.cpp.
epics::nt::NTEnum::POINTER_DEFINITIONS | ( | NTEnum | ) |
|
static |
Creates an NTEnum wrapping the specified PVStructure, regardless of the latter's compatibility.
No checks are made as to whether the specified PVStructure is compatible with NTEnum or is non-null.
pvStructure | the PVStructure to be wrapped |
Definition at line 103 of file ntenum.cpp.
|
static |
Creates an NTEnum wrapping the specified PVStructure, regardless of the latter's compatibility.
No checks are made as to whether the specified PVStructure is compatible with NTEnum or is non-null.
pvStructure | the PVStructure to be wrapped |
Definition at line 109 of file ntenum.cpp.
|
friend |