- 添加模块化HTTP服务器架构,支持路由注册和请求处理 - 实现Creo状态检测API,提供连接状态和模型状态实时监控 - 完成STEP格式模型导出功能,支持装配体和零件导出 - 实现装配体层级结构分析,支持无限深度遍历和组件信息提取 - 添加层级组件安全删除功能,使用抑制策略保持装配体完整性 - 集成WebSocket服务器框架,为实时通信和长操作做准备 - 完善JSON处理、日志记录和认证管理基础设施 - 修复OTK API兼容性问题和内存管理优化 - 解决DeleteFeatures崩溃问题,采用SuppressFeatures替代方案 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
26 lines
630 B
C++
26 lines
630 B
C++
#pragma once
|
|
|
|
// 系统配置常量
|
|
class Config {
|
|
public:
|
|
// 端口配置
|
|
static const int HTTP_PORT = 12345;
|
|
static const int WEBSOCKET_PORT = 12346;
|
|
|
|
// API配置
|
|
static constexpr const char* API_PREFIX = "/api";
|
|
|
|
// 超时配置
|
|
static const int HTTP_TIMEOUT_MS = 30000; // 30秒
|
|
static const int WEBSOCKET_TIMEOUT_MS = 300000; // 5分钟
|
|
|
|
// 缓冲区大小
|
|
static const int BUFFER_SIZE = 4096;
|
|
|
|
// Creo配置
|
|
static const int CREO_CHECK_INTERVAL_MS = 100; // 检查间隔
|
|
|
|
private:
|
|
Config() = delete; // 禁止实例化
|
|
};
|