]> pilppa.org Git - lib1wire.git/commit
Refactoring and fixes.
authorMika Laitio <lamikr@pilppa.org>
Sun, 2 Jan 2011 21:15:05 +0000 (23:15 +0200)
committerMika Laitio <lamikr@pilppa.org>
Sun, 2 Jan 2011 21:15:05 +0000 (23:15 +0200)
commit6dea0b59503a71874c4476c05044fff3c5ae26a5
tree3f42ba33ced2ee5f10320232d4a6d7e304435109
parentc4d8504b99fa1e354d15b2b91e4e2797f54ba028
Refactoring and fixes.

- File where to save data item is checked for each file separately. (Old
  versions had a bug that if there were data in save cache from multiple
  days (before and after day change), all data were saved to previous
  days file.
- Data datatype refactoring, values are stored now in double array,
  instead of storing them internally to serialized string.
- Memory leak fixes
- Refactoring
- TODO: Caching objects in Factory class, caching serialized data string
  until values are changed.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
16 files changed:
src/Data.cc
src/Data.hh
src/Date.cc
src/Date.hh
src/DeviceConfig.cc
src/DeviceData.cc
src/Factory.cc
src/W1CounterDevice.cc
src/W1CounterDevice.hh
src/W1Device.cc
src/W1Device.hh
src/W1Store.cc
src/W1Store.hh
src/W1TemperatureSensor.cc
src/W1TemperatureSensor.hh
src_test/test_w1_datalog_write.cc