#pragma once #include #include #include 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 Interfaces_io; // 输出型的图像变量 (数据类型为 HObject) QVector Interfaces_oo; // 输入型的控制变量 (数据类型为 HTuple) QVector Interfaces_ic; // 输出型的控制变量 (数据类型为 HTuple) QVector Interfaces_oc; QVector 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 Function; void Reset() { strFileVersion.clear(); strHalconVersion.clear(); Function.clear(); } _tagHScript() { } ~_tagHScript() { this->Reset(); } } H_SCRIPT;