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


Public Member Functions | |
| tiny_shell (const istring &window_title, const istring &name_root, int file_size=int(1.2 *MEGABYTE), const istring &logfile_name="") | |
| virtual | ~tiny_shell () |
| virtual int | execute ()=0 |
| forwards application_base responsibility upwards to derived objects. | |
| int | execute_returned () const |
| bool | Create () |
| u_int | menu () const |
| void | menu (u_int new_menu) |
| u_int | icon () const |
| void | icon (u_int new_icon) |
| outcome | log (const istring &to_print) |
| logs a debugging line "to_print" with a time-stamp in front. | |
| outcome | print (const istring &to_print) |
| debugging_console_window & | console () const |
| debugger & | debug () const |
| virtual bool | good_version () const |
Protected Member Functions | |
| afx_msg void | OnClose () |
| afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
| afx_msg void | OnMove (int x, int y) |
| afx_msg void | OnSize (u_int nType, int cx, int cy) |
| void | OnSetFocus (CWnd *old_window) |
Definition at line 45 of file tiny_shell.h.
| tiny_shell::tiny_shell | ( | const istring & | window_title, | |
| const istring & | name_root, | |||
| int | file_size = int(1.2 *MEGABYTE), |
|||
| const istring & | logfile_name = "" | |||
| ) |
Definition at line 54 of file tiny_shell.cpp.
| tiny_shell::~tiny_shell | ( | ) | [virtual] |
| virtual int tiny_shell::execute | ( | ) | [pure virtual] |
forwards application_base responsibility upwards to derived objects.
Implements application_shell.
Implemented in test_nt_security.
| int tiny_shell::execute_returned | ( | ) | const [inline] |
Definition at line 67 of file tiny_shell.h.
| bool tiny_shell::Create | ( | ) |
Definition at line 83 of file tiny_shell.cpp.
References geometric::screen_rectangle::bottom_right(), application_shell::filename_root(), geometric::rectangle< numeric_type >::from_text(), application_shell::ini(), configurator::load(), NIL, geometric::screen_rectangle::top_left(), geometric::point< numeric_type >::x(), and geometric::point< numeric_type >::y().
| u_int tiny_shell::menu | ( | ) | const [inline] |
| void tiny_shell::menu | ( | u_int | new_menu | ) | [inline] |
Definition at line 78 of file tiny_shell.h.
| u_int tiny_shell::icon | ( | ) | const [inline] |
| void tiny_shell::icon | ( | u_int | new_icon | ) | [inline] |
Definition at line 85 of file tiny_shell.h.
logs a debugging line "to_print" with a time-stamp in front.
this mirrors its output to the console when it logs to the log file (depending on whether the program-wide logger has been swapped out to change that behavior).
why why why? not a good idea to automatically add this. if (temp_log.length()) temp_log.insert(0, utility::timestamp(true, true));
Reimplemented from application_shell.
Definition at line 220 of file tiny_shell.cpp.
References debugger::log().
| debugging_console_window & tiny_shell::console | ( | ) | const |
Definition at line 77 of file tiny_shell.cpp.
| debugger & tiny_shell::debug | ( | ) | const |
| bool tiny_shell::good_version | ( | ) | const [virtual] |
Definition at line 81 of file tiny_shell.cpp.
| afx_msg void tiny_shell::OnClose | ( | ) | [protected] |
Definition at line 154 of file tiny_shell.cpp.
References object_base::class_name(), application_shell::filename_root(), FUNCDEF, application_shell::ini(), menu(), NIL, non_continuable_error, retask_program_wide_logger(), and configurator::store().
| afx_msg int tiny_shell::OnCreate | ( | LPCREATESTRUCT | lpCreateStruct | ) | [protected] |
Definition at line 111 of file tiny_shell.cpp.
References debugging_console_window::Create(), debug(), application_shell::filename_root(), icon(), LOG_NAME, menu(), debugging_base::name(), NIL, debugger::reset_recipient(), retask_program_wide_logger(), debugging_console_window::show(), START_EXECUTION, and istring::t().
| afx_msg void tiny_shell::OnMove | ( | int | x, | |
| int | y | |||
| ) | [protected] |
Definition at line 183 of file tiny_shell.cpp.
| afx_msg void tiny_shell::OnSize | ( | u_int | nType, | |
| int | cx, | |||
| int | cy | |||
| ) | [protected] |
Definition at line 191 of file tiny_shell.cpp.
| void tiny_shell::OnSetFocus | ( | CWnd * | old_window | ) | [protected] |
Definition at line 105 of file tiny_shell.cpp.
1.5.1