From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b85c1b84f840dc22 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news2.arglkargh.de!news.tornevall.net!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: I need a little help - it's been a long time - with enumeration type and for use representation Date: Fri, 13 Nov 2009 11:46:08 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <7495d29e-0361-4eba-9e22-a770ae50f113@d5g2000yqm.googlegroups.com> NNTP-Posting-Host: 6d4415e52f31678e78379ac2eb646068 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: f2a00d801a94256bc245f30b234fd2b6 X-Complaints-To: abuse@tornevall.net X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <7495d29e-0361-4eba-9e22-a770ae50f113@d5g2000yqm.googlegroups.com> X-Validate-Post: http://news.tornevall.net/validate.php?trace=f2a00d801a94256bc245f30b234fd2b6 X-SpeedUI: 1738 X-Complaints-Italiano: Parlo la lingua non � italiano User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) X-Posting-User: 9b22bfe2855937f9b3faeec7cfc91295 Xref: g2news1.google.com comp.lang.ada:8090 Date: 2009-11-13T11:46:08-07:00 List-Id: Harry Tucker wrote: > > I have a piece of data which represents a enumeration as a hexadecimal > value. It is a bit field but I see the data most usefull as an > enumeration. for example in the CSV file the data is represented as > '0x1'. So I defined the enum as: Since your input is text, not binary, a non-default representation doesn't really buy you anything. You'll have to parse and interpret the text, as others have explained. -- Jeff Carter "Son of a window-dresser." Monty Python & the Holy Grail 12