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_MARKPOINTDB_H_
- #define DATAMANAER_DATABASE_MARKPOINTDB_H_
-
- #include <QString>
- #include <QStringList>
- #include <QSqlDatabase>
- #include <QSqlError>
- #include <QSqlQuery>
- #include <QSqlTableModel>
- #include <QSqlRecord>
- #include <QCoreApplication>
- #include <QDateTime>
- #include <QFile>
- #include <QTextStream>
-
- #include <string>
- #include <vector>
-
- #include "DataManager/Common/MarkPoint.h"
-
- class MarkPointDb {
- public:
- MarkPointDb();
- ~MarkPointDb();
-
- public:
- bool open(QString dbPath);
- void close();
-
- // 获取所有标注点信息
- std::vector<MarkPoint*> 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_
|