VISR  0.11.6
Versatile Interactive Scene Renderer
status_message.hpp
Go to the documentation of this file.
1 /* Copyright Institute of Sound and Vibration Research - All rights reserved */
2 
3 #ifndef VISR_STATUS_MESSAGE_HPP_INCLUDED
4 #define VISR_STATUS_MESSAGE_HPP_INCLUDED
5 
6 #include <ostream>
7 
8 namespace visr
9 {
10 
15 {
16 public:
20  enum Kind: unsigned char
21  {
29  };
30 
40  template< typename MessageType, typename... MessageRest>
41  static void format( std::ostream & str, MessageType const & msg, MessageRest ... rest )
42  {
43  str << msg;
44  format( str, rest ... );
45  }
46 
54  template< typename MessageType >
55  static void format( std::ostream & str, MessageType const & msg )
56  {
57  str << msg;
58  }
59 };
60 
61 } // namespace visr
62 
63 #endif // #ifndef VISR_STATUS_MESSAGE_HPP_INCLUDED
Kind
Definition: status_message.hpp:20
Definition: status_message.hpp:14
Severe error.
Definition: status_message.hpp:27
static void format(std::ostream &str, MessageType const &msg, MessageRest ... rest)
Definition: status_message.hpp:41
Warning message.
Definition: status_message.hpp:23
Definition: options.cpp:10
static void format(std::ostream &str, MessageType const &msg)
Definition: status_message.hpp:55
Error message, the issuer is responsible for returning from the current callback call.
Definition: status_message.hpp:24
An informational message.
Definition: status_message.hpp:22
Critical error, control shall not return to the calling function.
Definition: status_message.hpp:28