I'm stuck on a problem using Mikal Hart's Flash library.
I have a bunch of flash tables, storing data associated with multiple possible objects:
FLASH_TABLE(byte, dataforobject1, <lots of data>);
FLASH_TABLE(byte, dataforobject2, <lots of data>);
etc.
what I would like to do is have a class which contains a pointer to a flash table with the appropriate data:
class foo {
public:
<pointer to a flash table>
};
I was hoping to dynamically create an instance of foo, then set the pointer to the appropriate flash table. Then be able to access the data in fooinstance's flash table through that pointer.
Is that possible? I can't include a flash table in the class itself of course, but I can't figure out how to describe a pointer that will let me get at the flash table's data.