| 72 | } |
| 73 | |
| 74 | bool getLine(ConfigFile::String& input, unsigned int& line) |
| 75 | { |
| 76 | input = ""; |
| 77 | if (!file) |
| 78 | { |
| 79 | return false; |
| 80 | } |
| 81 | |
| 82 | // this loop efficiently skips almost all empty lines |
| 83 | do |
| 84 | { |
| 85 | if (feof(file)) |
| 86 | { |
| 87 | return false; |
| 88 | } |
| 89 | if (!input.LoadFromFile(file)) |
| 90 | { |
| 91 | return false; |
| 92 | } |
| 93 | ++l; |
| 94 | input.alltrim(" \t\r"); |
| 95 | } while (input.isEmpty()); |
| 96 | |
| 97 | line = l; |
| 98 | return true; |
| 99 | } |
| 100 | |
| 101 | bool active() const |
| 102 | { |
nothing calls this directly
no test coverage detected