Experimental Physics and
| |||||||||||||||||
|
On 11/2/23 04:45, Eusebio Naif
Al-Soliman Fuentes via Tech-talk wrote:
Is should point out that this URL is in the "epics-rip"
organization, which we use as a final resting place for abandoned
code. Not something I would recommend as a starting point for a
new development.
This was a common pain point in early versions of pvDataCPP API.
Certainly for me, which I why I extended the "intermediate"
interface classes PVScalar and PVScalarArray with the getAs() and
putFrom() methods to attempt some conversion. Of course to use
these, you will still need to check if a field as a scalar or
array of scalars. (as opposed to a union, sub-structure, variant,
or arrays of these same) Another common "gotcha" to watch out when looking through these obsolete examples are calls to getSubField() which do not check for a returned NULL An alternate form getSubFieldT() exists which throws an exception instead. With PVXS, I tried to design the API to avoid these common mistakes and others. For a longer discussion, see: https://mdavidsaver.github.io/pvxs/overview.html#comparison-with-pvdatacpp
| ||||||||||||||||
ANJ, 03 Nov 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |