![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Convenience Class for NTScalarArray. More...
#include "ntscalarArray.h"
Public Member Functions | |
POINTER_DEFINITIONS (NTScalarArray) | |
bool | isValid () |
~NTScalarArray () | |
bool | attachTimeStamp (epics::pvData::PVTimeStamp &pvTimeStamp) const |
bool | attachAlarm (epics::pvData::PVAlarm &pvAlarm) const |
bool | attachDisplay (epics::pvData::PVDisplay &pvDisplay) const |
bool | attachControl (epics::pvData::PVControl &pvControl) const |
epics::pvData::PVStructurePtr | getPVStructure () const |
epics::pvData::PVStringPtr | getDescriptor () const |
epics::pvData::PVStructurePtr | getTimeStamp () const |
epics::pvData::PVStructurePtr | getAlarm () const |
epics::pvData::PVStructurePtr | getDisplay () const |
epics::pvData::PVStructurePtr | getControl () 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 NTScalarArrayBuilderPtr | createBuilder () |
Static Public Attributes | |
static const std::string | URI |
Friends | |
class | detail::NTScalarArrayBuilder |
Convenience Class for NTScalarArray.
Definition at line 153 of file ntscalarArray.h.
|
inline |
bool epics::nt::NTScalarArray::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 208 of file ntscalarArray.cpp.
bool epics::nt::NTScalarArray::attachControl | ( | epics::pvData::PVControl & | pvControl | ) | const |
Attaches an pvControl.
pvControl | The pvControl that will be attached. Does nothing if no control field. |
Definition at line 226 of file ntscalarArray.cpp.
bool epics::nt::NTScalarArray::attachDisplay | ( | epics::pvData::PVDisplay & | pvDisplay | ) | const |
Attaches a PVDisplay to the wrapped PVStructure. Does nothing if no display field.
pvDisplay | the PVDisplay that will be attached. |
Definition at line 217 of file ntscalarArray.cpp.
bool epics::nt::NTScalarArray::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 199 of file ntscalarArray.cpp.
|
static |
Creates an NTScalarArray builder instance.
Definition at line 194 of file ntscalarArray.cpp.
PVStructurePtr epics::nt::NTScalarArray::getAlarm | ( | ) | const |
Returns the alarm field.
Definition at line 250 of file ntscalarArray.cpp.
PVStructurePtr epics::nt::NTScalarArray::getControl | ( | ) | const |
Returns the control.
Definition at line 260 of file ntscalarArray.cpp.
PVStringPtr epics::nt::NTScalarArray::getDescriptor | ( | ) | const |
Returns the descriptor field.
Definition at line 240 of file ntscalarArray.cpp.
PVStructurePtr epics::nt::NTScalarArray::getDisplay | ( | ) | const |
Returns the display.
Definition at line 255 of file ntscalarArray.cpp.
PVStructurePtr epics::nt::NTScalarArray::getPVStructure | ( | ) | const |
Returns the PVStructure wrapped by this instance.
Definition at line 235 of file ntscalarArray.cpp.
PVStructurePtr epics::nt::NTScalarArray::getTimeStamp | ( | ) | const |
Returns the timeStamp field.
Definition at line 245 of file ntscalarArray.cpp.
PVFieldPtr epics::nt::NTScalarArray::getValue | ( | ) | const |
Returns the value field.
Definition at line 265 of file ntscalarArray.cpp.
|
inline |
Returns the value field of a specified type (e.g. PVDoubleArray).
PVT | the expected type of the value field which should be be PVScalarArray or a derived class. |
Definition at line 336 of file ntscalarArray.h.
|
static |
Returns whether the specified Structure reports to be a compatible NTScalarArray.
Checks if the specified Structure reports compatibility with this version of NTScalarArray 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 154 of file ntscalarArray.cpp.
|
static |
Returns whether the specified PVStructure reports to be a compatible NTScalarArray.
Checks if the specified PVStructure reports compatibility with this version of NTScalarArray 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 159 of file ntscalarArray.cpp.
|
static |
Returns whether the specified Structure is compatible with NTScalarArray.
Checks if the specified Structure is compatible with this version of NTScalarArray through the introspection interface.
structure | the Structure to test. |
Definition at line 164 of file ntscalarArray.cpp.
|
static |
Returns whether the specified PVStructure is compatible with NTScalarArray.
Checks if the specified PVStructure is compatible with this version of NTScalarArray through the introspection interface.
pvStructure | the PVStructure to test |
Definition at line 182 of file ntscalarArray.cpp.
bool epics::nt::NTScalarArray::isValid | ( | ) |
Returns whether the wrapped PVStructure is a valid NTScalarArray.
Unlike isCompatible(), isValid() may perform checks on the value data as well as the introspection data.
Definition at line 189 of file ntscalarArray.cpp.
epics::nt::NTScalarArray::POINTER_DEFINITIONS | ( | NTScalarArray | ) |
|
static |
Creates an NTScalarArray wrapping the specified PVStructure if the latter is compatible.
Checks the supplied PVStructure is compatible with NTScalarArray and if so returns an NTScalarArray 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 143 of file ntscalarArray.cpp.
|
static |
Creates an NTScalarArray wrapping the specified PVStructure, regardless of the latter's compatibility.
No checks are made as to whether the specified PVStructure is compatible with NTScalarArray or is non-null.
pvStructure | the PVStructure to be wrapped |
Definition at line 149 of file ntscalarArray.cpp.
|
friend |
Definition at line 346 of file ntscalarArray.h.
|
static |
Definition at line 158 of file ntscalarArray.h.