| 117 | } |
| 118 | |
| 119 | void WebReport::keyCallback(std::string& data, const std::string& key) { |
| 120 | if (key == "evenodd") { |
| 121 | data = evenLine ? "even" : "odd"; |
| 122 | } |
| 123 | else if (key == "report") { |
| 124 | if (reports && report > 0 && report < (int)reports->size()) { |
| 125 | data = reports->get(report).c_str(); |
| 126 | } |
| 127 | else { |
| 128 | data = ""; |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | bool WebReport::loopCallback(const std::string& key) { |
| 134 | if (key != "report") { |