/** * 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_MARKPOINTDB_H_ #define DATAMANAER_DATABASE_MARKPOINTDB_H_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include "DataManager/Common/MarkPoint.h" class MarkPointDb { public: MarkPointDb(); ~MarkPointDb(); public: bool open(QString dbPath); void close(); // 获取所有标注点信息 std::vector getAllMarkPoint(); // 保存到数据库 void saveMarkPoint(MarkPoint* markPoint); // 删除某一条记录 void deleteMarkPoint(std::string id); // 数据库导出为txt bool exportMarkPoint(std::string strOutputPath); // 清空数据库 void clearMarkPoint(); public: QSqlDatabase _markPointDb; }; #endif // DATAMANAER_DATABASE_MARKPOINTDB_H_