* 1/3 Add .clang-format file and travis compilation check * 2/3 Run clang-format * 3/3 Fix compilation problems due to include reordering * 3bis/3 AfterControlStatement: false
25 lines
920 B
C++
25 lines
920 B
C++
#ifndef FEATURESET_H
|
|
#define FEATURESET_H
|
|
|
|
#include <QMap>
|
|
#include <QSet>
|
|
#include <QString>
|
|
|
|
class FeatureSet
|
|
{
|
|
public:
|
|
FeatureSet();
|
|
QMap<QString, bool> getDefaultFeatureList();
|
|
void initalizeFeatureList(QMap<QString, bool> &featureList);
|
|
void enableRequiredFeature(QMap<QString, bool> &featureList, QString featureName);
|
|
void disableRequiredFeature(QMap<QString, bool> &featureList, QString featureName);
|
|
QMap<QString, bool> addFeature(QMap<QString, bool> &featureList, QString featureName, bool isFeatureRequired);
|
|
QMap<QString, bool> identifyMissingFeatures(QMap<QString, bool> featureListToCheck,
|
|
QMap<QString, bool> featureListToCompareTo);
|
|
bool isRequiredFeaturesMissing(QMap<QString, bool> featureListToCheck, QMap<QString, bool> featureListToCompareTo);
|
|
|
|
private:
|
|
QMap<QString, bool> featureList;
|
|
};
|
|
|
|
#endif // FEEATURESET_H
|