osPipe.h

00001 
00002 /* Copyright (c) 2009, Stefan Eilemann <eile@equalizergraphics.com>
00003                      , Makhinya Maxim
00004  *
00005  * This library is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Lesser General Public License version 2.1 as published
00007  * by the Free Software Foundation.
00008  *  
00009  * This library is distributed in the hope that it will be useful, but WITHOUT
00010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00011  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00012  * details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this library; if not, write to the Free Software Foundation, Inc.,
00016  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  */
00018 
00019 #ifndef EQ_OS_PIPE_H
00020 #define EQ_OS_PIPE_H
00021 
00022 #include <eq/client/windowSystem.h> // GLEW
00023 
00024 #include <eq/base/base.h>
00025 #include <string>
00026 
00027 namespace eq
00028 {
00029     class Pipe;
00030 
00038     class EQ_EXPORT OSPipe
00039     {
00040     public:
00041         OSPipe( Pipe* parent );
00042         virtual ~OSPipe( );
00043 
00047         virtual bool configInit( ) = 0;
00048 
00050         virtual void configExit( ) = 0;
00052 
00054         const std::string & getErrorMessage() const { return _error; }
00055 
00057         Pipe* getPipe() { return _pipe; }
00058         
00060         const Pipe* getPipe() const { return _pipe; }
00061 
00063         WGLEWContext* wglewGetContext() { return _wglewContext; }
00064 
00065     protected:
00076         void setErrorMessage( const std::string& message ) { _error = message; }
00078 
00080         Pipe* const _pipe;
00081 
00083         std::string _error;
00084 
00086         WGLEWContext*   _wglewContext;
00087 
00088         union // placeholder for binary-compatible changes
00089         {
00090             char dummy[64];
00091         };
00092     };
00093 }
00094 
00095 #endif //EQ_OS_PIPE_H
00096 
Generated on Mon Aug 10 18:58:40 2009 for Equalizer 0.9 by  doxygen 1.5.8