Commit Graph

72 Commits

Author SHA1 Message Date
Klaus Basan
b107617f73 Ref T148, formatting/renaming 2017-09-24 19:54:10 +01:00
Klaus Basan
961f47b700 Ref T148, renamed/added hasConnectedSwiftDb / canConnectSwiftDb 2017-09-24 19:54:07 +01:00
Klaus Basan
d995bcf59c Ref T126, fixed too early timeout
* use timeout timestamp
* used approch with trials was wrong, as number of trials also depends on number of reader
2017-09-24 19:52:58 +01:00
Klaus Basan
f694ded5f2 Preparation of T126: Minor tweaks, renaming and formatting of InfoDataReader
* unified member access (this->m_xy => m_xy)
* set object name of readers
* waitForSharedInfoObjectsThenRead (not just waiting, also reading afterwards)
2017-09-24 19:52:56 +01:00
Klaus Basan
5a67276fbb Ref T117, utility functions for reader
* isDbModelEqualForPublishing
* getModelForDbKey(int
2017-09-24 19:52:16 +01:00
Klaus Basan
ccdfa8e12f Ref T111, allow to search for location in coordinate form 2017-09-24 19:52:07 +01:00
Klaus Basan
b1295cd457 Ref T111, added utility functions used for swift plugin (dummy driver)
* new reader functions
* plugin info
2017-09-24 19:51:04 +01:00
Klaus Basan
880cedec5d Some reader improvements
* Log when VATSIM status file has been read
* fix: read VATSIM status file after initReaders completes
* some private slots -> normal private functions
* removed copy/paste error illegalIcaoCodes

follow up of Ref T105
2017-09-24 19:50:19 +01:00
Klaus Basan
5270dce266 Ref T26, telephony designator and manufacturers from web service 2017-09-24 19:49:05 +01:00
Klaus Basan
65a716a61d Ref T28, renaming to getLatestDbEntityTimestamp 2017-05-05 23:07:49 +01:00
Klaus Basan
0696eed04f Ref T24, adjusted web data services
* no longer using header timestamps, removed functions
* renamed functions to distinguish shared/DB info data
* added 2nd reader m_sharedInfoDataReader
2017-04-20 20:41:29 +02:00
Klaus Basan
485c95101b Ref T24, preparations to read dbinfo.json for shared files
This will replace http header file timestamps
* read function in info reader has retrieval mode flag, unused parameters removed
* waitForDbInfoObjects/getDbInfoDataReader (added "Db"), there will be a 2nd reader
* CWebReaderFlags::DbInfoDataReader (added "Db")
* removed ps_read, only read (public)
2017-04-20 20:38:06 +02:00
Klaus Basan
90396e012f refs #820, get all getAircraftIcaoCodesForDesignator 2016-12-13 19:01:45 +01:00
Klaus Basan
fc3ac8b323 refs #787, MS review items + discussion on slack
https://dev.vatsim-germany.org/issues/787#note-4
2016-12-13 19:01:39 +01:00
Klaus Basan
4ed2b82630 refs #787, support for headers / shared files in web data services
* allow to load shared files
* utility functions for timestamps
* some functions renamed
2016-12-13 19:01:28 +01:00
Klaus Basan
1f57f7ca61 refs #812, use individual signals for web services
* trigger other operations directly when data have been read (do not wait for "all data read")
* avoid retriggering for no reason
* new entity flag for all data req. for model matching
2016-12-13 19:01:16 +01:00
Klaus Basan
b6a59decc7 refs #811, get count in readers/services 2016-12-13 19:01:14 +01:00
Klaus Basan
04a5a74dc3 ref #803, do not use synchronize from another thread
* changed info component to use admit
* removed web service synchronize
2016-12-13 19:00:10 +01:00
Klaus Basan
ff394f4785 refs #787, support for Header / shared files in database reader / web services
* split JsonDatastoreResponse in subclass HeaderResponse
* support for request newtwork request duration ("started") in application
* removed ps_setupChanged because it was unused
2016-12-06 09:35:02 +01:00
Klaus Basan
4f447cd408 refs #791, further improve reverse lookup
* utility function if web data are already available
* moved setOwnAircraftModel as reverseLookupAndUpdateOwnAircraftModel to CSimulatorCommon
* reverseLookupAndUpdateOwnAircraftModel also handles async lookup when data are not yet available
* removed context ps_allSwiftWebDataRead reverse lookup, done in CSimulatorCommon now
2016-12-06 09:34:43 +01:00
Klaus Basan
de7821ff86 refs #781, use admit in database reader
* added amit functions in readers
* cacheHasChanged functions (needed because data of caches are loaded in background)
* pinned small caches
* CDatabaseReader::readInBackgroundThread uses admitCaches now
2016-12-06 09:34:35 +01:00
Klaus Basan
c57a9e2e5b Fixed reload all DB data issue reported by MS on slack
* use triggerReloadFromDb
* improved documentation

MS report:
`AllDbEntities` should be `AllDbEntitiesNoInfoObjects` in `CDataInfoAreaComponent::requestUpdateOfAllDbData`?
Otherwise it triggers assert `!whatToRead.testFlag(CEntityFlags::InfoObjectEntity)` in `CWebDataServices::triggerRead`.
2016-12-06 09:34:32 +01:00
Klaus Basan
1678ca8919 refs #780, improved model string completion
* added signatures for completer string (when send via context size matters)
* support of all instaled models in completer
* added BLACKMISC_EXPORT in model cache classes
2016-12-06 09:34:31 +01:00
Klaus Basan
9d51ee5bc8 refs #748, further airport from DB follow up fixes
* Ignore mode, not all applications need to load everything (mapping tool no airports)
* removed signal in airport reader which is already in base class
* added "virtual" keyword
* fixed another syncronize typo
* added allDbEntiiesUsed() to also reflect the config (ignore flag)
* ensure allSwiftDbData are signaled correctly even with ignore flag
2016-12-06 09:33:54 +01:00
Klaus Basan
4c6bb6e3fd refs #768, return DB keys as set 2016-12-06 09:33:13 +01:00
Michał Garapich
a4b5b28cc1 refs #748 Move CAirportDataReader to the db/ subdirectory
* BlackCore::CAirportDataReader -> BlackCore::Db::CAirportDataReader
* fix typo in CDatabaseReader
2016-10-17 14:34:30 +01:00
Michał Garapich
30e3ce2dbf refs #748 Make completers also work for CFlightPlanComponent 2016-10-17 14:34:29 +01:00
Klaus Basan
74173a734e refs #768, fixed reverse lookup on login page (model changes in SIM are reflected here)
* use reverse lookup function
* complete model when web services have read the DB data (before that no reverse lookup is possible)
* use new model changed signature

Remark: Temp adjustement when signal allSwiftDbDataRead is sent. As soon #748 is ready needs to be changed to include airport entities
2016-10-17 14:34:17 +01:00
Klaus Basan
0846a8773a refs #755, validation also for "distributors from DB"
* validation now in webdataservices (so it can check against DB data)
* utility functions
2016-09-19 16:18:50 +02:00
Klaus Basan
1d1815de43 refs #748, add airport completers
* in flight plan
* in login
* utility functions
2016-08-28 23:26:11 +02:00
Klaus Basan
f506d780b9 refs #745, get temp. livery from web services 2016-08-27 14:31:41 +02:00
Klaus Basan
1167735897 refs #720, adjusted exposed functions to new naming
* some minor formatting
* use the new condolidation functions
2016-08-26 21:04:23 +01:00
Michał Garapich
1032b2f506 refs #650 Implement CAirportDataReader
* Add BlackCore::CAirportDataReader class
* Add cache traits for airport list
* Add corresponding WebReaderFlag
* Add CAirport::convertFromDatabaseJson()
* Add CApplication::headerFromNetwork() to handle HTTP HEAD method
2016-08-26 00:18:41 +02:00
Klaus Basan
31b03fe2e1 refs #712, signals when all DB data are read / the web services are started
(useful for GUI as it can be used to init only when data are available)
2016-07-28 21:08:24 +02:00
Klaus Basan
8278fb262e Streamlined readInBackground as result of #709 2016-07-28 21:08:22 +02:00
Klaus Basan
4b1179cfd8 refs #709, allow to read directly from DB (bypassing caches)
* allow to reload
* copying array size of response for debugging purposes
2016-07-28 21:08:17 +02:00
Klaus Basan
6f840f4fd6 refs #709, access to timestamp/count per entity
* utility functions
* made protected functions public
2016-07-28 21:08:14 +02:00
Klaus Basan
c7d89c7b2c refs #707, allow to resolve airline by callsign directly in airline ICAO list 2016-07-14 18:49:21 +02:00
Klaus Basan
64cee7fba8 refs #706, callsign to airline plus testing resulting in multiple smaller improvements (refs #707)
* added functions to callsign / callsign list
* used in aircraft matcher
* also resolve std.livery in matcher
* also allow to find aircraft ICAO designator ending with string (e.g. 737 for B737)
* renamed CAircraftMatcher::reverseLookup -> CAircraftMatcher::reverselLookupModel
* threadsafe isInRange (CAIrspaceMonitor)
2016-07-14 18:49:12 +02:00
Roland Winklmeier
28ec2be1ca Change MetarSet to MetarList
CMetarSet was implemented as a collection. This only makes sense for
values which have one member variable only or hardly ever change. METARs
often change and therefore a collection didn't make much sense.
Additional profiling showed that a sequence has better algorithmic
performance.

refs #689
2016-07-11 21:33:33 +02:00
Klaus Basan
0939b1f08f refs #687, further performance improvements
* avoid redundant reads by excluding entities which will be periodically updated
* restart timers when data are received, avoid overlapping requests
2016-06-29 15:38:07 +02:00
Klaus Basan
488d437a2a #refs 686, used settings in readers
* moved threaded reader to BlackCore (settings are normally BlackCore aware)
* created ns/subfolder VATSIM
* prepared settings for the VATSIM readers
2016-06-29 01:04:41 +02:00
Klaus Basan
2dec348c8c Formatting from refs #678 2016-06-25 16:00:36 +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
954ddfb2e7 refs #649, refs #656, using caches in ICAO data reader
* access to info data reader (get DB metadata)
* adjusted database base class to support caches, info objects
* moved classes to subdir
2016-06-08 18:20:21 +02:00
Roland Winklmeier
0326d1fc81 Fix swiftguistd header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-20 01:31:53 +02:00
Roland Winklmeier
d0313c7524 Style 2016-05-20 01:31:26 +02:00
Roland Winklmeier
933271b828 Fix BlackCore header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-13 17:06:00 +02:00
Roland Winklmeier
d379f14133 Introduce build config template buildconfig.h.in
refs #625
2016-03-31 17:12:01 +02:00
Klaus Basan
c36028ca9c refs #485, Restricted<T> 2016-03-18 01:10:35 +00:00