12#ifndef ARCCORE_TRACE_STANDALONETRACEMESSAGE_H
13#define ARCCORE_TRACE_STANDALONETRACEMESSAGE_H
17#include "arccore/trace/TraceMessage.h"
33class ARCCORE_TRACE_EXPORT StandaloneTraceMessage
37 StandaloneTraceMessage() =
default;
40 StandaloneTraceMessage& operator=(
const StandaloneTraceMessage& from);
44 std::ostream& file()
const {
return m_stream; }
46 int level()
const {
return m_level; }
47 int color()
const {
return m_color; }
51 std::string value()
const {
return m_stream.str(); }
60 int m_level = TraceMessage::DEFAULT_LEVEL;
78template <
class T>
inline const StandaloneTraceMessage&
79operator<<(
const StandaloneTraceMessage& o,
const T& v)
Management of a standalone message.
int m_level
Message level.
Trace::eMessageType m_type
Message type.
int m_color
Message color.
std::ostringstream m_stream
Stream to which the message is sent.
Sets a color for the message.
eMessageType
Stream on which messages are sent.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --