-
Notifications
You must be signed in to change notification settings - Fork 102
/
types.h
121 lines (109 loc) · 3.43 KB
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* Copyright (c) 2007-2013, Stefan Eilemann <eile@equalizergraphics.com>
* 2011-2014, Daniel Nachbaur <danielnachbaur@gmail.com>
* 2010, Cedric Stalder <cedric.stalder@gmail.com>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 2.1 as published
* by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef EQFABRIC_TYPES_H
#define EQFABRIC_TYPES_H
#include <eq/fabric/api.h>
#include <eq/fabric/errorCodes.h>
#include <eq/fabric/eventEnums.h>
#include <eq/fabric/vmmlib.h>
#include <co/types.h>
#include <lunchbox/refPtr.h>
#include <lunchbox/uint128_t.h>
#include <lunchbox/visitorResult.h>
#ifdef _WIN32
# define EQ_DEFAULT_PORT (4242)
#else
// #241: Avoid using privilege ports below 1024
# define EQ_DEFAULT_PORT (( getuid() % 64511 ) + 1024 )
#endif
namespace eq
{
namespace fabric
{
using namespace eventEnums;
class Client;
class ColorMask;
class ConfigParams;
class Equalizer;
class Error;
class ErrorRegistry;
class FrameData;
class Frustum;
class Pixel;
class PixelViewport;
class Projection;
class Range;
class RenderContext;
class SubPixel;
class SwapBarrier;
class Tile;
class Viewport;
class Wall;
class WindowSettings;
class Zoom;
struct CanvasPath;
struct ChannelPath;
struct DrawableConfig;
struct Event;
struct GPUInfo;
struct KeyEvent;
struct LayoutPath;
struct NodePath;
struct ResizeEvent;
struct ObserverPath;
struct PipePath;
struct PointerEvent;
struct SegmentPath;
struct Statistic;
struct ViewPath;
struct WindowPath;
template< class, class > class Channel;
template< class, class > class Observer;
template< class, class, class > class Layout;
template< class, class, class > class Segment;
template< class, class, class > class View;
template< class, class, class, class > class Window;
template< class, class, class, class > class Canvas;
template< class, class, class, class > class Node;
template< class, class, class, class > class Pipe;
template< class, class, class, class, class, class > class Server;
template< class, class, class, class, class, class, class > class Config;
template< class > class LeafVisitor;
template< class, class > class ElementVisitor;
template< class, class, class, class, class> class ConfigVisitor;
/** A vector of eq::fabric::Error */
typedef std::vector< Error > Errors;
/** A vector of eq::Statistic events */
typedef std::vector< Statistic > Statistics;
/** A vector of eq::Viewport */
typedef std::vector< Viewport > Viewports;
using co::Strings;
using co::StringsCIter;
typedef co::ObjectOCommand EventOCommand;
using lunchbox::uint128_t;
using lunchbox::VisitorResult;
using lunchbox::TRAVERSE_CONTINUE;
using lunchbox::TRAVERSE_PRUNE;
using lunchbox::TRAVERSE_TERMINATE;
typedef lunchbox::RefPtr< Client > ClientPtr;
typedef lunchbox::RefPtr< const Client > ConstClientPtr;
typedef lunchbox::RefPtr< SwapBarrier > SwapBarrierPtr;
typedef lunchbox::RefPtr< const SwapBarrier > SwapBarrierConstPtr;
}
}
#endif // EQFABRIC_TYPES_H