Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/environment/src/libraries/core/CorePrereqs.h @ 8347

Last change on this file since 8347 was 7527, checked in by rgrieder, 14 years ago

Added _LibraryPrivate macros to all LibraryPrereqs.h files.
You can use these to declare classes that are only used internally and don't need to have any exported symbols.

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