Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

core.h

00001 /***************************************************************************
00002                    core.h  -  WTK core object and services
00003                              -------------------
00004     begin                : Tue Jan 20 2004
00005     copyright            : (C) 2004 by Reality Rift Studios
00006     email                : mattias@realityrift.com
00007  ***************************************************************************
00008 
00009  The contents of this file are subject to the Mozilla Public License Version
00010  1.1 (the "License"); you may not use this file except in compliance with
00011  the License. You may obtain a copy of the License at 
00012  http://www.mozilla.org/MPL/
00013 
00014  Software distributed under the License is distributed on an "AS IS" basis,
00015  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00016  for the specific language governing rights and limitations under the
00017  License.
00018 
00019  The Original Code is the NeoEngine, NeoWTK, core.h
00020 
00021  The Initial Developer of the Original Code is Mattias Jansson.
00022  Portions created by Mattias Jansson are Copyright (C) 2004
00023  Reality Rift Studios. All Rights Reserved.
00024 
00025  ***************************************************************************/
00026 
00027 #ifndef __NEOWTK_CORE_H
00028 #define __NEOWTK_CORE_H
00029 
00030 #include "base.h"
00031 
00032 
00033 namespace NeoWTK
00034 {
00035 
00036 
00037 class NEOWTK_API Core
00038 {
00039     protected:
00040 
00042         static Core                                  *s_pkSingleton;
00043 
00044 
00048                                                       Core();
00049 
00050 
00051     public:
00052 
00055                                                      ~Core();
00056 
00057 
00062         bool                                          Initialize();
00063 
00067         void                                          Shutdown();
00068 
00073         inline static Core                           *Get() { if( !s_pkSingleton ) s_pkSingleton = new Core; return s_pkSingleton; }
00074 };
00075 
00076 
00077 };
00078 
00079 
00080 #endif

Generated on Wed Jan 21 14:21:20 2004 for NeoWTK by doxygen 1.3.5