1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Get the type of a PV in C++ API |
From: | Eusebio Naif Al-Soliman Fuentes via Tech-talk <tech-talk at aps.anl.gov> |
To: | Tech Talk <tech-talk at aps.anl.gov> |
Date: | Thu, 02 Nov 2023 12:45:42 +0100 |
Hello everybody.
I have a small question. In the pvaClient library for C++ (https://docs.epics-controls.org/projects/pvaclient-cpp/en/latest/) there are many examples to get the value and other fields of a PV.
However, in order to get the value as a double, like in this example https://github.com/epics-rip/exampleCPP/blob/master/exampleClient/src/examplePvaClientGet.cpp, you have to previously know that the PV value is a double. Is there any method to get the type (int, long, double...) of the value field? Something like ->getType().
Thanks in advance.
--
Saludos/Best regards University of Granada Eusebio Naif Al-Soliman Fuentes eunaif at correo.ugr.es |