12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #pragma once
- #include <QObject>
- #include <vector>
- #include <map>
- using namespace std;
- typedef struct _tagInf_HO
- {
- QString strName; //
- QString strBase_type;
- QString strDimension;
- QString strSem_type;
- HObject ho_Object;
- } H_INTERFACE_HOBJECT;
- typedef struct _tagInf_HT
- {
- QString strName; //
- QString strBase_type;
- QString strDimension;
- QString strSem_type;
- HTuple hv_HTuple;
- } H_INTERFACE_HTUPLE;
- typedef struct _tagH_Function
- {
- QString strName; //
- QString strFunctionName;
- // 输入型的图形变量 (数据类型为 HObject)
- QVector<H_INTERFACE_HOBJECT> Interfaces_io;
- // 输出型的图像变量 (数据类型为 HObject)
- QVector<H_INTERFACE_HOBJECT> Interfaces_oo;
- // 输入型的控制变量 (数据类型为 HTuple)
- QVector<H_INTERFACE_HTUPLE> Interfaces_ic;
- // 输出型的控制变量 (数据类型为 HTuple)
- QVector<H_INTERFACE_HTUPLE> Interfaces_oc;
- QVector<QString> Src;
- void Reset()
- {
- strName.clear();
- strFunctionName.clear();
- Interfaces_io.clear();
- Interfaces_oo.clear();
- Interfaces_ic.clear();
- Interfaces_oc.clear();
- Src.clear();
- }
- _tagH_Function()
- {
- }
- ~_tagH_Function()
- {
- this->Reset();
- }
- } H_FUNCTION;
- // 脚本信息结构体
- typedef struct _tagHScript
- {
- QString strFileVersion;
- QString strHalconVersion;
- vector<H_FUNCTION> Function;
- void Reset()
- {
- strFileVersion.clear();
- strHalconVersion.clear();
- Function.clear();
- }
- _tagHScript()
- {
- }
- ~_tagHScript()
- {
- this->Reset();
- }
- } H_SCRIPT;
|