Convenience Class for NTContinuum.
More...
#include "ntcontinuum.h"
Convenience Class for NTContinuum.
- Author
- dgh
Definition at line 118 of file ntcontinuum.h.
epics::nt::NTContinuum::~NTContinuum |
( |
| ) |
|
|
inline |
Attaches a PVAlarm to the wrapped PVStructure. Does nothing if no alarm field.
- Parameters
-
pvAlarm | the PVAlarm that will be attached. |
- Returns
- true if the operation was successfull (i.e. this instance has an alarm field), otherwise false.
Definition at line 170 of file ntcontinuum.cpp.
174 return pvAlarm.
attach(al);
bool attach(PVFieldPtr const &pvField)
epics::pvData::PVStructurePtr getAlarm() const
std::tr1::shared_ptr< PVStructure > PVStructurePtr
Attaches a PVTimeStamp to the wrapped PVStructure. Does nothing if no timeStamp field.
- Parameters
-
pvTimeStamp | the PVTimeStamp that will be attached. |
- Returns
- true if the operation was successfull (i.e. this instance has a timeStamp field), otherwise false.
Definition at line 161 of file ntcontinuum.cpp.
165 return pvTimeStamp.
attach(ts);
std::tr1::shared_ptr< PVStructure > PVStructurePtr
epics::pvData::PVStructurePtr getTimeStamp() const
bool attach(PVFieldPtr const &pvField)
Creates an NTContinuum builder instance.
- Returns
- builder instance.
Definition at line 156 of file ntcontinuum.cpp.
std::tr1::shared_ptr< detail::NTContinuumBuilder > NTContinuumBuilderPtr
Returns the alarm field.
- Returns
- the alarm field or null if no such field.
Definition at line 194 of file ntcontinuum.cpp.
196 return pvNTContinuum->getSubField<
PVStructure>(
"alarm");
Data interface for a structure,.
Returns the base field.
- Returns
- the base field.
Definition at line 199 of file ntcontinuum.cpp.
template class for all extensions of PVArray.
PVStringPtr epics::nt::NTContinuum::getDescriptor |
( |
| ) |
const |
Returns the descriptor field.
- Returns
- the descriptor field or null if no such field.
Definition at line 184 of file ntcontinuum.cpp.
186 return pvNTContinuum->getSubField<
PVString>(
"descriptor");
PVString is special case, since it implements SerializableArray.
Returns the PVStructure wrapped by this instance.
- Returns
- the PVStructure wrapped by this instance.
Definition at line 179 of file ntcontinuum.cpp.
181 return pvNTContinuum;
Returns the timeStamp field.
- Returns
- the timStamp field or null if no such field.
Definition at line 189 of file ntcontinuum.cpp.
191 return pvNTContinuum->getSubField<
PVStructure>(
"timeStamp");
Data interface for a structure,.
Returns the units field.
- Returns
- the units field.
Definition at line 209 of file ntcontinuum.cpp.
template class for all extensions of PVArray.
Returns the value field.
- Returns
- the value field.
Definition at line 204 of file ntcontinuum.cpp.
Returns whether the specified Structure reports to be a compatible NTContinuum.
Checks if the specified Structure reports compatibility with this version of NTContinuum 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
- Parameters
-
structure | the Structure to test |
- Returns
- (false,true) if the specified Structure (is not, is) a compatible NTContinuum
Definition at line 115 of file ntcontinuum.cpp.
static const std::string URI
static bool is_a(const std::string &u1, const std::string &u2)
Returns whether the specified PVStructure reports to be a compatible NTContinuum.
Checks if the specified Structure reports compatibility with this version of NTContinuum 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
- Parameters
-
pvStructure | The PVStructure to test |
- Returns
- (false,true) if the specified PVStructure (is not, is) a compatible NTContinuum
Definition at line 120 of file ntcontinuum.cpp.
122 return is_a(pvStructure->getStructure());
static bool is_a(epics::pvData::StructureConstPtr const &structure)
Returns whether the specified Structure is compatible with NTContinuum.
Checks if the specified Structure is compatible with this version of NTContinuum through the introspection interface.
- Parameters
-
structure | the Structure to test |
- Returns
- (false,true) if the specified Structure (is not, is) a compatible NTContinuum
Definition at line 125 of file ntcontinuum.cpp.
134 .has<ScalarArray>(
"base")
136 .has<ScalarArray>(
"units")
137 .maybeHas<
Scalar>(
"descriptor")
138 .maybeHas<&NTField::isAlarm, Structure>(
"alarm")
This class implements introspection object for Scalar.
This class implements introspection object for a structure.
This class implements introspection object for scalar array.
bool isTimeStamp(epics::pvData::FieldConstPtr const &field)
Returns whether the specified PVStructure is compatible with NTContinuum.
Checks if the specified PVStructure is compatible with this version of NTContinuum through the introspection interface.
- Parameters
-
pvStructure | the PVStructure to test |
- Returns
- (false,true) if the specified PVStructure (is not, is) a compatible NTContinuum
Definition at line 143 of file ntcontinuum.cpp.
145 if(!pvStructure)
return false;
static bool isCompatible(epics::pvData::StructureConstPtr const &structure)
bool epics::nt::NTContinuum::isValid |
( |
| ) |
|
Returns whether the wrapped structure is valid with respect to this version of NTContinuum.
Unlike isCompatible(), isValid() may perform checks on the value data as well as the introspection data.
- Returns
- (false,true) if the wrapped PVStructure (is not, is) a valid NTContinuum
Definition at line 150 of file ntcontinuum.cpp.
epics::pvData::PVDoubleArrayPtr getBase() const
epics::pvData::PVDoubleArrayPtr getValue() const
epics::pvData::PVStringArrayPtr getUnits() const
epics::nt::NTContinuum::POINTER_DEFINITIONS |
( |
NTContinuum |
| ) |
|
Creates an NTContinuum wrapping the specified PVStructure if the latter is compatible.
Checks the supplied structure is compatible with NTContinuum and if so returns an NTContinuum which wraps it. This method will return null if the structure is is not compatible or is null.
- Parameters
-
pvStructure | the PVStructure to be wrapped |
- Returns
- NTContinuum instance wrapping pvStructure on success, null otherwise
Definition at line 104 of file ntcontinuum.cpp.
static bool isCompatible(epics::pvData::StructureConstPtr const &structure)
static shared_pointer wrapUnsafe(epics::pvData::PVStructurePtr const &pvStructure)
Creates an NTContinuum wrapping the specified PVStructure, regardless of the latter's compatibility.
No checks are made as to whether the specified PVStructure is compatible with NTContinuum or is non-null.
- Parameters
-
pvStructure | the PVStructure to be wrapped |
- Returns
- NTContinuum instance wrapping pvStructure.
Definition at line 110 of file ntcontinuum.cpp.
112 return shared_pointer(
new NTContinuum(pvStructure));
const std::string epics::nt::NTContinuum::URI |
|
static |
The documentation for this class was generated from the following files: