34 # pragma warning(disable : 4996) 81 va_start( arglist, fmt );
98 return stream << msg.
c_str();
112 msg(
"%s: %s", _type, _msg.
c_str() )
129 return stream << e.
what();
cMsg msg
The message object.
maximum length in bytes of a message to store
NAMESPACE_SDH_START std::ostream & operator<<(std::ostream &stream, cMsg const &msg)
Interface of the exception base class #SDH::cSDHLibraryException and #SDH::cMsg.
#define NAMESPACE_SDH_START
Base class for exceptions in the SDHLibrary-CPP.
virtual const char * what() const
#define USING_NAMESPACE_SDH
#define NAMESPACE_SDH_END
This file contains settings to make the SDHLibrary compile on differen systems:
cSDHLibraryException(char const *_type, cMsg const &_msg)
char const * c_str() const
Return the C-string representation of the messag in this object.
Class for short, fixed maximum length text messages.
cMsg()
Default constructor, init message to empty string.