#pragma once #include "MLMicroStructureExport.h" class MLPline; class MLMICROSTRUCTURE_EXPORT MLPlineList { public: MLPlineList(); ~MLPlineList(); public: // 清空线对象 void clearPline(); int getCount() const; // 添加线对象 void addPline(MLPline* pPline); // 移出线对象 void removePline(MLPline* pPline); // 线对象 MLPline* getPline(int index) const; MLPline* getPline(char* name) const; MLPline* getPline(const QString& sLineName) const; // 读取线对象 bool readPline(const QString& sPath); // 输出线对象 bool writePline(const QString& sPath); void write(QTextStream& out); public: QList m_PlineList; };