baray98
13th September 2007, 23:34
i have some compress data from some number of sensors and I want to decompress it and display it to the user, the dispaying (plotting ) an uncompressed data class is done ,now handling the compress data is my problem. how can i approach in an object oriented way ? here is what i think but i don't know how to implement it or is it possible to implement this architecture
Class Sensor <--- base class of a sensor
Class Samples <--- this should contain variable number of Sensor (class)
Class Frame <-- this should contain a fix number of Samples (class)
so when i use frame class ill give it pointer to my compressed data
i.e.
new Frame(&buffer); the class sample will decode/uncompress his part of the buffer then the base class sensor will decode his part of the buffer
is there any other good way to it ?
baray98
Class Sensor <--- base class of a sensor
Class Samples <--- this should contain variable number of Sensor (class)
Class Frame <-- this should contain a fix number of Samples (class)
so when i use frame class ill give it pointer to my compressed data
i.e.
new Frame(&buffer); the class sample will decode/uncompress his part of the buffer then the base class sensor will decode his part of the buffer
is there any other good way to it ?
baray98