OTSProgMgr.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #pragma once
  2. #include "afx.h"
  3. #include "otsdataconst.h"
  4. #include "SEMStageData.h"
  5. #include "OTSImageScanParam.h"
  6. #include "OTSImageProcessParam.h"
  7. #include "OTSGeneralParameters.h"
  8. #include "OTSXRayParam.h"
  9. #include "OTSProgMgrParamFile.h"
  10. namespace OTSMODEL {
  11. using namespace OTSDATA;
  12. class __declspec(dllexport) COTSProgMgr
  13. {
  14. public:
  15. COTSProgMgr();
  16. ~COTSProgMgr();
  17. // Read project manager information from project manager file
  18. static COTSProgMgrParamFilePtr COTSProgMgr::LoadInfoFromProgMgrFile(OTS_SOFT_PACKAGE_ID a_nPackId);
  19. // Save project manager information to project manager file
  20. static BOOL SaveInfoToProgMgrFile(OTS_SOFT_PACKAGE_ID a_nPackId,
  21. CSEMStageDataPtr a_pStageData,
  22. COTSGeneralParametersPtr a_pGenParam,
  23. COTSImageScanParamPtr a_pImageScanParam,
  24. COTSImageProcessParamPtr a_pImageProcParam,
  25. COTSXRayParamPtr a_pXRayParam);
  26. // Get stop mode id
  27. static CString GetStopModeIdString(OTS_MEASURE_STOP_MODE a_nStopMode);
  28. // get scan speed
  29. static CString GetScanSpeedString(OTS_THREE_TIES_OPTIONS a_nScanSpeed);
  30. // get image size id
  31. static CString GetImageSizeIdString(OTS_FIVE_TIES_OPTIONS a_nImageSize);
  32. // get image mode id
  33. static CString GetGetImageIdString(OTS_GET_IMAGE_MODE a_nGetImageMode);
  34. // get XRay analysis speed id
  35. static CString GetXRayAnalySpeedIdString(OTS_THREE_TIES_OPTIONS a_nXRayAnalySpeed);
  36. // get XRay scan mode id
  37. static CString GetXRayScanModeIdString(OTS_X_RAY_SCAN_MODE a_nXRayScanMode);
  38. // get XRay search speed id
  39. static CString GetXRaySearchSpeedIdString(OTS_THREE_TIES_OPTIONS a_nXRaySearchSpeed);
  40. // get XAxis direction id
  41. static CString GetXAxisDirectionIdString(OTS_X_AXIS_DIRECTION a_nXAxisDirection);
  42. // get YAxis direction id
  43. static CString GetYAxisDirectionIdString(OTS_Y_AXIS_DIRECTION a_nYAxisDirection);
  44. static CString GetSteelTechIdString(STEEL_TECHNOLOGY a_nSteelTech);
  45. // get measure area shape
  46. static CString GetAreaShapeString(DOMAIN_SHAPE a_nShape);
  47. };
  48. typedef std::shared_ptr<COTSProgMgr> __declspec(dllexport) COTSProgMgrPtr;
  49. }