Equalizer  1.6.1
systemPipe.h
1 
2 /* Copyright (c) 2009-2012, 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 
62  EQ_API eq::fabric::Error getError() const;
63 
64  protected:
72  EQ_API void setError( const uint32_t error );
74 
75  private:
77  Pipe* const _pipe;
78 
79  struct Private;
80  Private* _private; // placeholder for binary-compatible changes
81  };
82 }
83 
84 #endif // EQ_SYSTEM_PIPE_H
85 
virtual ~SystemPipe()
Destroy the SystemPipe.
void setError(const uint32_t error)
Set an error code why the last operation failed.
Error
Defines errors produced by Equalizer classes.
A Pipe represents a graphics card (GPU) on a Node.
virtual void configExit()=0
De-initialize the GPU.
The interface definition for system-specific GPU handling.
Definition: systemPipe.h:37
Pipe * getPipe()
Definition: systemPipe.h:56
const Pipe * getPipe() const
Definition: systemPipe.h:59
SystemPipe(Pipe *parent)
Create a new SstemPipe for the given eq::Pipe.
eq::fabric::Error getError() const
virtual bool configInit()=0
Initialize the GPU.