Equalizer  1.8.0
Parallel Rendering Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
systemPipe.h
1 
2 /* Copyright (c) 2009-2013, Stefan Eilemann <eile@equalizergraphics.com>
3  * 2009, Maxim Makhinya
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #ifndef EQ_SYSTEM_PIPE_H
20 #define EQ_SYSTEM_PIPE_H
21 
22 #include <eq/client/api.h>
23 #include <eq/client/error.h> // enum
24 #include <eq/client/types.h>
25 #include <string>
26 
27 namespace eq
28 {
37  class SystemPipe
38  {
39  public:
41  EQ_API SystemPipe( Pipe* parent );
42 
44  EQ_API virtual ~SystemPipe( );
45 
49  EQ_API virtual bool configInit() = 0;
50 
52  EQ_API virtual void configExit() = 0;
54 
56  Pipe* getPipe() { return _pipe; }
57 
59  const Pipe* getPipe() const { return _pipe; }
60 
61  protected:
69  EQ_API EventOCommand sendError( const uint32_t error );
71 
72  private:
74  Pipe* const _pipe;
75  };
76 }
77 
78 #endif // EQ_SYSTEM_PIPE_H
virtual EQ_API bool configInit()=0
Initialize the GPU.
const Pipe * getPipe() const
Definition: systemPipe.h:59
EQ_API SystemPipe(Pipe *parent)
Create a new SstemPipe for the given eq::Pipe.
virtual EQ_API ~SystemPipe()
Destroy the SystemPipe.
Pipe * getPipe()
Definition: systemPipe.h:56
A Pipe represents a graphics card (GPU) on a Node.
EQ_API EventOCommand sendError(const uint32_t error)
Send a pipe error event to the application node.
The interface definition for system-specific GPU handling.
Definition: systemPipe.h:37
virtual EQ_API void configExit()=0
De-initialize the GPU.