Mathew Sutcliffe
8e6422d2be
Added assert.
2016-12-13 19:01:57 +01:00
Klaus Basan
bd14fd3746
refs #817 , wrong cache ts fix as discussed
...
https://dev.vatsim-germany.org/issues/817#note-1
2016-12-13 19:01:21 +01:00
Mathew Sutcliffe
3c40c1026e
refs #802 Fixed internal compiler errors with Clang on Windows.
2016-12-13 19:00:43 +01:00
Mathew Sutcliffe
2ab2819867
refs #784 Adjust CValueCache to use the new JSON schema.
2016-12-13 19:00:21 +01:00
Mathew Sutcliffe
8a65a33384
refs #684 , #766 , #776 Support %OwnerName% in cache keys by allowing CCached::m_element to be a dummy
...
and by using a trick with explicit destructor call and placement new to reconstruct CCached when owner's name changes.
2016-10-17 14:37:47 +01:00
Mathew Sutcliffe
898b8e4078
refs #684 Added parametrised cache value key strings.
2016-09-19 16:18:53 +02:00
Mathew Sutcliffe
aeb15ea7be
refs #759 , #761 Track when a cache value notify slot is a member function to avoid duplicate calls.
2016-09-19 16:18:52 +02:00
Mathew Sutcliffe
e01ae2be11
refs #759 Allow cache value notification slot to be changed after construction.
...
Also allow slot to be any type of callable, including member function or lambda.
2016-09-19 16:18:52 +02:00
Mathew Sutcliffe
661254371c
refs #730 Avoid duplicate "empty cache value" debug messages.
2016-08-26 21:04:49 +01:00
Mathew Sutcliffe
98a2b3253a
refs #694 Use human readable names in cache validation messages.
2016-07-31 23:17:46 +01:00
Mathew Sutcliffe
87b2396edb
refs #694 Support human readable names for settings and data cache traits.
2016-07-31 23:15:35 +01:00
Mathew Sutcliffe
61f3655b2c
refs #695 Allow to set a mock root directory for caches, for unit tests.
2016-07-29 17:09:08 +01:00
Mathew Sutcliffe
843620ca3c
Caches: method to save values given a list of keys.
2016-06-30 22:20:32 +01:00
Mathew Sutcliffe
242e041ceb
refs #679 CValueCache local signal relay moved to the point of emission, to tolerate different orders of initialization of application.
2016-06-30 02:06:16 +01:00
Mathew Sutcliffe
903abcf514
refs #679 CApplication shall ensure CSettingsCache relay signal is connected when context is not available.
2016-06-29 17:34:51 +01:00
Klaus Basan
0253da8bf9
Minor improvements
...
* space in message
* removed ns Simulation
* Doxygen
2016-06-29 01:04:44 +02:00
Mathew Sutcliffe
b98752e84e
refs #672 setAndSave should still save even if the value is not actually changed.
2016-06-15 00:30:56 +01:00
Mathew Sutcliffe
58a04ed05c
refs #672 Fixed omission in cache change relay which caused setAndSave to fail to save.
2016-06-15 00:30:56 +01:00
Mathew Sutcliffe
000e22246f
Caches: method to query keys of all unsaved values.
2016-06-08 21:39:18 +01:00
Mathew Sutcliffe
36cb07cb1f
refs #665 Cache will only load and save the values that it really needs to.
2016-06-04 01:15:31 +01:00
Mathew Sutcliffe
d0d100da5e
refs #664 Use timestamps from .rev file instead of the filesystem timestamps of the json files.
2016-05-26 18:03:21 +01:00
Mathew Sutcliffe
4bc8326389
refs #664 Fixed bug in data cache log message creation.
2016-05-26 18:01:42 +01:00
Mathew Sutcliffe
9da53bd58b
refs #646 Added timestamps in data cache load/save log messages.
2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
74f577eec9
refs #646 Using new CStatusMessage construction style in CValueCache.
2016-05-22 15:34:05 +01:00
Mathew Sutcliffe
05b5971caf
refs #646 Log messages when saving and loading data cache values.
2016-05-22 15:34:05 +01:00
Roland Winklmeier
3d7a39ed00
Fix BlackMisc header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #630
2016-05-13 17:05:49 +02:00
Klaus Basan
4b11eb3f83
refs #648 , refs #640 review of MS
...
https://dev.vatsim-germany.org/issues/648#note-5
2016-05-07 20:11:54 +02:00
Klaus Basan
bb6eea6c72
refs #641 , using order in model caches
2016-05-05 20:49:24 +02:00
Mathew Sutcliffe
a492189874
refs #653 Rephrase "uninitialized value" message.
2016-05-05 15:25:07 +01:00
Mathew Sutcliffe
f4eadddee7
refs #644 Add method CCached::save, like setAndSave but using the currently set value.
...
Implemented with a flag in CValueCachePacket to indicate a request to save only.
2016-04-27 19:39:49 +01:00
Klaus Basan
353d96514e
refs #618 , return "good" message for cache setting and added validation log categoriess
2016-03-30 18:22:14 +02:00
Mathew Sutcliffe
b33781717e
refs #624 Remove noexcept from destructors, which are implicitly noexcept.
2016-03-19 21:07:56 +00:00
Klaus Basan
c3722f9198
refs #485 , refs #584 removed include blackmiscfreefunctions.h
2016-03-18 01:07:49 +00:00
Mathew Sutcliffe
c6a038aaa8
refs #601 Simplify syncLoad and rename to synchronize.
...
Now it doesn't return anything, it just causes the next async get() to be synchronized with the latest loaded value.
It does this by hooking into the queue introduced in the previous commit.
2016-03-18 01:07:38 +00:00
Mathew Sutcliffe
899d94ca74
refs #601 Refactor signal/slot connections from CValuePage constructor into virtual method of CValueCache
...
so that derived classes can override the behaviour.
2016-03-18 01:07:27 +00:00
Mathew Sutcliffe
f680cee8ed
refs #601 Slot inhibitor no longer needed, this reverts commit:bc2e0faa.
2016-03-18 01:07:24 +00:00
Mathew Sutcliffe
a47a2681bd
refs #601 Fixed thread safety of get() by adding getCopy().
2016-03-17 19:45:15 +00:00
Klaus Basan
a6840f12a1
refs #601 , #600 CValuePage::getPageFor finds direct children only.
...
Fixes assert "can't have two CCached in the same object referring to the same value".
2016-03-17 19:45:09 +00:00
Klaus Basan
144ba62572
refs #601 , #600 , #485 Status message handling.
...
* follow up of debug session, added failure/success to status message
* return status messages instead of directly logging in functions returning CStatusMessage.
* Ignore empty preformatted messages.
* new log category
2016-03-17 19:45:04 +00:00
Mathew Sutcliffe
f490504f52
refs #601 , #600 Fixed mistake in CValueCache::saveToFiles.
2016-03-07 17:04:41 +00:00
Klaus Basan
83082d3f63
refs #601 , #600 Fixed inverted conditions in CValueCache and CSettingsCache.
2016-03-03 22:32:19 +00:00
Roland Winklmeier
1ea2f34f75
Fix doxygen documentation in src, samples and tests
...
refs #594
2016-02-16 20:01:33 +01:00
Roland Winklmeier
141efdbf43
Fix missing dbus type registration in CValueCachePacket
2016-02-12 21:13:39 +01:00
Mathew Sutcliffe
3175e640bb
refs #581 , #592 , #545 CAtomicFile can support ReadWrite mode by first copying the file.
2016-02-06 19:45:51 +00:00
Mathew Sutcliffe
5a0db69415
refs #581 Bugfix: timestamps of uninitialized cache values should be zero.
2016-02-06 19:45:49 +00:00
Mathew Sutcliffe
bc2e0faa36
refs #581 CValueCachePacket contains an inhibitions list that can be used to disable specific notification slots.
2016-02-06 19:45:47 +00:00
Mathew Sutcliffe
e1b40f54cb
refs #581 Allow setting the timestamp when putting a value in the cache.
2016-02-06 19:45:45 +00:00
Mathew Sutcliffe
97fad301ae
refs #581 Use JSON to store timestamps in data cache revision file.
2016-02-06 19:45:45 +00:00
Mathew Sutcliffe
f9de444a53
refs #545 CAtomicFile used in CValueCache to avoid corruption in case serialization is interrupted.
2016-01-27 23:37:48 +00:00
Mathew Sutcliffe
956d393bb1
refs #545 CSetting<T>::setAndSave to set and save a setting in one step.
2016-01-27 23:37:46 +00:00