You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							748 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							748 B
						
					
					
				| #pragma once | |
|  | |
| #ifdef _WIN32 | |
| #ifdef WIREROUTINGDLL_EXPORTS				// VisualStudio DLL 项目模板会将 <PROJECTNAME>_EXPORTS 添加到定义预处理器宏。 | |
| #define CONNECTOR_API __declspec(dllexport) // _WIN32 | |
| #else | |
| #define CONNECTOR_API __declspec(dllimport) | |
| #endif | |
| #else | |
| #define CONNECTOR_API | |
| #endif | |
|  | |
| #include "Const.h" | |
| #include <cmath> | |
| #include <vector> | |
| #include <queue> | |
| #include <map> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| 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; |