osPipe.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef EQ_OS_PIPE_H
00020 #define EQ_OS_PIPE_H
00021
00022 #include <eq/client/windowSystem.h>
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
00089 {
00090 char dummy[64];
00091 };
00092 };
00093 }
00094
00095 #endif //EQ_OS_PIPE_H
00096