Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/consolecommands3/src/libraries/core/CorePrereqs.h @ 7204

Last change on this file since 7204 was 7204, checked in by landauf, 14 years ago

adjusted includes in all other files

  • Property svn:eol-style set to native
File size: 7.6 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#include <boost/version.hpp>
40
41//-----------------------------------------------------------------------
42// Shared library settings
43//-----------------------------------------------------------------------
44
45#if defined(ORXONOX_PLATFORM_WINDOWS) && !defined( CORE_STATIC_BUILD )
46#  ifdef CORE_SHARED_BUILD
47#    define _CoreExport __declspec(dllexport)
48#  else
49#    if defined( __MINGW32__ )
50#      define _CoreExport
51#    else
52#      define _CoreExport __declspec(dllimport)
53#    endif
54#  endif
55#elif defined ( ORXONOX_GCC_VISIBILITY )
56#  define _CoreExport  __attribute__ ((visibility("default")))
57#else
58#  define _CoreExport
59#endif
60
61//-----------------------------------------------------------------------
62// Constants
63//-----------------------------------------------------------------------
64
65namespace orxonox
66{
67    static const uint32_t OBJECTID_UNKNOWN = static_cast<uint32_t>(-1);
68}
69
70//-----------------------------------------------------------------------
71// Enums
72//-----------------------------------------------------------------------
73
74namespace orxonox
75{
76    namespace XMLPort
77    {
78        enum Mode
79        {
80            NOP,
81            LoadObject,
82            SaveObject,
83            ExpandObject
84        };
85    }
86
87    namespace ConfigFileType
88    {
89        enum Value
90        {
91            Settings,
92            JoyStickCalibration,
93            CommandHistory
94            // Don't forget to adjust the array size in the ConfigFileManager when adding a new entry here!
95        };
96    }
97
98    namespace KeybindMode
99    {
100        enum Value
101        {
102            OnPress,
103            OnHold,
104            OnRelease,
105            None
106        };
107    };
108}
109
110//-----------------------------------------------------------------------
111// Forward declarations
112//-----------------------------------------------------------------------
113
114namespace orxonox
115{
116    typedef std::string LanguageEntryLabel;
117
118    class BaseObject;
119    template <class T>
120    class ClassFactory;
121    template <class T>
122    class ClassIdentifier;
123    class ClassTreeMask;
124    class ClassTreeMaskIterator;
125    class ClassTreeMaskNode;
126    class ClassTreeMaskObjectIterator;
127    class CommandLineParser;
128    class CommandLineArgument;
129    class ConfigFile;
130    class ConfigFileEntry;
131    class ConfigFileEntryComment;
132    class ConfigFileEntryValue;
133    class ConfigFileManager;
134    class ConfigFileSection;
135    class ConfigValueContainer;
136    class Core;
137    class DynLib;
138    class DynLibManager;
139    struct Event;
140    class EventState;
141    class Factory;
142    class Game;
143    class GameState;
144    struct GameStateInfo;
145    struct GameStateTreeNode;
146    class GraphicsManager;
147    class GUIManager;
148    class Identifier;
149    template <class T>
150    class Iterator;
151    class Language;
152    class LuaFunctor;
153    class LuaState;
154    class MemoryArchive;
155    class MemoryArchiveFactory;
156    class MetaObjectList;
157    class MetaObjectListElement;
158    class Namespace;
159    class NamespaceNode;
160    template <class T>
161    class ObjectList;
162    class ObjectListBase;
163    class ObjectListBaseElement;
164    template <class T>
165    class ObjectListElement;
166    template <class T>
167    class ObjectListIterator;
168    class OgreWindowEventListener;
169    class OrxonoxClass;
170    class PathConfig;
171    struct ResourceInfo;
172    class SettingsConfigFile;
173    template <class T>
174    class SmartPtr;
175    template <class T>
176    class SubclassIdentifier;
177    class Template;
178    class Thread;
179    class ThreadPool;
180    template <class T>
181    class WeakPtr;
182    class WindowEventListener;
183    class XMLFile;
184    class XMLNameListener;
185    template <class T, class O>
186    class XMLPortClassObjectContainer;
187    template <class T>
188    class XMLPortClassParamContainer;
189    class XMLPortObjectContainer;
190    class XMLPortParamContainer;
191
192    // Command
193    class ArgumentCompleter;
194    class ArgumentCompletionListElement;
195    class CommandEvaluation;
196    class ConsoleCommand;
197    class Executor;
198    template <class T>
199    class ExecutorMember;
200    class ExecutorStatic;
201    class Functor;
202    template <class T>
203    class FunctorMember;
204    class FunctorStatic;
205    class IOConsole;
206    class IRC;
207    class Shell;
208    class ShellListener;
209    class TclBind;
210    struct TclInterpreterBundle;
211    template <class T>
212    class TclThreadList;
213    class TclThreadManager;
214
215    // Input
216    class BaseCommand;
217    class BufferedParamCommand;
218    class Button;
219    class HalfAxis;
220    class InputBuffer;
221    class InputDevice;
222    template <class Traits>
223    class InputDeviceTemplated;
224    class InputHandler;
225    class InputManager;
226    class InputState;
227    struct InputStatePriority;
228    class JoyStickQuantityListener;
229    class JoyStick;
230    class KeyBinder;
231    class KeyBinderManager;
232    class Keyboard;
233    class KeyDetector;
234    class KeyEvent;
235    class Mouse;
236    class ParamCommand;
237    class SimpleCommand;
238}
239
240#include "command/FunctorPtr.h"
241#include "command/ExecutorPtr.h"
242
243// CppTcl
244namespace Tcl
245{
246    class interpreter;
247    class object;
248}
249
250// Boost
251namespace boost
252{
253#if (BOOST_VERSION < 104400)
254    namespace filesystem
255    {
256        struct path_traits;
257        template <class String, class Traits> class basic_path;
258        typedef basic_path<std::string, path_traits> path;
259    }
260#else
261    namespace filesystem2
262    {
263        struct path_traits;
264        template <class String, class Traits> class basic_path;
265        typedef basic_path<std::string, path_traits> path;
266    }
267    namespace filesystem
268    {
269        using filesystem2::basic_path;
270        using filesystem2::path_traits;
271        using filesystem2::path;
272    }
273#endif
274    class thread;
275    class mutex;
276    class shared_mutex;
277    class condition_variable;
278}
279
280// Ogre
281namespace Ogre
282{
283    class DataStream;
284    template <class T> class SharedPtr;
285    typedef SharedPtr<DataStream> DataStreamPtr;
286}
287namespace orxonox
288{
289    // Import the Ogre::DataStream
290    using Ogre::DataStream;
291    using Ogre::DataStreamPtr;
292}
293
294// CEGUI
295namespace CEGUI
296{
297    class DefaultLogger;
298    class Logger;
299    class LuaScriptModule;
300
301    class OgreCEGUIRenderer;
302    class OgreCEGUIResourceProvider;
303    class OgreCEGUITexture;
304}
305
306// Lua
307struct lua_State;
308
309// TinyXML and TinyXML++
310class TiXmlString;
311class TiXmlOutStream;
312class TiXmlNode;
313class TiXmlHandle;
314class TiXmlDocument;
315class TiXmlElement;
316class TiXmlComment;
317class TiXmlUnknown;
318class TiXmlAttribute;
319class TiXmlText;
320class TiXmlDeclaration;
321class TiXmlParsingData;
322namespace ticpp
323{
324    class Document;
325    class Element;
326    class Declaration;
327    class StylesheetReference;
328    class Text;
329    class Comment;
330    class Attribute;
331}
332namespace orxonox
333{
334    using ticpp::Element;
335}
336
337#endif /* _CorePrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.