ToolInterface.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #include "Tool.h"
  2. #include "../../VisionPlusSdk/VisionPlusTool.h"
  3. DLL_TOOL_DESC m_Description;
  4. ///////////////////////////////////////////////////////////////////
  5. // 获取工具描述
  6. const DLL_TOOL_DESC& ToolImpl::Description()
  7. {
  8. // 生成dll描述
  9. m_Description.Type = TOOL_TYPE::TOOL_TYPE_STANDARD;
  10. m_Description.strCategory = (CATEGORY_TOOL_HARDWARE);
  11. m_Description.strName = ("SIEMENS_S7");
  12. m_Description.strVersion = ("1.3");
  13. m_Description.strInfo = ("SIEMENS_S7");
  14. return m_Description;
  15. }
  16. /////////////////////////////////////////////////
  17. // 生成默认的接口描述
  18. void ToolImpl::InitDefaultInterfaces(bool withValue)
  19. {
  20. // 接口
  21. // DLL_INF inf;
  22. // inf.strName = ("Int1.in");
  23. // inf.InfDirection = INF_DIRECTION::INF_DIR_IN;
  24. // inf.InfCategory = INF_CATEGORY::INF_CATEGORY_TOOL;
  25. // inf.value.passMode = VALUE_PASS_MODE::PASS_BY_VALUE;
  26. // inf.value.type = VALUE_TYPE::Type_Int;
  27. // if (withValue)
  28. // {
  29. // inf.value.Ptr = (void**)&((ToolDialogImpl*)m_pDlgTool)->m_Value;
  30. // }
  31. //
  32. // m_Interfaces.push_back(inf);
  33. // inf.reset();//////////////////////////////////////////////////////////////////////////
  34. }