API 4.4.1-2022-10-19-2c4045e59
For MATLAB, Python, Java, and C++ users
|
This sink stores all messages in a string. More...
Public Member Functions | |
void | clear () |
Clear the contents of the string. More... | |
const std::string & | getString () const |
Obtain the string. More... | |
Public Member Functions inherited from OpenSim::LogSink | |
virtual | ~LogSink ()=default |
This sink stores all messages in a string.
This is useful for testing the content of logs.
|
inline |
Clear the contents of the string.
|
inline |
Obtain the string.
|
inlineoverrideprotectedvirtual |
This function is invoked whenever a message is logged at the desired Log::Level.
Implements OpenSim::LogSink.