FlightGear next
NavDataCache.cxx File Reference
#include "config.h"
#include "NavDataCache.hxx"
#include <cstddef>
#include <map>
#include <cstring>
#include <cassert>
#include <stdint.h>
#include <sstream>
#include <mutex>
#include <utility>
#include <vector>
#include "fg_sqlite3.h"
#include <sys/file.h>
#include <unistd.h>
#include <simgear/bucket/newbucket.hxx>
#include <simgear/debug/logstream.hxx>
#include <simgear/io/sg_file.hxx>
#include <simgear/misc/sg_dir.hxx>
#include <simgear/misc/sg_path.hxx>
#include <simgear/misc/strutils.hxx>
#include <simgear/sg_inlines.h>
#include <simgear/structure/exception.hxx>
#include <simgear/threads/SGThread.hxx>
#include "CacheSchema.h"
#include "PositionedOctree.hxx"
#include "fix.hxx"
#include "markerbeacon.hxx"
#include "navrecord.hxx"
#include "poidb.hxx"
#include <ATC/CommStation.hxx>
#include <Airports/airport.hxx>
#include <Airports/apt_loader.hxx>
#include <Airports/gnnode.hxx>
#include <Airports/parking.hxx>
#include <Airports/runways.hxx>
#include <GUI/MessageBox.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <Main/options.hxx>
#include <Main/sentryIntegration.hxx>
#include <Navaids/airways.hxx>
#include <Navaids/fixlist.hxx>
#include <Navaids/navdb.hxx>

Go to the source code of this file.

Classes

class  flightgear::RebuildThread
 Thread encapsulating a cache rebuild. More...
 
class  flightgear::AirportTower
 
class  flightgear::NavDataCache::NavDataCachePrivate
 
class  flightgear::NavDataCache::ThreadedGUISearch::ThreadedGUISearchPrivate
 

Namespaces

namespace  flightgear
 FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information and waypoints.
 

Macros

#define SQLITE_INT64_TYPE   int64_t
 
#define SQLITE_UINT64_TYPE   uint64_t
 
#define SG_NAVCACHE   SG_NAVAID
 
#define POSITIONED_COLS   "guid, type, ident, name, airport, lon, lat, elev_m, octree_node"
 
#define AND_TYPED   "AND type>=?2 AND type <=?3"
 

Typedefs

typedef std::map< PositionedID, FGPositionedRefflightgear::PositionedCache
 

Enumerations

enum  flightgear::RebuildLockStatus { flightgear::RebuildLockFailed = 0 , flightgear::RebuildLockAlreadyLocked , flightgear::RebuildLockOk }
 

Functions

RebuildLockStatus flightgear::accquireRebuildLock ()
 
static void flightgear::releaseRebuildLock ()
 

Variables

static NavDataCacheflightgear::static_instance = NULL
 
const std::string flightgear::static_rebuildLockFile = "fgfs_cache_rebuild.lock"
 
static int flightgear::static_rebuildLockFileFd = -1
 

Macro Definition Documentation

◆ AND_TYPED

#define AND_TYPED   "AND type>=?2 AND type <=?3"

◆ POSITIONED_COLS

#define POSITIONED_COLS   "guid, type, ident, name, airport, lon, lat, elev_m, octree_node"

◆ SG_NAVCACHE

#define SG_NAVCACHE   SG_NAVAID

Definition at line 79 of file NavDataCache.cxx.

◆ SQLITE_INT64_TYPE

#define SQLITE_INT64_TYPE   int64_t

Definition at line 31 of file NavDataCache.cxx.

◆ SQLITE_UINT64_TYPE

#define SQLITE_UINT64_TYPE   uint64_t

Definition at line 32 of file NavDataCache.cxx.