/** * File: ImageInfoDb.h * Purpose: provide API that can access the image_info in sqlite file * Author: zhushengming@navinfo.com * Date: 2023/10/23 * All right reserved (c) SWWX Co.Ltd. 2023 */ #ifndef DATAMANAER_DATABASE_POSITIONDB_H_ #define DATAMANAER_DATABASE_POSITIONDB_H_ #include #include #include #include #include #include #include #include #include #include #include #include "EarthViewer/RenderEngine/RenderUtil/MapPoint.h" class PositionDb { public: PositionDb(); ~PositionDb(); public: bool open(QString dbPath); void close(); // 从数据库中获取记录的坐标信息 MapPoint getPosition(); // 保存到数据库 void savePosition(MapPoint mapPoint); // 清空数据库 void clearPosition(); public: QSqlDatabase _posDb; }; #endif // DATAMANAER_DATABASE_POSITIONDB_H_