![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Convenience Class for NTScalar. More...
#include "ntscalar.h"
Public Member Functions | |
POINTER_DEFINITIONS (NTScalar) | |
bool | isValid () |
~NTScalar () | |
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 NTScalarBuilderPtr | createBuilder () |
Static Public Attributes | |
static const std::string | URI |
Friends | |
class | detail::NTScalarBuilder |
Convenience Class for NTScalar.
Definition at line 144 of file ntscalar.h.
|
inline |
bool epics::nt::NTScalar::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 199 of file ntscalar.cpp.
bool epics::nt::NTScalar::attachControl | ( | epics::pvData::PVControl & | pvControl | ) | const |
Attaches an PVControl to the wrapped PVStructure. Does nothing if no control field.
pvControl | The PVControl that will be attached. |
Definition at line 217 of file ntscalar.cpp.
bool epics::nt::NTScalar::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 208 of file ntscalar.cpp.
bool epics::nt::NTScalar::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 190 of file ntscalar.cpp.
|
static |
Creates an NTScalar builder instance.
Definition at line 185 of file ntscalar.cpp.
PVStructurePtr epics::nt::NTScalar::getAlarm | ( | ) | const |
Returns the alarm field.
Definition at line 241 of file ntscalar.cpp.
PVStructurePtr epics::nt::NTScalar::getControl | ( | ) | const |
Returns the control.
Definition at line 251 of file ntscalar.cpp.
PVStringPtr epics::nt::NTScalar::getDescriptor | ( | ) | const |
Returns the descriptor field.
Definition at line 231 of file ntscalar.cpp.
PVStructurePtr epics::nt::NTScalar::getDisplay | ( | ) | const |
Returns the display.
Definition at line 246 of file ntscalar.cpp.
PVStructurePtr epics::nt::NTScalar::getPVStructure | ( | ) | const |
Returns the PVStructure wrapped by this instance.
Definition at line 226 of file ntscalar.cpp.
PVStructurePtr epics::nt::NTScalar::getTimeStamp | ( | ) | const |
Returns the timeStamp field.
Definition at line 236 of file ntscalar.cpp.
PVFieldPtr epics::nt::NTScalar::getValue | ( | ) | const |
Returns the value field.
Definition at line 256 of file ntscalar.cpp.
|
inline |
Returns the value field of a specified type (for example, PVDouble).
PVT | the expected type of the value field which should be be PVScalar or a derived class. |
Definition at line 328 of file ntscalar.h.
|
static |
Returns whether the specified Structure reports to be a compatible NTScalar.
Checks if the specified Structure reports compatibility with this version of NTScalar 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 145 of file ntscalar.cpp.
|
static |
Returns whether the specified PVStructure reports to be a compatible NTScalar.
Checks if the specified PVStructure reports compatibility with this version of NTScalar 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 150 of file ntscalar.cpp.
|
static |
Returns whether the specified Structure is compatible with NTScalar.
Checks if the specified Structure is compatible with this version of NTScalar through the introspection interface.
structure | the Structure to test |
Definition at line 155 of file ntscalar.cpp.
|
static |
Returns whether the specified PVStructure is compatible with NTScalar.
Checks if the specified PVStructure is compatible with this version of NTScalar through the introspection interface.
pvStructure | the PVStructure to test |
Definition at line 173 of file ntscalar.cpp.
bool epics::nt::NTScalar::isValid | ( | ) |
Returns whether the wrapped PVStructure is valid with respect to this version of NTScalar.
Unlike isCompatible(), isValid() may perform checks on the value data as well as the introspection data.
Definition at line 180 of file ntscalar.cpp.
epics::nt::NTScalar::POINTER_DEFINITIONS | ( | NTScalar | ) |
|
static |
Creates an NTScalar wrapping the specified PVStructure if the latter is compatible.
Checks the supplied PVStructure is compatible with NTScalar and if so returns an NTScalar 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 134 of file ntscalar.cpp.
|
static |
Creates an NTScalar wrapping the specified PVStructure, regardless of the latter's compatibility.
No checks are made as to whether the specified PVStructure is compatible with NTScalar or is non-null.
pvStructure | the PVStructure to be wrapped |
Definition at line 140 of file ntscalar.cpp.
|
friend |
Definition at line 338 of file ntscalar.h.
|
static |
Definition at line 149 of file ntscalar.h.