From 332c2f959b41b6fe3e8b0e6b6d4bfc5962dfcdd7 Mon Sep 17 00:00:00 2001 From: Matej Sekoranja Date: Tue, 17 Feb 2015 22:36:28 +0100 Subject: [PATCH] added copy() method back to convert, since it is usually used by external modules; marked as DEPRECATED --- src/pv/convert.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/pv/convert.h b/src/pv/convert.h index 4741bf8..b497caa 100644 --- a/src/pv/convert.h +++ b/src/pv/convert.h @@ -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.