38#if defined(CPPPARSER) && defined(HAVE_PYTHON)
39 EXTEND
void set_ostream_ptr(PyObject *ostream_ptr,
bool delete_later);
41 void set_ostream_ptr(std::ostream *ostream_ptr,
bool delete_later);
43 std::ostream *get_ostream_ptr()
const;
45 typedef bool AssertHandler(
const char *expression,
int line,
46 const char *source_file);
48 void set_assert_handler(AssertHandler *assert_handler);
49 void clear_assert_handler();
50 bool has_assert_handler()
const;
51 AssertHandler *get_assert_handler()
const;
53 INLINE
bool has_assert_failed()
const;
54 INLINE
const std::string &get_assert_error_message()
const;
55 INLINE
void clear_assert_failed();
61 const std::string &parent_fullname);
64 static std::ostream &out();
65 static std::ostream &null();
66 static void write_string(
const std::string &str);
70 static ios_fmtflags get_literal_flag();
72 bool assert_failure(
const std::string &expression,
int line,
73 const char *source_file);
74 bool assert_failure(
const char *expression,
int line,
75 const char *source_file);
77 static NotifySeverity string_severity(
const std::string &
string);
79 void config_initialized();
82 std::ostream *_ostream_ptr;
83 bool _owns_ostream_ptr;
84 std::ostream *_null_ostream_ptr;
86 AssertHandler *_assert_handler;
88 std::string _assert_error_message;
92 typedef std::map<std::string, NotifyCategory *> Categories;
93 Categories _categories;
95 static Notify *_global_ptr;