EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Type descriptor vs. enum
From: Kay-Uwe Kasemir <[email protected]>
To: EPICS Core Talk <[email protected]>
Date: Wed, 20 Jul 2005 09:08:42 -0400
Hi:

Where are we with the type enum?
Before the APS meeting,
Ben & Ralph had suggested a type descriptor
similar to what John Sinclair and I
implemented for EDM:

    typedef struct
    {
        // Character of this PV
        enum { real, integer, enumerated, text, special } type;
        // real ... enumerated: bit size
        // text               : max length, 0 for variable length
        // special            : no clue
        size_t size;
        // Human-readable description. Currently supported:
        // "integer:32"
        // "real:64"  for double
        // "enumerated:16"
        // "text:0"
        const char *description;
    } Type;

... with added info for structs and arrays.

At the APS meeting, Marty presented a simple enum:
   int16
   int32
   uint16
   uint32
   array
   struct
   ...
... which would require additional calls in case you find
an array or struct.
He recently tried to nail the contents down,
when Ben raised concerns which I didn't fully understand.

Now what?

Thanks,
Kay


Replies:
Re: Type descriptor vs. enum Doug Murray

Navigate by Date:
Prev: Re: Standard String Kay-Uwe Kasemir
Next: Re: Type descriptor vs. enum Doug Murray
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Standard String Benjamin Franksen
Next: Re: Type descriptor vs. enum Doug Murray
Index: 2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·