EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: request for count value in record enumerated types
From: Andrew Johnson <[email protected]>
To: Jim Thomas <[email protected]>
Cc: [email protected]
Date: Mon, 04 Nov 2002 15:49:13 -0600
Jim Thomas wrote:

Any chance of adding something like:

<patch snipped>


to the .dbd->.h conversion so that there's a count of menu entries for each
menu?

There might be, but we (Marty and I) are not sure how necessary it really is. Can you explain why you need it, and how you'll work around its absence from the version of Base that you're currently using?


One way to get the number of choices from a menu definition at runtime is something like:

    #include "dbStaticLib.h"
..
    int count = dbFindMenu(pdbbase, "menuName")->nChoice;

My guess is that if we accept it we would add your suggestion to R3.14 but not R3.13. We'd probably also add equivalent code to dbToMenuTypeH.c for uniformity.

We're trying to avoid adding stuff that "might be useful" but which isn't actually needed in practice. I'm also slightly concerned about the generated name clashing with some existing menu that already defines a <menuName>_Count choice, although there aren't any in Base so it probably wouldn't be a problem.

- Andrew
--
"Life is what happens while you're busy making other plans." - John Lennon


References:
request for count value in record enumerated types Jim Thomas

Navigate by Date:
Prev: EPICS Installation problem Vijayram Arya
Next: Advice on VME processor cards for EPICS TYLER, Paul
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: request for count value in record enumerated types Jim Thomas
Next: EPICS Installation problem Vijayram Arya
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·