#include <Message.h>
A message is the core object of the msg_* API. A message contains a textual description provided by the user as well as the location in source file (or in a separated file) from where the message have been emitted. A message also contains a ComponentInfo which can be used to provide additional details about the emitter's context.
Static Public Attributes | |
static TypeSet | AnyTypes |
static Message | emptyMsg |
Protected Attributes | |
ComponentInfo::SPtr | m_componentinfo |
FileInfo::SPtr | m_fileInfo |
a trace (name, path) from whom has emitted this message. More... | |
std::stringstream | m_stream |
the actual message More... | |
Class | m_class |
who is the attender of the message (developers or users)? More... | |
Type | m_type |
the message level More... | |
int | m_id |
should it be stored here or in the handler that needs it? More... | |
Public Member Functions | |
Message () | |
Message (const Message &msg) | |
Message (Class mclass, Type type, const ComponentInfo::SPtr &=ComponentInfo::SPtr(), const FileInfo::SPtr &fileInfo=EmptyFileInfo) | |
Message & | operator= (const Message &msg) |
const FileInfo::SPtr & | fileInfo () const |
const ComponentInfo::SPtr & | componentInfo () const |
const std::stringstream & | message () const |
Class | context () const |
Type | type () const |
const std::string & | sender () const |
const std::string | messageAsString () const |
bool | empty () const |
template<class T > | |
Message & | operator<< (const T &x) |
template<> | |
SOFA_HELPER_API Message & | operator<< (const FileInfo::SPtr &fi) |
|
static |
|
static |
|
protected |
who is the attender of the message (developers or users)?
|
protected |
|
protected |
a trace (name, path) from whom has emitted this message.
a trace (file,line) from where the message have been created
|
protected |
should it be stored here or in the handler that needs it?
|
protected |
the actual message
|
protected |
the message level
|
inline |
sofa::helper::logging::Message::Message | ( | const Message & | msg | ) |
sofa::helper::logging::Message::Message | ( | Class | mclass, |
Type | type, | ||
const ComponentInfo::SPtr & | componentInfo = ComponentInfo::SPtr() , |
||
const FileInfo::SPtr & | fileInfo = EmptyFileInfo |
||
) |
|
inline |
|
inline |
bool sofa::helper::logging::Message::empty | ( | ) | const |
|
inline |
|
inline |
|
inline |
SOFA_HELPER_API Message & sofa::helper::logging::Message::operator<< | ( | const FileInfo::SPtr & | fi | ) |
|
inline |
|
inline |
|
inline |