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: | Is it possible to know if current field is the last node of parent struct in PVXS |
From: | "Wang, Lin via Tech-talk" <tech-talk at aps.anl.gov> |
To: | tech-talk at aps.anl.gov |
Date: | Thu, 8 Jun 2023 21:53:22 +0800 (GMT+08:00) |
Dear all,
In PVXS, when iterating over the tree structure of pvxs::Value with the approach similar to top() method in the following link,
https://github.com/mdavidsaver/pvxs/blob/master/src/datafmt.cpp
is it possible to know if the current field is the last node of the parent struct with pvxs::impl::FieldDesc or pvxs::impl::FieldStorage?
For example, I am wondering how to check "message" field is the last node of struct "alarm_t" when iterating.
struct "alarm_t" {
int32_t severity = 2
int32_t status = 1
string message = "HIHI"
} alarm
Thanks,
Lin