FlightGear next
|
Public Types | |
typedef std::vector< sqlite3_stmt_ptr > | StmtVec |
Public Member Functions | |
NavDataCachePrivate (const SGPath &p, NavDataCache *o) | |
~NavDataCachePrivate () | |
void | init () |
void | close () |
void | checkCacheFile () |
bool | isCachedFileModified (const SGPath &path, bool verbose) |
void | findDatFiles (NavDataCache::DatFileType datFileType) |
bool | areDatFilesModified (NavDataCache::DatFileType datFileType, bool verbose) |
sqlite3_stmt_ptr | prepareSQL (const std::string &sql) |
void | runSQL (const string &sql) |
sqlite3_stmt_ptr | prepare (const string &sql) |
void | finalize (sqlite3_stmt_ptr s) |
void | reset (sqlite3_stmt_ptr stmt) |
bool | execSelect (sqlite3_stmt_ptr stmt) |
bool | stepSelect (sqlite3_stmt_ptr stmt) |
void | execSelect1 (sqlite3_stmt_ptr stmt) |
sqlite3_int64 | execInsert (sqlite3_stmt_ptr stmt) |
void | execUpdate (sqlite3_stmt_ptr stmt) |
void | initTables () |
void | initTemporaryTables () |
void | prepareQueries () |
void | writeIntProperty (const string &key, int value) |
FGPositioned * | loadById (sqlite_int64 rowId, sqlite3_int64 &aptId) |
FGAirport * | loadAirport (sqlite_int64 rowId, FGPositioned::Type ty, const string &id, const string &name, const SGGeod &pos) |
FGRunwayBase * | loadRunway (sqlite3_int64 rowId, FGPositioned::Type ty, const string &id, const SGGeod &pos, PositionedID apt) |
CommStation * | loadComm (sqlite3_int64 rowId, FGPositioned::Type ty, const string &id, const string &name, const SGGeod &pos, PositionedID airport) |
FGPositioned * | loadNav (sqlite3_int64 rowId, FGPositioned::Type ty, const string &id, const string &name, const SGGeod &pos) |
PositionedID | insertPositioned (FGPositioned::Type ty, const string &ident, const string &name, const SGGeod &pos, PositionedID apt, bool spatialIndex) |
PositionedID | insertTemporaryPositioned (PositionedID guid, FGPositioned::Type ty, const string &ident, const string &name, const SGGeod &pos, bool spatialIndex) |
FGPositionedList | findAllByString (const string &s, const string &column, FGPositioned::Filter *filter, bool exact) |
PositionedIDVec | selectIds (sqlite3_stmt_ptr query) |
double | runwayLengthFt (PositionedID rwy) |
void | flushDeferredOctreeUpdates () |
void | removePositioned (PositionedID rowid) |
Public Attributes | |
NavDataCache * | outer |
sqlite3 * | db |
SGPath | path |
bool | readOnly |
bool | abandonCache = false |
PositionedCache | cache |
the actual cache of ID -> instances. | |
unsigned int | cacheHits |
unsigned int | cacheMisses |
unsigned int | transactionLevel |
record the levels of open transaction objects we have | |
bool | transactionAborted |
sqlite3_stmt_ptr | beginTransactionStmt |
sqlite3_stmt_ptr | commitTransactionStmt |
sqlite3_stmt_ptr | rollbackTransactionStmt |
std::map< DatFileType, NavDataCache::DatFilesGroupInfo > | datFilesInfo |
SGPath | metarDatPath |
SGPath | carrierDatPath |
SGPath | airwayDatPath |
sqlite3_stmt_ptr | readPropertyQuery |
sqlite3_stmt_ptr | writePropertyQuery |
sqlite3_stmt_ptr | stampFileCache |
sqlite3_stmt_ptr | statCacheCheck |
sqlite3_stmt_ptr | loadAirportStmt |
sqlite3_stmt_ptr | loadCommStation |
sqlite3_stmt_ptr | loadPositioned |
sqlite3_stmt_ptr | loadNavaid |
sqlite3_stmt_ptr | loadRunwayStmt |
sqlite3_stmt_ptr | writePropertyMulti |
sqlite3_stmt_ptr | clearProperty |
sqlite3_stmt_ptr | insertPositionedQuery |
sqlite3_stmt_ptr | insertAirport |
sqlite3_stmt_ptr | insertTower |
sqlite3_stmt_ptr | insertRunway |
sqlite3_stmt_ptr | insertCommStation |
sqlite3_stmt_ptr | insertNavaid |
sqlite3_stmt_ptr | insertTempPosQuery |
sqlite3_stmt_ptr | setAirportMetar |
sqlite3_stmt_ptr | setRunwayReciprocal |
sqlite3_stmt_ptr | setRunwayILS |
sqlite3_stmt_ptr | setNavaidColocated |
sqlite3_stmt_ptr | updatePosition |
sqlite3_stmt_ptr | updateTempPos |
sqlite3_stmt_ptr | removePositionedQuery |
sqlite3_stmt_ptr | removeTempPosQuery |
sqlite3_stmt_ptr | findClosestWithIdent |
sqlite3_stmt_ptr | getOctreeChildren |
sqlite3_stmt_ptr | insertOctree |
sqlite3_stmt_ptr | updateOctreeChildren |
sqlite3_stmt_ptr | getOctreeLeafChildren |
sqlite3_stmt_ptr | searchAirports |
sqlite3_stmt_ptr | getAllAirports |
sqlite3_stmt_ptr | findCommByFreq |
sqlite3_stmt_ptr | findNavsByFreq |
sqlite3_stmt_ptr | findNavsByFreqNoPos |
sqlite3_stmt_ptr | findNavaidForRunway |
sqlite3_stmt_ptr | getAirportItems |
sqlite3_stmt_ptr | getAirportItemByIdent |
sqlite3_stmt_ptr | findAirportRunway |
sqlite3_stmt_ptr | findILS |
sqlite3_stmt_ptr | runwayLengthFtQuery |
sqlite3_stmt_ptr | findAirway |
sqlite3_stmt_ptr | findAirwayNet |
sqlite3_stmt_ptr | insertAirwayEdge |
sqlite3_stmt_ptr | isPosInAirway |
sqlite3_stmt_ptr | airwayEdgesFrom |
sqlite3_stmt_ptr | airwayEdgesTo |
sqlite3_stmt_ptr | insertAirway |
sqlite3_stmt_ptr | airwayEdges |
sqlite3_stmt_ptr | loadAirway |
std::map< string, sqlite3_stmt_ptr > | findByStringDict |
StmtVec | prepared |
std::set< Octree::Branch * > | deferredOctreeUpdates |
std::unique_ptr< RebuildThread > | rebuilder |
PositionedID | nextTransientId = -1000 |
Definition at line 264 of file NavDataCache.cxx.
typedef std::vector<sqlite3_stmt_ptr> flightgear::NavDataCache::NavDataCachePrivate::StmtVec |
Definition at line 1044 of file NavDataCache.cxx.
|
inline |
Definition at line 267 of file NavDataCache.cxx.
|
inline |
Definition at line 279 of file NavDataCache.cxx.
bool flightgear::NavDataCache::NavDataCachePrivate::areDatFilesModified | ( | NavDataCache::DatFileType | datFileType, |
bool | verbose ) |
Definition at line 1253 of file NavDataCache.cxx.
|
inline |
Definition at line 365 of file NavDataCache.cxx.
|
inline |
Definition at line 356 of file NavDataCache.cxx.
|
inline |
Definition at line 528 of file NavDataCache.cxx.
|
inline |
Definition at line 468 of file NavDataCache.cxx.
|
inline |
Definition at line 519 of file NavDataCache.cxx.
|
inline |
Definition at line 536 of file NavDataCache.cxx.
|
inline |
Definition at line 447 of file NavDataCache.cxx.
|
inline |
Definition at line 894 of file NavDataCache.cxx.
void flightgear::NavDataCache::NavDataCachePrivate::findDatFiles | ( | NavDataCache::DatFileType | datFileType | ) |
Definition at line 1185 of file NavDataCache.cxx.
|
inline |
Definition at line 960 of file NavDataCache.cxx.
|
inline |
Definition at line 284 of file NavDataCache.cxx.
|
inline |
Definition at line 542 of file NavDataCache.cxx.
|
inline |
Definition at line 554 of file NavDataCache.cxx.
|
inline |
Definition at line 831 of file NavDataCache.cxx.
|
inline |
Definition at line 865 of file NavDataCache.cxx.
bool flightgear::NavDataCache::NavDataCachePrivate::isCachedFileModified | ( | const SGPath & | path, |
bool | verbose ) |
Definition at line 1138 of file NavDataCache.cxx.
|
inline |
Definition at line 725 of file NavDataCache.cxx.
FGPositioned * flightgear::NavDataCache::NavDataCachePrivate::loadById | ( | sqlite_int64 | rowId, |
sqlite3_int64 & | aptId ) |
Definition at line 1060 of file NavDataCache.cxx.
|
inline |
Definition at line 777 of file NavDataCache.cxx.
|
inline |
Definition at line 796 of file NavDataCache.cxx.
|
inline |
Definition at line 739 of file NavDataCache.cxx.
|
inline |
Definition at line 440 of file NavDataCache.cxx.
|
inline |
Definition at line 566 of file NavDataCache.cxx.
|
inline |
Definition at line 392 of file NavDataCache.cxx.
|
inline |
Definition at line 971 of file NavDataCache.cxx.
|
inline |
Definition at line 458 of file NavDataCache.cxx.
|
inline |
Definition at line 427 of file NavDataCache.cxx.
|
inline |
Definition at line 951 of file NavDataCache.cxx.
|
inline |
Definition at line 941 of file NavDataCache.cxx.
|
inline |
Definition at line 473 of file NavDataCache.cxx.
|
inline |
Definition at line 710 of file NavDataCache.cxx.
bool flightgear::NavDataCache::NavDataCachePrivate::abandonCache = false |
Definition at line 986 of file NavDataCache.cxx.
SGPath flightgear::NavDataCache::NavDataCachePrivate::airwayDatPath |
Definition at line 1004 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::airwayEdges |
Definition at line 1036 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::airwayEdgesFrom |
Definition at line 1035 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::airwayEdgesTo |
Definition at line 1035 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::beginTransactionStmt |
Definition at line 1000 of file NavDataCache.cxx.
PositionedCache flightgear::NavDataCache::NavDataCachePrivate::cache |
the actual cache of ID -> instances.
This holds an owning reference, so once items are in the cache they will never be deleted until the cache drops its reference
Definition at line 992 of file NavDataCache.cxx.
unsigned int flightgear::NavDataCache::NavDataCachePrivate::cacheHits |
Definition at line 993 of file NavDataCache.cxx.
unsigned int flightgear::NavDataCache::NavDataCachePrivate::cacheMisses |
Definition at line 993 of file NavDataCache.cxx.
SGPath flightgear::NavDataCache::NavDataCachePrivate::carrierDatPath |
Definition at line 1004 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::clearProperty |
Definition at line 1010 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::commitTransactionStmt |
Definition at line 1000 of file NavDataCache.cxx.
std::map<DatFileType, NavDataCache::DatFilesGroupInfo> flightgear::NavDataCache::NavDataCachePrivate::datFilesInfo |
Definition at line 1002 of file NavDataCache.cxx.
sqlite3* flightgear::NavDataCache::NavDataCachePrivate::db |
Definition at line 980 of file NavDataCache.cxx.
std::set<Octree::Branch*> flightgear::NavDataCache::NavDataCachePrivate::deferredOctreeUpdates |
Definition at line 1047 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findAirportRunway |
Definition at line 1028 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findAirway |
Definition at line 1034 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findAirwayNet |
Definition at line 1034 of file NavDataCache.cxx.
std::map<string, sqlite3_stmt_ptr> flightgear::NavDataCache::NavDataCachePrivate::findByStringDict |
Definition at line 1042 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findClosestWithIdent |
Definition at line 1019 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findCommByFreq |
Definition at line 1025 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findILS |
Definition at line 1029 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findNavaidForRunway |
Definition at line 1026 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findNavsByFreq |
Definition at line 1025 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::findNavsByFreqNoPos |
Definition at line 1026 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::getAirportItemByIdent |
Definition at line 1027 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::getAirportItems |
Definition at line 1027 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::getAllAirports |
Definition at line 1024 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::getOctreeChildren |
Definition at line 1021 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::getOctreeLeafChildren |
Definition at line 1022 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertAirport |
Definition at line 1012 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertAirway |
Definition at line 1036 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertAirwayEdge |
Definition at line 1034 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertCommStation |
Definition at line 1013 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertNavaid |
Definition at line 1013 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertOctree |
Definition at line 1021 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertPositionedQuery |
Definition at line 1012 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertRunway |
Definition at line 1012 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertTempPosQuery |
Definition at line 1014 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::insertTower |
Definition at line 1012 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::isPosInAirway |
Definition at line 1035 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::loadAirportStmt |
Definition at line 1008 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::loadAirway |
Definition at line 1037 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::loadCommStation |
Definition at line 1008 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::loadNavaid |
Definition at line 1008 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::loadPositioned |
Definition at line 1008 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::loadRunwayStmt |
Definition at line 1009 of file NavDataCache.cxx.
SGPath flightgear::NavDataCache::NavDataCachePrivate::metarDatPath |
Definition at line 1003 of file NavDataCache.cxx.
PositionedID flightgear::NavDataCache::NavDataCachePrivate::nextTransientId = -1000 |
Definition at line 1055 of file NavDataCache.cxx.
NavDataCache* flightgear::NavDataCache::NavDataCachePrivate::outer |
Definition at line 979 of file NavDataCache.cxx.
SGPath flightgear::NavDataCache::NavDataCachePrivate::path |
Definition at line 981 of file NavDataCache.cxx.
StmtVec flightgear::NavDataCache::NavDataCachePrivate::prepared |
Definition at line 1045 of file NavDataCache.cxx.
bool flightgear::NavDataCache::NavDataCachePrivate::readOnly |
Definition at line 982 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::readPropertyQuery |
Definition at line 1006 of file NavDataCache.cxx.
std::unique_ptr<RebuildThread> flightgear::NavDataCache::NavDataCachePrivate::rebuilder |
Definition at line 1051 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::removePositionedQuery |
Definition at line 1017 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::removeTempPosQuery |
Definition at line 1017 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::rollbackTransactionStmt |
Definition at line 1000 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::runwayLengthFtQuery |
Definition at line 1031 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::searchAirports |
Definition at line 1024 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::setAirportMetar |
Definition at line 1015 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::setNavaidColocated |
Definition at line 1015 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::setRunwayILS |
Definition at line 1015 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::setRunwayReciprocal |
Definition at line 1015 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::stampFileCache |
Definition at line 1007 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::statCacheCheck |
Definition at line 1007 of file NavDataCache.cxx.
bool flightgear::NavDataCache::NavDataCachePrivate::transactionAborted |
Definition at line 999 of file NavDataCache.cxx.
unsigned int flightgear::NavDataCache::NavDataCachePrivate::transactionLevel |
record the levels of open transaction objects we have
Definition at line 998 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::updateOctreeChildren |
Definition at line 1021 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::updatePosition |
Definition at line 1016 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::updateTempPos |
Definition at line 1016 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::writePropertyMulti |
Definition at line 1010 of file NavDataCache.cxx.
sqlite3_stmt_ptr flightgear::NavDataCache::NavDataCachePrivate::writePropertyQuery |
Definition at line 1006 of file NavDataCache.cxx.