#ifndef PROJECT_H #define PROJECT_H #include #include // PLC工程数据模型 class Project { public: struct ItemData { QString type; double x, y; QString registerId = ""; }; struct ConnectionData { int from, to; int fromType, toType; }; void clear() { items_.clear(); connections_.clear(); } bool saveToFile(const QString& filePath) const; bool loadFromFile(const QString& filePath); QList items_; QList connections_; }; #endif // PROJECT_H