85 lines
2.1 KiB
C
85 lines
2.1 KiB
C
|
#pragma once
|
|||
|
|
|||
|
#include <QMap>
|
|||
|
#include <QPoint>
|
|||
|
#include <QPointF>
|
|||
|
#include <QVector>
|
|||
|
#include <opencv2\opencv.hpp>
|
|||
|
|
|||
|
class QToolBase;
|
|||
|
|
|||
|
class gVariable
|
|||
|
{
|
|||
|
public:
|
|||
|
//<2F><><EFBFBD><EFBFBD>ȫ<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD><EFBFBD>ṹ<EFBFBD><E1B9B9>
|
|||
|
typedef struct GLOBALVAR
|
|||
|
{
|
|||
|
QString global_type;
|
|||
|
int global_int_value;
|
|||
|
double global_double_value;
|
|||
|
QString global_qstring_value;
|
|||
|
bool global_bool_value;
|
|||
|
QPoint global_qpoint_value;
|
|||
|
QPointF global_qpointf_value;
|
|||
|
cv::Point global_cvpoint_value;
|
|||
|
cv::Point2f global_cvpoint2f_value;
|
|||
|
cv::Point3f global_cvpoint3f_value;
|
|||
|
cv::Point3d global_cvpoint3d_value;
|
|||
|
std::vector<float> global_array_float_value;
|
|||
|
std::vector<double> global_array_double_value;
|
|||
|
} Global_Var;
|
|||
|
static Global_Var GlobalVar;
|
|||
|
static QMap<QString, Global_Var> global_variable_link;
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><D7AA><EFBFBD>߽ṹ<DFBD><E1B9B9>
|
|||
|
typedef struct GOTOVAR
|
|||
|
{
|
|||
|
std::vector<QString> goto_array_name_value;
|
|||
|
} Goto_Var;
|
|||
|
Goto_Var GotoVar;
|
|||
|
QMap<QString, Goto_Var> goto_variable_link;
|
|||
|
//<2F><><EFBFBD><EFBFBD>ͨѶ<CDA8>ṹ<EFBFBD><E1B9B9>
|
|||
|
typedef struct CAMERAVAR //<2F><><EFBFBD><EFBFBD>
|
|||
|
{
|
|||
|
|
|||
|
} Camera_Var;
|
|||
|
Camera_Var CameraVar;
|
|||
|
QMap<QString, Camera_Var> camera_variable_link;
|
|||
|
typedef struct GENERALIOVAR //ͨ<><CDA8>I/O
|
|||
|
{
|
|||
|
|
|||
|
} GeneralIo_Var;
|
|||
|
GeneralIo_Var GeneralIoVar;
|
|||
|
QMap<QString, GeneralIo_Var> generalio_variable_link;
|
|||
|
typedef struct PLCCOMMUNICATEVAR //PLCͨ<43><CDA8>
|
|||
|
{
|
|||
|
|
|||
|
} PlcCommunicate_Var;
|
|||
|
PlcCommunicate_Var PlcCommunicateVar;
|
|||
|
QMap<QString, PlcCommunicate_Var> plccommunicate_variable_link;
|
|||
|
typedef struct SERIALPORTVAR //<2F><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>
|
|||
|
{
|
|||
|
|
|||
|
} SerialPort_Var;
|
|||
|
SerialPort_Var SerialPortVar;
|
|||
|
QMap<QString, SerialPort_Var> serialport_variable_link;
|
|||
|
typedef struct SOCKETTCPSERVERVAR //TCP/IP<49><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
{
|
|||
|
|
|||
|
} SocketTcpServer_Var;
|
|||
|
SocketTcpServer_Var SocketTcpServerVar;
|
|||
|
QMap<QString, SocketTcpServer_Var> sockettcpserver_variable_link;
|
|||
|
typedef struct SOCKETTCPCLIENTVAR //TCP/IP<49>ͻ<EFBFBD><CDBB><EFBFBD>
|
|||
|
{
|
|||
|
|
|||
|
} SocketTcpClient_Var;
|
|||
|
SocketTcpClient_Var SocketTcpClientVar;
|
|||
|
QMap<QString, SocketTcpClient_Var> sockettcpclient_variable_link;
|
|||
|
typedef struct SCRIPTEDITVAR //<2F>ű<EFBFBD><C5B1>༭
|
|||
|
{
|
|||
|
QVector<QString> flow_pro_item_list;
|
|||
|
int item_id;
|
|||
|
} ScriptEdit_Var;
|
|||
|
ScriptEdit_Var ScriptEditVar;
|
|||
|
QMap<QToolBase*, ScriptEdit_Var> scriptedit_variable_link;
|
|||
|
};
|