9 inline Report::Report(Message& message)
14 inline Report::Report(Report& report)
15 : message(report.message) {
19 inline Report::Report(Report&& report)
20 : message(report.message) {
25 inline Report& Report::operator << (
const T& value) {
26 message.message.append(value);
31 inline YString& Report::text() {
32 return message.message;
36 inline const YString& Report::text()
const {
37 return message.message;
42 return message.hasErrors;
52 return message.origins;
57 inline EmptyReport& EmptyReport::operator << (
const T&) {
62 inline bool EmptyReport::hasErrors()
const {
67 inline void Report::appendEntry(
const std::shared_ptr<Message>& entry) {
68 message.appendEntry(entry);
72 inline Report::operator bool ()
const {
73 return message.level >= Level::warning;
Message & data()
Get access to the message itself (used by the C-API)
Definition: report.hxx:46
bool hasErrors() const
Get if there are some error messages.
Definition: report.hxx:41