blob: aae3dcb6c976520bd0835849752f0113a69607d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <openvic-dataloader/DiagnosticLogger.hpp>
using namespace ovdl;
DiagnosticLogger::operator bool() const {
return !_errored;
}
bool DiagnosticLogger::errored() const { return _errored; }
bool DiagnosticLogger::warned() const { return _warned; }
NodeLocation DiagnosticLogger::location_of(const error::Error* error) const {
auto result = _map.lookup(error);
return result ? *result : NodeLocation{};
}
|