#pragma once #ifdef _WIN32 #ifdef WIREROUTINGDLL_EXPORTS // VisualStudio DLL 项目模板会将 _EXPORTS 添加到定义预处理器宏。 #define CONNECTOR_API __declspec(dllexport) // _WIN32 #else #define CONNECTOR_API __declspec(dllimport) #endif #else #define CONNECTOR_API #endif #include "Const.h" #include #include #include #include #include #include #include using namespace std; // 连接器数据类型 struct CONNECTOR_API Connector { string id, name, partnumber; P coord, dir; int ID; // 程序内部ID int bundleNodeID; // 属于的bundleNode Connector(); }; extern Connector CONNECTOR_API connectors[M]; extern int CONNECTOR_API connectorNum;