I am writing an Android application that reads data from legacy devices, and presents it to the user. Much of this data consists of 16-bit enumerations that represent things like device information, status, errors, etc... There are over 100 of these enumerations.
In the past, the user would have to look up the returned value in a large binder of tables. For example, let's say the device returns an error as 0xFE04. There's some row in some table like this...
+--------+-------------------+------------------+----------+--------------------+
| Code | Short Description | Long Description | Solution | Alternate Solution |
+--------+-------------------+------------------+----------+--------------------+
| 0xFE04 | blah | blahblah | blah | blahblah |
+--------+-------------------+------------------+----------+--------------------+
How can I store these tables in code so that I can return all this information to the user efficiently & effectively.
This may have to be ported in the future for iOS or even windows, so a more language-independent solution is preferred.
.
stackoverflow.comm
No comments:
Post a Comment