feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - May 04 2004 : 11:18:46 AM
|
i had a small use for it while writing code to read in a data file.
the datafile holds 14 code lists. each code list is simply pairs of code & value. so i settled on the file format:
CODE_LIST_NAME|<code>|<value>
reading the file one line at a time i was then doing a strcmp on the CODE_LIST_NAME, and adding the code + value to a map. the storage was a map of map's, keyed on enum's, one per code list.
for simplicity my enum's are the same strings as in the data file, so i often wanted the same word both as a string and as an enum.
so this would have been useful while writing this code, but thats about it. |
zen is the art of being at one with the two'ness |
|
|