Files
gjm 5993d6bda4 新增 ai.memory 项目记忆目录,供跨机器 CodeBuddy CLI 读取
包含工程概览、构建系统、模块划分、决策记录与约定,
随仓库同步以便在不同电脑上保持上下文连续性。
2026-09-28 15:58:16 +08:00

33 lines
2.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 业务模块划分
模块在顶层 `SourceCode/Code2026/cmakelists.txt` 中通过 `add_custom_module` 注册,并按 FOLDER 分组。
| 分组 (FOLDER) | 模块 | 职责 |
| --- | --- | --- |
| `SH/Global_Libraries` | `MFCCtrl`, `sqliteserver` | MFC 控件库;SQLite 数据服务 |
| `SH/ThunderProof` | `AdsXRx`, `ThunderProof` | 防雷接地设计 |
| `SH/Core` | `AecRxBase`, `CoreImplement`, `CoreLibrary`, `CoreCommand` | 核心基类、自定义实体、主命令 |
| `SH/Pipe` | `PipelineCmd`, `PipelineSpecCmd`, `PIDLineCmd`, `ISODraft`, `PipeHanger`, `PlumbingCmd`, `Pool3dCmd` | 管道/工艺/ISO 图/支吊架/给排水/水池 |
| `SH/Structures` | `ArchCmd`, `ElecCmd`, `HvacCmd`, `SPLDCmd` | 建筑/电气/暖通/道路 |
| `SH/Other` | `shsTK`, `Dimension`, `EarthWormMain`, `EarthWormCmd` | 通用工具、标注、主程序 |
| `TG/*` | `tg_shs/*` | 天正系列库 |
## 关键模块说明
- **CoreLibrary**:定义海量自定义图元实体 `AecDbXxx`(继承 AcDbEntity),是数据模型核心;同时含绘图/分解/布尔等基础能力。
- **AecRxBase**:ARX 基类库(`AecDbEntityBase`、`AecDbCurveBase`、Grip、双击编辑等)。
- **CoreCommand**:主命令集 + MFC 主界面/面板(BIM 面板、AI 助手面板等);**生成两种加密版本**(见 `01-build.md`)。
- **CoreImplement**:仅在 Debug 下有效(自定义实体的实现层)。
- **StartApp**:C# (.NET WinForms) **启动器**,不属于 CMake 构建,保留独立 `StartApp.sln`。
- **tg_shs/**:天正系列(kernal/annotate/blklib/siteplan/pipewire/outdoor/ximage 图像库等)。
## 天正子库(TG)
`tg_shs/` 下主要子目录:`shs_kernal`(wfK)、`shs_twtkernal`(wfKernal)、`shs_GeLib`、`shs_subgeLib`、`shs_annotate`(wfA)、`shs_twtanotate`(wfAnnotate)、`shs_blklib`(wfB)、`shs_siteplan`(wfS)、`shs_pipewire`(wfpipew)、`shs_outdoor`(wfoutdoor)、`shs_ximage/*`(图像库: zlib/tiff/png/jpeg/jasper/...)、`shs_dbf`、`shs_sqlite` 等。
## 顶层自定义构建目标
- `Build_TG`:构建 `wfA wfB wfS wfAnotate wfoutdoor`
- `Build_SH_CORE`:构建 `AecRxBase` + `CoreCommand_TRIAL_YEAR` + `CoreCommand_BAL_REMOTE`
- `Build_SH_GLOBAL`:构建 `MFCCtrl sqliteserver AdsXRx ThunderProof`