Alternative approach to solve:
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Wed, 4 May 2011 08:50:49 +0000 (10:50 +0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Wed, 4 May 2011 08:50:49 +0000 (10:50 +0200)
commitd7ffab6e89a08bcec75783c523d0e754a8939b46
treef053a364da30c7ce37053c8f708f7e4824a930e1
parentdf76a7205da255a7924448589ed5cae5d9bd07ad
Alternative approach to solve:
- If one of the "[host]" in the configuration file omit the "interval" entry,
  the application uses the next "[host]"'s "interval" entry, instead of a
  default value. The problem is specific to the configuration read classes
  that are not smart enough to verify which "[host]" have this entry and which
  don't.
  Example:
     [host]
     name=A
     [host]
     name=B
     interval=1
     [host]
     name=C
     interval=3
  Thus, the tuples will be (A,1) , (B,3), (C,?), but A should have a default
  value, instead of borrow B's value.

The approach consists of ensure the program only runs if there is an interval
for every single host.
TODO
src/config/configurationreader.cpp