else
multituner->addProblem(argv[i]);
} else
- multituner->addTuner(new SearchTuner(argv[i]));
+ multituner->addTuner(new SearchTuner(argv[i], true )); //add settings to usedsettigs
}
if (!tunerfiles) {
SearchTuner::SearchTuner() {
}
-SearchTuner::SearchTuner(const char *filename) {
+SearchTuner::SearchTuner(const char *filename, bool addused) {
ifstream myfile;
myfile.open (filename, ios::in);
if (myfile.is_open()) {
}
setting->setDecision(lowValue, highValue, defaultValue, selectedValue);
settings.add(setting);
+ if(addused){
+ usedSettings.add(setting);
+ }
}
myfile.close();
} else {
class SearchTuner : public Tuner {
public:
SearchTuner();
- SearchTuner(const char *filename);
+ SearchTuner(const char *filename, bool addused = false);
~SearchTuner();
virtual int getTunable(TunableParam param, TunableDesc *descriptor);
int getVarTunable(VarType vartype, TunableParam param, TunableDesc *descriptor);