Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Notify Class Reference

#include <notify.h>

List of all members.

Public Member Functions

bool assert_failure (const char *expression, int line, const char *source_file)
void config_initialized ()

Static Public Member Functions

ios_fmtflags get_literal_flag ()
NotifySeverity string_severity (const string &string)

Private Types

typedef bool AssertHandler (const char *expression, int line, const char *source_file)
typedef map< string, NotifyCategory * > Categories

Private Member Functions

 ~Notify ()
void set_ostream_ptr (ostream *ostream_ptr, bool delete_later)
ostreamget_ostream_ptr () const
void set_assert_handler (AssertHandler *assert_handler)
void clear_assert_handler ()
bool has_assert_handler () const
AssertHandlerget_assert_handler () const
bool has_assert_failed () const
const string & get_assert_error_message () const
void clear_assert_failed ()
NotifyCategoryget_top_category ()
NotifyCategoryget_category (const string &basename, NotifyCategory *parent_category)
NotifyCategoryget_category (const string &basename, const string &parent_fullname)
NotifyCategoryget_category (const string &fullname)

Static Private Member Functions

ostreamout ()
ostreamnull ()
void write_string (const string &str)
Notify * ptr ()

Private Attributes

PUBLISHED __pad0__: Notify()
ostream_ostream_ptr
bool _owns_ostream_ptr
ostream_null_ostream_ptr
AssertHandler_assert_handler
bool _assert_failed
string _assert_error_message
Categories _categories

Static Private Attributes

Notify * _global_ptr = (Notify *)NULL


Member Typedef Documentation

typedef bool Notify::AssertHandler(const char *expression, int line, const char *source_file) [private]
 

Definition at line 53 of file notify.h.

Referenced by clear_assert_handler(), and has_assert_handler().

typedef map<string, NotifyCategory *> Notify::Categories [private]
 

Definition at line 96 of file notify.h.


Constructor & Destructor Documentation

Notify::~Notify  )  [private]
 

Definition at line 55 of file notify.cxx.

References _null_ostream_ptr, and _ostream_ptr.


Member Function Documentation

bool Notify::assert_failure const char *  expression,
int  line,
const char *  source_file
 

Definition at line 411 of file notify.cxx.

References _assert_error_message, _assert_failed, get_assert_abort(), has_assert_handler(), nout, and ostringstream::str().

void Notify::clear_assert_failed  )  [private]
 

Definition at line 227 of file notify.cxx.

References _assert_failed.

void Notify::clear_assert_handler  )  [private]
 

Definition at line 158 of file notify.cxx.

References _assert_handler, AssertHandler, and NULL.

void Notify::config_initialized  ) 
 

Definition at line 501 of file notify.cxx.

References _ostream_ptr, nout, Filename::open_write(), out(), set_ostream_ptr(), and Filename::set_text().

Referenced by Config::ConfigTable::Instance().

const string & Notify::get_assert_error_message  )  const [private]
 

Definition at line 216 of file notify.cxx.

References _assert_error_message.

Notify::AssertHandler * Notify::get_assert_handler  )  const [private]
 

Definition at line 180 of file notify.cxx.

References _assert_handler.

NotifyCategory * Notify::get_category const string &  fullname  )  [private]
 

Definition at line 319 of file notify.cxx.

References _categories, get_category(), get_top_category(), NULL, and size_t.

NotifyCategory * Notify::get_category const string &  basename,
const string &  parent_fullname
[private]
 

Definition at line 303 of file notify.cxx.

References get_category().

NotifyCategory * Notify::get_category const string &  basename,
NotifyCategory parent_category
[private]
 

Definition at line 253 of file notify.cxx.

References _categories, get_top_category(), nassertr, and NULL.

Referenced by get_category(), and get_top_category().

ios_fmtflags Notify::get_literal_flag  )  [static]
 

Definition at line 112 of file notify.cxx.

References ios_fmtflags.

ostream * Notify::get_ostream_ptr  )  const [private]
 

Definition at line 93 of file notify.cxx.

References _ostream_ptr.

NotifyCategory * Notify::get_top_category  )  [private]
 

Definition at line 240 of file notify.cxx.

References get_category().

Referenced by get_category().

bool Notify::has_assert_failed  )  const [private]
 

Definition at line 205 of file notify.cxx.

References _assert_failed.

bool Notify::has_assert_handler  )  const [private]
 

Definition at line 169 of file notify.cxx.

References _assert_handler, AssertHandler, and NULL.

Referenced by assert_failure().

ostream & Notify::null  )  [static, private]
 

Definition at line 365 of file notify.cxx.

References _null_ostream_ptr, and ptr().

Referenced by NotifyCategory::out().

ostream & Notify::out  )  [static, private]
 

Definition at line 353 of file notify.cxx.

References _ostream_ptr, and ptr().

Referenced by config_initialized(), and write_string().

Notify * Notify::ptr  )  [static, private]
 

Definition at line 389 of file notify.cxx.

References _global_ptr, and NULL.

Referenced by Config::ConfigTable::Instance(), null(), and out().

void Notify::set_assert_handler AssertHandler assert_handler  )  [private]
 

Definition at line 147 of file notify.cxx.

References _assert_handler.

void Notify::set_ostream_ptr ostream ostream_ptr,
bool  delete_later
[private]
 

Definition at line 72 of file notify.cxx.

References _ostream_ptr, _owns_ostream_ptr, NULL, and ostream.

Referenced by config_initialized().

NotifySeverity Notify::string_severity const string &  string  )  [static]
 

Definition at line 458 of file notify.cxx.

References NS_debug, NS_error, NS_fatal, NS_info, NS_spam, NS_unspecified, and NS_warning.

Referenced by Config::Config< GetConfig >::Init(), and NotifyCategory::NotifyCategory().

void Notify::write_string const string &  str  )  [static, private]
 

Definition at line 378 of file notify.cxx.

References out().


Member Data Documentation

PUBLISHED Notify::__pad0__ [private]
 

Definition at line 47 of file notify.h.

string Notify::_assert_error_message [private]
 

Definition at line 94 of file notify.h.

Referenced by assert_failure(), and get_assert_error_message().

bool Notify::_assert_failed [private]
 

Definition at line 93 of file notify.h.

Referenced by assert_failure(), clear_assert_failed(), and has_assert_failed().

AssertHandler* Notify::_assert_handler [private]
 

Definition at line 92 of file notify.h.

Referenced by clear_assert_handler(), get_assert_handler(), has_assert_handler(), and set_assert_handler().

Categories Notify::_categories [private]
 

Definition at line 97 of file notify.h.

Referenced by get_category().

Notify * Notify::_global_ptr = (Notify *)NULL [static, private]
 

Definition at line 31 of file notify.cxx.

Referenced by ptr().

ostream* Notify::_null_ostream_ptr [private]
 

Definition at line 90 of file notify.h.

Referenced by null(), and ~Notify().

ostream* Notify::_ostream_ptr [private]
 

Definition at line 88 of file notify.h.

Referenced by config_initialized(), get_ostream_ptr(), out(), set_ostream_ptr(), and ~Notify().

bool Notify::_owns_ostream_ptr [private]
 

Definition at line 89 of file notify.h.

Referenced by set_ostream_ptr().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:35:03 2003 for DTool by doxygen1.3