2017-11-19 02:09:26 +00:00
|
|
|
//
|
|
|
|
// Configurable.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 18/11/2017.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-11-19 02:09:26 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "Configurable.hpp"
|
|
|
|
|
|
|
|
using namespace Configurable;
|
|
|
|
|
|
|
|
ListSelection *BooleanSelection::list_selection() {
|
|
|
|
return new ListSelection(value ? "yes" : "no");
|
|
|
|
}
|
|
|
|
|
|
|
|
ListSelection *ListSelection::list_selection() {
|
|
|
|
return new ListSelection(value);
|
|
|
|
}
|
|
|
|
|
|
|
|
BooleanSelection *ListSelection::boolean_selection() {
|
|
|
|
return new BooleanSelection(value != "no" && value != "n");
|
|
|
|
}
|
|
|
|
|
|
|
|
BooleanSelection *BooleanSelection::boolean_selection() {
|
|
|
|
return new BooleanSelection(value);
|
|
|
|
}
|