using new copy API

This commit is contained in:
Matej Sekoranja
2015-02-18 10:04:19 +01:00
parent 35dcbf35b3
commit 36dac883f4
8 changed files with 6 additions and 17 deletions

View File

@@ -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();
}