2025-06-23 10:41:33 +08:00
|
|
|
#pragma once
|
|
|
|
#include "DAO.h"
|
|
|
|
|
|
|
|
namespace DBPlatformSpace
|
|
|
|
{
|
2025-06-23 18:01:09 +08:00
|
|
|
/// 2D线段几何数据
|
2025-06-23 10:41:33 +08:00
|
|
|
class D2_SegmentDataDAO : public subDBDAO
|
|
|
|
{
|
|
|
|
public:
|
2025-06-23 18:01:09 +08:00
|
|
|
double _endPara; ///<终点参数位置(距线起点的弧长)
|
|
|
|
int _geomID; ///<线段ID(自动生成)
|
|
|
|
int _index; ///<序号(在父数据中顺序)
|
|
|
|
int _parentID; ///<父数据ID
|
|
|
|
int _sectionID; ///<剖面ID
|
|
|
|
int _srcID; ///<线ID
|
|
|
|
double _startPara; ///<起点参数位置(距线起点的弧长)
|
2025-06-23 10:41:33 +08:00
|
|
|
|
|
|
|
ODI D2_SegmentDataDAO();
|
|
|
|
ODI ~D2_SegmentDataDAO();
|
|
|
|
|
|
|
|
|
|
|
|
ODI virtual Mapper* createMapper();
|
|
|
|
ODI static DAO* createObject();
|
|
|
|
|
|
|
|
|
|
|
|
static ODI ResultMsg FindAll(list<D2_SegmentDataDAO*> & pnewlist);
|
|
|
|
|
|
|
|
static ODI ResultMsg FindByID(int id, D2_SegmentDataDAO * &pnewdao);
|
|
|
|
|
|
|
|
static ResultMsg ODI FindByParentID(int parentID, list<D2_SegmentDataDAO*>&newlist);
|
|
|
|
|
|
|
|
static ResultMsg ODI FindBySectionID(int sectionID, list<D2_SegmentDataDAO*>&newlist);
|
|
|
|
|
|
|
|
static ResultMsg ODI FindBySrcID(int srcID, list<D2_SegmentDataDAO*>&newlist);
|
|
|
|
};
|
|
|
|
}
|