45 #ifndef CLIPPER_MESSAGE
46 #define CLIPPER_MESSAGE
80 static std::ostream&
stream() {
return *stream_; }
101 static int message_level_;
102 static int fatal_level_;
103 static std::ostream* stream_;
110 const std::string& text()
const;
120 text_( text ), level_( level ) {}
121 const std::string& text()
const {
return text_; }
122 const int& level()
const {
return level_; }
132 const std::string& text()
const {
return text_; }
133 static int level() {
return 9; }
141 Message_warn(
const std::string& text ) : text_( text ) {}
142 const std::string& text()
const {
return text_; }
143 static int level() {
return 5; }
151 Message_info(
const std::string& text ) : text_( text ) {}
152 const std::string& text()
const {
return text_; }
153 static int level() {
return 1; }
161 Message_ctor(
const std::string& text ) : text_(
"+"+text ) {}
162 const std::string& text()
const {
return text_; }
163 static int level() {
return 2; }
171 Message_dtor(
const std::string& text ) : text_(
"-"+text ) {}
172 const std::string& text()
const {
return text_; }
173 static int level() {
return 2; }