tiny_shell Class Reference

#include <tiny_shell.h>

Inheritance diagram for tiny_shell:

Inheritance graph
[legend]
Collaboration diagram for tiny_shell:

Collaboration graph
[legend]
List of all members.

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_windowconsole () const
debuggerdebug () 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)

Detailed Description

Definition at line 45 of file tiny_shell.h.


Constructor & Destructor Documentation

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]

Definition at line 69 of file tiny_shell.cpp.

References WHACK().


Member Function Documentation

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]

Definition at line 77 of file tiny_shell.h.

Referenced by OnClose(), and OnCreate().

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]

Definition at line 84 of file tiny_shell.h.

Referenced by OnCreate().

void tiny_shell::icon ( u_int  new_icon  )  [inline]

Definition at line 85 of file tiny_shell.h.

outcome tiny_shell::log ( const istring to_print  )  [virtual]

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().

outcome tiny_shell::print ( const istring to_print  ) 

Definition at line 214 of file tiny_shell.cpp.

References debugger::print().

debugging_console_window & tiny_shell::console (  )  const

Definition at line 77 of file tiny_shell.cpp.

debugger & tiny_shell::debug (  )  const

Definition at line 79 of file tiny_shell.cpp.

Referenced by OnCreate().

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.


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 04:31:03 2008 for HOOPLE Libraries by  doxygen 1.5.1