using new copy API
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
*/
|
||||
|
||||
#include <pv/standardPVField.h>
|
||||
#include <pv/convert.h>
|
||||
|
||||
#define epicsExportSharedSymbols
|
||||
#include <pv/exampleLink.h>
|
||||
@@ -46,8 +45,7 @@ ExampleLink::ExampleLink(
|
||||
PVStructurePtr const & pvStructure)
|
||||
: PVRecord(recordName,pvStructure),
|
||||
providerName(providerName),
|
||||
channelName(channelName),
|
||||
convert(getConvert())
|
||||
channelName(channelName)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -121,7 +119,7 @@ void ExampleLink::process()
|
||||
}
|
||||
alarm.setSeverity(severity);
|
||||
} else {
|
||||
convert->copy(getPVValue,pvValue);
|
||||
pvValue->copyUnchecked(*getPVValue);
|
||||
}
|
||||
alarm.setMessage(status.getMessage());
|
||||
pvAlarm.set(alarm);
|
||||
@@ -160,7 +158,7 @@ void ExampleLink::getDone(
|
||||
BitSetPtr const & bitSet)
|
||||
{
|
||||
this->status = status;
|
||||
convert->copyStructure(pvStructure,getPVStructure);
|
||||
getPVStructure->copyUnchecked(*pvStructure);
|
||||
this->bitSet = bitSet;
|
||||
event.signal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user