You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- /**
- * 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 <QString>
- #include <QStringList>
- #include <QSqlDatabase>
- #include <QSqlError>
- #include <QSqlQuery>
- #include <QSqlTableModel>
- #include <QSqlRecord>
- #include <QCoreApplication>
- #include <QDateTime>
-
- #include <string>
- #include <vector>
-
- #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_
|