Make FrontEnds have a reset mask function
What
In scanConsole
there are at least a few points where very specific if FE is type <foo>
blocks that require very particular handling of specific front-ends. This is not desirable. For example, in the reset-masks
block here.
Proposal
It is probably better to just define a resetMasks()
method to the FrontEnd
base class. Then this block in scanConsole
would just become:
if (mask_opt == 1) {
for(FrontEnd* fe : bookie.feList) {
fe->resetMasks();
}
}
Using <algorithm>
could reduce it all to a single line, as well.
With the above proposal, we move further towards making things under libYarr
not be specific to a given front-end, enabling YARR
to be compiled wihtout having to compile for all possible target front-ends (since currently scanConsole includes specific FrontEnds). Front-end specific things should be under lib<FrontEndType>
.