14#include "arccore/trace/ITraceMng.h"
15#include "arccore/base/String.h"
37 m_parent->beginTrace(
this);
44TraceMessage(
const TraceMessage& from)
45: m_stream(from.m_stream)
46, m_parent(from.m_parent)
48, m_level(from.m_level)
49, m_color(from.m_color)
52 m_parent->beginTrace(
this);
58const TraceMessage& TraceMessage::
59operator=(
const TraceMessage& from)
61 ITraceMng* from_parent = from.parent();
63 from_parent->beginTrace(&from);
65 m_parent->endTrace(
this);
66 m_stream = from.m_stream;
67 m_parent = from_parent;
69 m_level = from.m_level;
70 m_color = from.m_color;
83~TraceMessage() ARCCORE_NOEXCEPT_FALSE
86 m_parent->endTrace(
this);
92const TraceMessage& TraceMessage::
102std::ostream& TraceMessage::
115operator<<(std::ostream& o,
const Trace::Width& w)
125operator<<(std::ostream& o,
const Trace::Precision& w)
127 bool is_scientific = w.m_scientific;
128 std::ios::fmtflags old_flags = o.flags();
130 o.flags(std::ios::scientific);
132 std::streamsize p = o.precision(w.m_precision);
144operator<<(
const TraceMessage& o,
const Trace::Color& c)
146 o.m_color = c.m_color;
160 m_msg->pushTraceClass(name);
169 m_msg->popTraceClass();
Unicode character string.
ITraceMng * m_msg
Message manager.
~Setter()
Releases the instance and restores the previous message class in m_msg.
eMessageType
Stream on which messages are sent.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --