t_tiny_shell.cpp

Go to the documentation of this file.
00001 /*****************************************************************************\
00002 *                                                                             *
00003 *  Name   : test_tiny_shell                                                   *
00004 *  Author : Chris Koeritz                                                     *
00005 *                                                                             *
00006 *  Purpose:                                                                   *
00007 *                                                                             *
00008 *    Tries out simple usage of a tiny_shell object.                           *
00009 *                                                                             *
00010 *******************************************************************************
00011 * Copyright (c) 1995-$now By Author.  This program is free software; you can  *
00012 * redistribute it and/or modify it under the terms of the GNU General Public  *
00013 * License as published by the Free Software Foundation; either version 2 of   *
00014 * the License or (at your option) any later version.  This is online at:      *
00015 *     http://www.fsf.org/copyleft/gpl.html                                    *
00016 * Please send any updates to: fred@gruntose.com                               *
00017 \*****************************************************************************/
00018 
00019 #include <basis/chaos.h>
00020 #include <basis/istring.h>
00021 #include <mathematics/averager.cpp>
00022 #include <mechanisms/time_stamp.h>
00023 #include <mfc_ext/debugging_console_window.h>
00024 #include <mfc_ext/tiny_app.cpp>
00025 #include <mfc_ext/tiny_shell.h>
00026 #include <opsystem/event_extensions.h>
00027 #include <data_struct/static_memory_gremlin.h>
00028 #include <textual/string_manipulation.h>
00029 #include <win_ext/debugger.h>
00030 
00031 class test_tiny_shell : public tiny_shell
00032 {
00033 public:
00034   test_tiny_shell();
00035 
00036   IMPLEMENT_CLASS_NAME("test_tiny_shell");
00037 
00038   int execute();
00039 
00040   void OnTimer(u_int wparam);
00041 
00042   DECLARE_MESSAGE_MAP();
00043 };
00044 
00045 BEGIN_MESSAGE_MAP(test_tiny_shell, tiny_shell)
00046   //{{AFX_MSG_MAP(test_tiny_shell)
00047   ON_WM_TIMER()
00048   //}}AFX_MSG_MAP
00049 END_MESSAGE_MAP()
00050 
00051 test_tiny_shell::test_tiny_shell()
00052 : tiny_shell("Test Tiny Shell", "t_tiny_shell")
00053 {}
00054 
00055 int test_tiny_shell::execute()
00056 {
00057   SetTimer(23, 1 * SECOND_ms, NIL);
00058   // hadn't quite started 'til that timer was set...
00059 
00060   log("tiny_shell test has started...  it will end when you close the window.");
00061 
00062   return 0;
00063 }
00064 
00065 void test_tiny_shell::OnTimer(u_int wparam)
00066 {
00067 //nothing.
00068 }
00069 
00070 HOOPLE_MAIN(test_tiny_shell, )
00071 

Generated on Fri Nov 28 04:29:34 2008 for HOOPLE Libraries by  doxygen 1.5.1