40 #include "frontPanelSettings.hpp"
41 #include "illegalArgumentException.hpp"
55 FrontPanelConfig::FrontPanelConfig()
68 FrontPanelConfig::~FrontPanelConfig()
103 std::vector<FrontPanelIndicator>::iterator it = _indicators.begin();
104 while (it != _indicators.end()) {
105 if (it->getName() == name) {
120 void FrontPanelConfig::fPInit()
132 void FrontPanelConfig::fPTerm()
149 std::vector<FrontPanelIndicator>::iterator it = _indicators.begin();
150 while (it != _indicators.end()) {
151 if (it->getId() ==
id) {
176 std::vector<FrontPanelIndicator::Color>::iterator it = _colors.begin();
177 while (it != _colors.end()) {
178 if (it->getName() == name) {
201 std::vector<FrontPanelIndicator::Color>::iterator it = _colors.begin();
202 while (it != _colors.end()) {
203 if (it->getId() ==
id) {
226 std::vector<FrontPanelTextDisplay>::iterator it = _textDisplays.begin();
227 while (it != _textDisplays.end()) {
228 if (it->getId() ==
id) {
254 std::vector<FrontPanelTextDisplay>::iterator it = _textDisplays.begin();
255 while (it != _textDisplays.end()) {
256 if (it->getName() == name) {
277 for (
size_t i = 0; i < _colors.size(); i++) {
295 for (
size_t i = 0; i < _indicators.size(); i++) {
296 rIndicators.
push_back(_indicators.at(i));
313 for (
size_t i = 0; i < _textDisplays.size(); i++) {
328 void FrontPanelConfig::load()
336 for (
size_t i = 0; i <
dsUTL_DIM(kIndicatorColors); i++) {
340 for (
size_t i = 0; i <
dsUTL_DIM(kIndicators); i++) {
343 kIndicators[i].maxBrightness,
344 kIndicators[i].maxCycleRate,
345 kIndicators[i].levels,
346 kIndicators[i].colorMode));
357 for (
size_t i = 0; i <
dsUTL_DIM(kTextDisplays); i++) {
358 _textDisplays.push_back(
360 kTextDisplays[i].maxBrightness,
361 kTextDisplays[i].maxCycleRate,
362 kTextDisplays[i].levels,
363 kTextDisplays[i].maxHorizontalIterations,
364 kTextDisplays[i].maxVerticalIterations,
365 kTextDisplays[i].supportedCharacters,
366 kTextDisplays[i].colorMode));