Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/chat/src/libraries/core/CorePrereqs.h @ 6858

Last change on this file since 6858 was 6105, checked in by rgrieder, 15 years ago

Merged console branch back to trunk.

  • Property svn:eol-style set to native
File size: 6.9 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Reto Grieder
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30@file
31@brief
32    Shared library macros, enums, constants and forward declarations for the core library
33*/
34
35#ifndef _CorePrereqs_H__
36#define _CorePrereqs_H__
37
38#include "OrxonoxConfig.h"
39
40//-----------------------------------------------------------------------
41// Shared library settings
42//-----------------------------------------------------------------------
43
44#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
45#  ifdef CORE_SHARED_BUILD
46#    define _CoreExport __declspec(dllexport)
47#  else
48#    if defined( __MINGW32__ )
49#      define _CoreExport
50#    else
51#      define _CoreExport __declspec(dllimport)
52#    endif
53#  endif
54#elif defined ( ORXONOX_GCC_VISIBILITY )
55#  define _CoreExport  __attribute__ ((visibility("default")))
56#else
57#  define _CoreExport
58#endif
59
60//-----------------------------------------------------------------------
61// Constants
62//-----------------------------------------------------------------------
63
64namespace orxonox
65{
66    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
67}
68
69//-----------------------------------------------------------------------
70// Enums
71//-----------------------------------------------------------------------
72
73namespace orxonox
74{
75    namespace XMLPort
76    {
77        enum Mode
78        {
79            NOP,
80            LoadObject,
81            SaveObject,
82            ExpandObject
83        };
84    }
85
86    namespace KeybindMode
87    {
88        enum Value
89        {
90            OnPress,
91            OnHold,
92            OnRelease,
93            None
94        };
95    };
96}
97
98//-----------------------------------------------------------------------
99// Forward declarations
100//-----------------------------------------------------------------------
101
102namespace orxonox
103{
104    typedef std::string LanguageEntryLabel;
105
106    class ArgumentCompleter;
107    class ArgumentCompletionListElement;
108    class BaseObject;
109    template <class T>
110    class ClassFactory;
111    template <class T>
112    class ClassIdentifier;
113    class ClassTreeMask;
114    class ClassTreeMaskIterator;
115    class ClassTreeMaskNode;
116    class ClassTreeMaskObjectIterator;
117    class CommandEvaluation;
118    class CommandLineParser;
119    class CommandLineArgument;
120    class ConfigFile;
121    class ConfigFileEntry;
122    class ConfigFileEntryComment;
123    class ConfigFileEntryValue;
124    class ConfigFileManager;
125    class ConfigFileSection;
126    struct ConfigFileType;
127    class ConfigValueContainer;
128    class ConsoleCommand;
129    class Core;
130    class DynLib;
131    class DynLibManager;
132    struct Event;
133    class EventState;
134    class Executor;
135    template <class T>
136    class ExecutorMember;
137    class ExecutorStatic;
138    class Factory;
139    class Functor;
140    template <class T>
141    class FunctorMember;
142    class FunctorStatic;
143    class Game;
144    class GameState;
145    struct GameStateInfo;
146    struct GameStateTreeNode;
147    class GraphicsManager;
148    class GUIManager;
149    class Identifier;
150    class IOConsole;
151    class IRC;
152    template <class T>
153    class Iterator;
154    class Language;
155    class LuaState;
156    class MemoryArchive;
157    class MemoryArchiveFactory;
158    class MetaObjectList;
159    class MetaObjectListElement;
160    class Namespace;
161    class NamespaceNode;
162    template <class T>
163    class ObjectList;
164    class ObjectListBase;
165    class ObjectListBaseElement;
166    template <class T>
167    class ObjectListElement;
168    template <class T>
169    class ObjectListIterator;
170    class OgreWindowEventListener;
171    class OrxonoxClass;
172    class PathConfig;
173    struct ResourceInfo;
174    class Shell;
175    class ShellListener;
176    template <class T>
177    class SmartPtr;
178    template <class T>
179    class SubclassIdentifier;
180    class TclBind;
181    struct TclInterpreterBundle;
182    template <class T>
183    class TclThreadList;
184    class TclThreadManager;
185    class Template;
186    class Thread;
187    class ThreadPool;
188    template <class T>
189    class WeakPtr;
190    class WindowEventListener;
191    class XMLFile;
192    class XMLNameListener;
193    template <class T, class O>
194    class XMLPortClassObjectContainer;
195    template <class T>
196    class XMLPortClassParamContainer;
197    class XMLPortObjectContainer;
198    class XMLPortParamContainer;
199
200    // Input
201    class BaseCommand;
202    class BufferedParamCommand;
203    class Button;
204    class HalfAxis;
205    class InputBuffer;
206    class InputDevice;
207    template <class Traits>
208    class InputDeviceTemplated;
209    class InputHandler;
210    class InputManager;
211    class InputState;
212    struct InputStatePriority;
213    class JoyStickQuantityListener;
214    class JoyStick;
215    class KeyBinder;
216    class KeyBinderManager;
217    class Keyboard;
218    class KeyDetector;
219    class KeyEvent;
220    class Mouse;
221    class ParamCommand;
222    class SimpleCommand;
223}
224
225// CppTcl
226namespace Tcl
227{
228    class interpreter;
229    class object;
230}
231
232// Boost
233namespace boost
234{
235    namespace filesystem
236    {
237        struct path_traits;
238        template <class String, class Traits> class basic_path;
239        typedef basic_path<std::string, path_traits> path;
240    }
241    class thread;
242    class mutex;
243    class shared_mutex;
244    class condition_variable;
245}
246
247// Ogre
248namespace Ogre
249{
250    class DataStream;
251    template <class T> class SharedPtr;
252    typedef SharedPtr<DataStream> DataStreamPtr;
253}
254namespace orxonox
255{
256    // Import the Ogre::DataStream
257    using Ogre::DataStream;
258    using Ogre::DataStreamPtr;
259}
260
261// CEGUI
262namespace CEGUI
263{
264    class DefaultLogger;
265    class Logger;
266    class LuaScriptModule;
267
268    class OgreCEGUIRenderer;
269    class OgreCEGUIResourceProvider;
270    class OgreCEGUITexture;
271}
272
273// Lua
274struct lua_State;
275
276// TinyXML and TinyXML++
277class TiXmlString;
278class TiXmlOutStream;
279class TiXmlNode;
280class TiXmlHandle;
281class TiXmlDocument;
282class TiXmlElement;
283class TiXmlComment;
284class TiXmlUnknown;
285class TiXmlAttribute;
286class TiXmlText;
287class TiXmlDeclaration;
288class TiXmlParsingData;
289namespace ticpp
290{
291    class Document;
292    class Element;
293    class Declaration;
294    class StylesheetReference;
295    class Text;
296    class Comment;
297    class Attribute;
298}
299namespace orxonox
300{
301    using ticpp::Element;
302}
303
304#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.