added copy() method back to convert, since it is usually used by external modules; marked as DEPRECATED
This commit is contained in:
@@ -50,6 +50,19 @@ class epicsShareClass Convert {
|
||||
public:
|
||||
static ConvertPtr getConvert();
|
||||
|
||||
/**
|
||||
* Copy from a PVField to another PVField.
|
||||
* This calls one on copyScalar, copyArray, copyStructure.
|
||||
* The two arguments must be compatible.
|
||||
* @param from The source.
|
||||
* @param to The destination
|
||||
* @throws std::invalid_argument if the arguments are not compatible.
|
||||
* @DEPRECATED use "to->copy[Unchecked](*from)" instead
|
||||
*/
|
||||
void copy(PVFieldPtr const & from, PVFieldPtr const & to) {
|
||||
to->copy(*from);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a PVField to a string.
|
||||
* If a PVField is a structure or array be prepared for a very long string.
|
||||
|
||||
Reference in New Issue
Block a user