added copy() method back to convert, since it is usually used by external modules; marked as DEPRECATED

This commit is contained in:
Matej Sekoranja
2015-02-17 22:36:28 +01:00
parent a1b89c9a3b
commit 332c2f959b

View File

@@ -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.