| 197 | } |
| 198 | |
| 199 | bool setElement(const KeyType &ID, const double Timestamp, const int Number, ObjectType& Element) |
| 200 | { |
| 201 | if (checkElement(ID, Timestamp, Number)) |
| 202 | { |
| 203 | auto It = _DataStreams.at(ID).find(Timestamp); |
| 204 | std::advance(It, Number); |
| 205 | It->second = Element; |
| 206 | return true; |
| 207 | } |
| 208 | else |
| 209 | { |
| 210 | PRINT_ERROR("Element doesn't exist at: ", Timestamp, " Type: ", ID, " Number: ", Number); |
| 211 | return false; |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | bool getTimeFirst(const KeyType &ID, double& Timestamp) const |
| 216 | { |