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