EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20232024  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  <20232024 
<== 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




Replies:
Re: Is it possible to know if current field is the last node of parent struct in PVXS Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re:Re: Re:Re: Re:Re: Re:Re: Re:Re: some motor driver 3 questions lynn via Tech-talk
Next: PVA Gateway SegFault when pvcall (or eget) is used as a client Murray, Doug via Tech-talk
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  <20232024 
Navigate by Thread:
Prev: Re: setInteger64Param Gofron, Kazimierz via Tech-talk
Next: Re: Is it possible to know if current field is the last node of parent struct in PVXS Michael Davidsaver via Tech-talk
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  <20232024 
ANJ, 12 Jun 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·