#ifndef REQUIREMENTIMPORTANCE_H #define REQUIREMENTIMPORTANCE_H #include /** * @brief 单例,需求重要度 */ class RequirementImportance { public: static RequirementImportance *instance() { static RequirementImportance rinstance; return &rinstance; } RequirementImportance() { } QVector importance() const { return m_importance; } void setImportance(const QVector &importance) { m_importance = importance; } void appendImportance(const QVector &importance) { m_importance.append(importance); } void clear() { m_importance.clear(); } private: QVector m_importance; }; #endif // REQUIREMENTIMPORTANCE_H