Mathew Sutcliffe
9da798e470
Ref T155 Log category for CValuePage.
2017-09-24 19:53:43 +01:00
Klaus Basan
a9198e4f13
Ref T103, Unified naming of directory functions
...
* some started with get/some not (removed get, get is normally used for our getters)
* some used swift, getSwiftXZY dir (removed swift)
* used full word "directory", not dir/directory mixed
2017-09-24 19:49:53 +01:00
Klaus Basan
297ef8ea16
Ref T42, single quote around value
2017-05-05 23:07:36 +01:00
Mathew Sutcliffe
b7f69c6887
refs #937 Resolved clazy warnings: unnecessary memory allocation.
2017-04-19 19:31:39 +01:00
Mathew Sutcliffe
fce1513dae
refs #937 Resolved clazy warnings: unnecessary detaching of containers.
2017-04-19 19:31:38 +01:00
Mathew Sutcliffe
70224bea72
refs #904 Settings JSON files split into arbitrary levels of subfolders, one file per key.
2017-04-17 23:59:00 +01:00
Klaus Basan
888375d294
refs #887 , directories available via CDirectoryUtils/relative paths
...
* relative cache/settings paths are available relativeFilePath
* directories build in CDirectoryUtils
* directory comparison in CDirectoryUtils
* using CFileUtils to concatenate dir paths
* using URL encoded string for normalized directory (as it can be decoded)
2017-03-01 20:51:34 +01:00
Mathew Sutcliffe
a0d3461d9b
refs #884 CValueCache::getAllValues should skip empty values.
2017-02-28 22:34:50 +00:00
Mathew Sutcliffe
c268581954
refs #885 Regenerate revision file from available JSON files.
2017-02-25 02:11:13 +00:00
Mathew Sutcliffe
045b2a9f59
refs #815 When a cache/settings file has errors, back it up before it can be overwritten.
2017-01-10 23:46:38 +00:00
Mathew Sutcliffe
51c3ae8c25
refs #815 Catch and handle CJsonException when calling convertFromJson.
2017-01-10 23:46:36 +00:00
Klaus Basan
3f2fc33b27
Minor change, added ' in error messages
2017-01-10 23:46:08 +00:00
Mathew Sutcliffe
ef04c05831
refs #847 Missing cache directory is not an error, just means there is nothing to load.
2017-01-10 23:45:16 +00:00
Mathew Sutcliffe
34f7acbf8d
refs #847 Fixed apparent copy/paste mistake.
2017-01-10 23:45:15 +00:00
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