#include <wx_debugging_base.h>
Inheritance diagram for wx_debugging_base:


Public Member Functions | |
| wx_debugging_base (wxTextCtrl &to_manipulate, int buffer_size=2 *MEGABYTE, int file_size=int(1.2 *MEGABYTE)) | |
| virtual | ~wx_debugging_base () |
| IMPLEMENT_CLASS_NAME ("wx_debugging_base") | |
| void | setup () |
| void | shut_down () |
| int | current_length () |
| virtual outcome | log (const istring &info, int filter=ALWAYS_PRINT) |
| writes the information in "info" to the log using the "filter" value. | |
| void | log_ending (const istring &to_show, int filter=ALWAYS_PRINT, line_ending ending=CRLF_AT_END) |
| void | display_message (byte_array &message) |
| outcome | print (const istring &to_show, int filter=ALWAYS_PRINT) |
| istring | name () const |
| void | name (const istring &new_name) |
| int | buffer_limit () |
| void | buffer_limit (int new_limit) |
| int | file_limit () const |
| void | file_limit (int new_limit) |
| void | go_to_end () |
| bool | get_contents (istring &to_fill) |
| bool | get_selection (int &start, int &end) |
| void | select (int start, int end) |
| void | reset () |
| wxTextCtrl & | get_editor () |
Definition at line 34 of file wx_debugging_base.h.
| wx_debugging_base::~wx_debugging_base | ( | ) | [virtual] |
| wx_debugging_base::IMPLEMENT_CLASS_NAME | ( | "wx_debugging_base" | ) |
| void wx_debugging_base::setup | ( | ) |
Definition at line 121 of file wx_debugging_base.cpp.
References istring::t(), and ULS_BUFFER_SIZE.
Referenced by wx_debugging_console_panel::wx_debugging_console_panel().
| void wx_debugging_base::shut_down | ( | ) |
Definition at line 137 of file wx_debugging_base.cpp.
References WHACK().
Referenced by ~wx_debugging_base(), and wx_debugging_console_panel::~wx_debugging_console_panel().
| int wx_debugging_base::current_length | ( | ) |
writes the information in "info" to the log using the "filter" value.
the "filter" value must be checked to see if it is in the current set of allowed filters (using member()). this function _must_ be provided by derived classes and it _must_ check the filter before printing if it wants to be in compliance with log_base protocols. it also must implement the line_ending appropriately. the return value will often be a member of the common outcomes, but derived classes may see fit to return other things. note that an object derived from log_base should be thread-safe and protect its own member attributes through synchronization.
Implements log_base.
Definition at line 198 of file wx_debugging_base.cpp.
References log_base::ALWAYS_PRINT, DISABLE, log_base::eol(), log_base::get_ending(), LENGTH_CHOP_FACTOR, log_base::member(), minimum(), log_base::NO_ENDING, common::OKAY, REENABLE, istring::SPRINTF, to_unicode_wx, wxstring_crlf, and wxstring_lf.
Referenced by log_ending().
| void wx_debugging_base::log_ending | ( | const istring & | to_show, | |
| int | filter = ALWAYS_PRINT, |
|||
| line_ending | ending = CRLF_AT_END | |||
| ) |
Definition at line 189 of file wx_debugging_base.cpp.
References log_base::eol(), and log().
Referenced by display_message().
| void wx_debugging_base::display_message | ( | byte_array & | message | ) |
Definition at line 308 of file wx_debugging_base.cpp.
References debugger::crack_debug_message(), and log_ending().
Referenced by wx_debugging_console_panel::display_debug_message().
| istring wx_debugging_base::name | ( | ) | const |
| void wx_debugging_base::name | ( | const istring & | new_name | ) |
Definition at line 105 of file wx_debugging_base.cpp.
References file_logger::name(), file_logger::reopen(), istring::t(), and WHACK().
| int wx_debugging_base::buffer_limit | ( | ) |
| void wx_debugging_base::buffer_limit | ( | int | new_limit | ) |
Definition at line 76 of file wx_debugging_base.cpp.
| int wx_debugging_base::file_limit | ( | ) | const |
| void wx_debugging_base::file_limit | ( | int | new_limit | ) |
Definition at line 85 of file wx_debugging_base.cpp.
References file_logger::limit(), name(), file_logger::reopen(), and WHACK().
| void wx_debugging_base::go_to_end | ( | ) |
| bool wx_debugging_base::get_contents | ( | istring & | to_fill | ) |
Definition at line 292 of file wx_debugging_base.cpp.
References DISABLE, from_unicode_wx, and REENABLE.
| bool wx_debugging_base::get_selection | ( | int & | start, | |
| int & | end | |||
| ) |
| void wx_debugging_base::select | ( | int | start, | |
| int | end | |||
| ) |
| void wx_debugging_base::reset | ( | ) |
| wxTextCtrl & wx_debugging_base::get_editor | ( | ) |
Definition at line 101 of file wx_debugging_base.cpp.
1.5.1