Mathew Sutcliffe
7ae453b532
refs #666 Moved interpolator to BlackMisc so xbus doesn't need to link BlackCore.
2016-06-08 23:54:13 +01:00
Mathew Sutcliffe
eecc4d75e9
refs #570 Each CAircraftSituation can have its own time offset, instead of a hardcoded 6 seconds.
2016-06-08 23:54:13 +01:00
Mathew Sutcliffe
000e22246f
Caches: method to query keys of all unsaved values.
2016-06-08 21:39:18 +01:00
Mathew Sutcliffe
183c4d9528
refs #659 Improved fix for spurious zeroing out of timestamps.
2016-06-08 21:39:18 +01:00
Roland Winklmeier
4180a890e4
Write settings, logs, cache, etc. into a installation dependent subfolder
...
refs #668
2016-06-08 21:30:56 +02:00
Klaus Basan
2a99bed0cd
refs #656 , MS review items https://dev.vatsim-germany.org/issues/656#note-4
...
Remove defaultValue where not needed
2016-06-08 18:21:03 +02:00
Mathew Sutcliffe
9bef6854ca
Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get.
2016-06-08 18:21:01 +02:00
Klaus Basan
332d8e5fc8
refs #649 , added caches to model data reader
...
* trait
* const fix distributor list
2016-06-08 18:21:00 +02:00
Klaus Basan
c39882e5db
refs #649 , further fixes and improvements
...
* call of non-virtual function in ctor
* use getCopy
* return number of merged models
* change current simulator in model set loader (fixes infinite loop: change data -> signal -> change data).
2016-06-08 18:20:59 +02:00
Klaus Basan
f02bf0ac0a
refs #649 , skip reading of info objects if only caches are used and emit signals when syncronized from cache
...
(applied after 1st performance fix for cache was ready)
* utility functions to detect if only caches are used
* renamed some functions
* renamed some db flags and added new ones
2016-06-08 18:20:58 +02:00
Klaus Basan
4407c83d8c
Removed registerMetadata from preferences, not needed
2016-06-08 18:20:52 +02:00
Klaus Basan
5352649248
refs #512 , settings for dock widget
2016-06-08 18:20:51 +02:00
Klaus Basan
8673d2eada
refs #649 , use utility function to emit signal
...
(can be better traced in debugger)
2016-06-08 18:20:45 +02:00
Klaus Basan
f58b3bf065
refs #649 , refs #659 use new timestamp function
2016-06-08 18:20:44 +02:00
Klaus Basan
81d88837f9
refs #649 , add.function getSyncronizedValues
...
Normally getValue should transparently sync. But this force me to make the function non-const.
2016-06-08 18:20:42 +02:00
Klaus Basan
2281b2f030
Minor fix for country
2016-06-08 18:20:40 +02:00
Klaus Basan
875b311ede
refs #649 , with #659 deferred caches available
...
* adjustments to use deferred caches
* removed simulator from CAircraftModelSetLoader`s signature as it was not used
* only change current simulator when explicitly set (avoid unintended setting)
* added function to obtain number of elements from model caches
2016-06-08 18:20:39 +02:00
Klaus Basan
bc926e592e
refs #649 , allow to guess used simulator (for default values)
2016-06-08 18:20:37 +02:00
Klaus Basan
e6f0db73c5
refs #656 , using deferred for large caches
2016-06-08 18:20:36 +02:00
Klaus Basan
467f37db7f
refs #649 , added check for changed base URL to database reader
...
(continued #649 after fixes of #664 )
2016-06-08 18:20:35 +02:00
Klaus Basan
c13b9ded55
refs #661 , prepared value objects for distributor sort order
2016-06-08 18:20:33 +02:00
Klaus Basan
0aa916f057
clang: error: default initialization of an object of const type 'const BlackMisc::Aviation::CAirlineIcaoCodeList' without a user-provided default constructor
2016-06-08 18:20:27 +02:00
Klaus Basan
c0fda8687d
refs #661 , improved own model set handling
...
* fixed simulator selector
* added simulator selector to own model set component
* pinned last selections
* fixed model cache to use "getCopy"
2016-06-08 18:20:25 +02:00
Klaus Basan
54b1234f7f
refs #649 , refs #658 fixed includes to new subfolders "db"
...
some style changes in same step
2016-06-08 18:20:23 +02:00
Klaus Basan
5789bdd722
* refs #658 , set user-agent "swift" to swift requests
...
some style changes in same step
2016-06-08 18:20:22 +02:00
Klaus Basan
e5f8a5108f
refs #649 , refs #656 , adjusted flags
...
* removed now outdated enums
* sorted enums (better debugging)
* utility functions
2016-06-08 18:20:19 +02:00
Klaus Basan
0be85cf4fe
refs #649 , do not init to current timestamp follow up
...
Removed inherited constructors since I need to call non-default ITimestampBased constructor
In extra commit so I can replace it when there is a better solution
2016-06-08 03:59:07 +02:00
Klaus Basan
2b49591f1b
refs #649 , do not init to current timestamp
...
* force explicit init (performance/invalid objects)
* allow to find mising timestamps
* style
2016-06-08 03:59:06 +02:00
Klaus Basan
bedcc675be
refs #649 , refs #656 , register metadata for value objects and further adjustments
...
* .pro files for new subdirs
* property index
2016-06-08 03:59:02 +02:00
Klaus Basan
2e4d5fd40e
Added operator for QFlags
2016-06-08 03:59:01 +02:00
Klaus Basan
2df190514f
refs #649 , added flags amd configuration class for caching strategies of DB data
...
(use cache? TTL? ...)
2016-06-08 03:59:00 +02:00
Klaus Basan
7767e53652
refs #649 , refs #656 , move swift DB classes to own namespace/directory
2016-06-08 03:58:59 +02:00
Klaus Basan
f7659e9021
refs #656 , value objects for DB metadata (latest changes)
2016-06-08 03:58:57 +02:00
Mathew Sutcliffe
e67c07f8c5
refs #659 , #657 Fixed a mistake where admitting an uncached value could cause synchronize() to wait forever.
2016-06-06 18:27:52 +01:00
Mathew Sutcliffe
d53237cebc
refs #659 , #657 Fixed mistake in synchronize() where a future would be broken prematurely if async load had not yet started after 1 second timeout.
2016-06-06 18:27:51 +01:00
Mathew Sutcliffe
aefef81cd7
refs #659 Read-only versions of cache value access classes.
2016-06-05 21:18:52 +01:00
Mathew Sutcliffe
a2b0602c53
refs #659 Fixed minor mistakes.
2016-06-05 21:18:49 +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
50de252ff6
refs #659 Fixed a bug where valid timestamps of unloaded values would be lost when writing a new .rev file.
2016-06-04 00:51:01 +01:00
Mathew Sutcliffe
0bb17414ac
refs #659 Cache value with timestamp of 0 should still be loadable.
2016-06-04 00:51:00 +01:00
Mathew Sutcliffe
8377ab2e51
refs #659 Method to get timestamp from revision file without loading value.
2016-06-04 00:50:59 +01:00
Mathew Sutcliffe
5559d1fcc6
refs #659 Use a threadsafe queue for admit(), to avoid a race with synchronize().
2016-06-04 00:50:54 +01:00
Mathew Sutcliffe
f1a9ae5a13
refs #659 Add the method CData::admit() which causes a value with deferred loading to be loaded.
2016-06-04 00:50:47 +01:00
Mathew Sutcliffe
29cea55bc9
refs #659 Allow setting a "deferred" flag in data cache values, causing the value not to be loaded.
2016-05-26 20:03:13 +01:00
Mathew Sutcliffe
4c08d1cc86
refs #659 Use constexpr with isPinned method of data cache traits.
2016-05-26 19:57:22 +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
fa7aa6446b
refs #662 Work around MSVC2015 bug causing failure to detect getLogCategories() in some conditions.
2016-05-25 19:25:52 +01:00
Roland Winklmeier
3e4e49a6b6
Set last modification timestamp when loading X-Plane models
...
This feature was already implemented for MS Flight Simulator model
loaders and missing in the X-Plane model loader.
2016-05-24 16:59:16 +02:00
Roland Winklmeier
602beb0da2
Remove obsolete plugin storage
...
Plugin storage was used before the value cache existed. With the
value cache this is no longer used and can be removed.
refs #660
2016-05-24 16:45:14 +02:00