This allow Base object to interact with the messaging system. More...
Namespaces | |
Typedefs | |
typedef boost::tokenizer< boost::char_separator< char > > | tokenizer |
Functions | |
void | simpleFormat (size_t jsize, const std::string &text, size_t line_length, std::ostream &wrapped) |
simpleFormat a text containing our markdown 'tags' More... | |
bool | notMuted (const sofa::core::objectmodel::Base *t) |
bool | notMuted (sofa::core::objectmodel::Base *t) |
ComponentInfo::SPtr | getComponentInfo (const sofa::core::objectmodel::Base *t) |
This construct a new ComponentInfo object from a Base object. More... | |
std::ostream & | operator<< (std::ostream &out, const ComponentInfo &nfo) |
std::ostream & | operator<< (std::ostream &out, const ComponentInfo *nfo) |
const ComponentInfo::SPtr | getComponentInfo (const std::string &s) |
This function is used in the msg_* macro to handle emitting case based on string. More... | |
const ComponentInfo::SPtr | getComponentInfo (const ComponentInfo::SPtr &s) |
This function is used in the msg_* macro to handle emitting case based on string. More... | |
bool | notMuted (const ComponentInfo::SPtr &) |
bool | notMuted (const std::string &) |
This function is used in the msg_* macro to handle string based on string. More... | |
const SOFA_HELPER_API std::string | toString (const Message::Type type) |
std::ostream & | operator<< (std::ostream &s, const Message &m) |
std::vector< MessageHandler * > | getDefaultMessageHandlers () |
MessageDispatcherImpl * | getMainInstance () |
template<class Derived , typename IdType > | |
bool | notMuted (const SelectableItem< Derived, IdType > *) |
template<class Derived , typename IdType > | |
ComponentInfo::SPtr | getComponentInfo (const SelectableItem< Derived, IdType > *) |
This allow Base object to interact with the messaging system.
typedef boost::tokenizer<boost::char_separator<char> > sofa::helper::logging::tokenizer |
|
inline |
This function is used in the msg_* macro to handle emitting case based on string.
ComponentInfo::SPtr sofa::helper::logging::getComponentInfo | ( | const SelectableItem< Derived, IdType > * | ) |
|
inline |
This construct a new ComponentInfo object from a Base object.
|
inline |
This function is used in the msg_* macro to handle emitting case based on string.
std::vector<MessageHandler*> sofa::helper::logging::getDefaultMessageHandlers | ( | ) |
Threading issues... a mutex is serializing the access to the message API. Memory management: object are passed to the message info. some of them are duplicated other get a weak reference
MessageDispatcherImpl* sofa::helper::logging::getMainInstance | ( | ) |
|
inline |
bool sofa::helper::logging::notMuted | ( | const SelectableItem< Derived, IdType > * | ) |
|
inline |
|
inline |
This function is used in the msg_* macro to handle string based on string.
|
inline |
std::ostream& sofa::helper::logging::operator<< | ( | std::ostream & | out, |
const ComponentInfo & | nfo | ||
) |
std::ostream& sofa::helper::logging::operator<< | ( | std::ostream & | out, |
const ComponentInfo * | nfo | ||
) |
SOFA_HELPER_API std::ostream & sofa::helper::logging::operator<< | ( | std::ostream & | s, |
const Message & | m | ||
) |
void sofa::helper::logging::simpleFormat | ( | size_t | jsize, |
const std::string & | text, | ||
size_t | line_length, | ||
std::ostream & | wrapped | ||
) |
simpleFormat a text containing our markdown 'tags'
jsize | size of the line prefix to fill with space (for left side alignment) |
text | the text to format |
line_length | number of column to render to to |
wrapped | the destination stream where to write the formatted text. |
SOFA_HELPER_API const std::string sofa::helper::logging::toString | ( | const Message::Type | type | ) |