I have data concerning h/w capabilities.
I intend to use a header file to do #defines, and put it into a class CHardware
along with serialisation function for the variables assigned values from the .h.
So, I get code like...
CHardware hardware;
hardware.serialise();
etc
which isn't a problem.
However, functions in other clesses need to have access to this data as well.
The obvious way is to use the .h file with it's #defines. However, I would
rather the other classes accessed it from a global instance of CHardware. Is
this possible or advisable?
--
Dirk
The Consensus:-
The political party for the new millenium
http://www.theconsensus.org