Equalizer
1.4.1
|
00001 00002 /* Copyright (c) 2009, Philippe Robert <philippe.robert@gmail.com> 00003 * 2010-2011, Stefan Eilemann <eile@eyescale.ch> 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_COMPUTE_CONTEXT_H 00020 #define EQ_COMPUTE_CONTEXT_H 00021 00022 #include <eq/client/api.h> 00023 #include <eq/client/types.h> 00024 00025 namespace eq 00026 { 00035 class ComputeContext 00036 { 00037 public: 00041 EQ_API ComputeContext( Pipe* parent ); 00042 00044 EQ_API virtual ~ComputeContext(); 00045 00049 Pipe* getPipe() { return _pipe; } 00050 00052 const Pipe* getPipe() const { return _pipe; } 00054 00058 EQ_API virtual bool configInit() = 0; 00059 00061 EQ_API virtual void configExit() = 0; 00063 00064 protected: 00076 void setError( const uint32_t error ); 00078 00079 private: 00081 Pipe* const _pipe; 00082 00083 struct Private; 00084 Private* _private; // placeholder for binary-compatible changes 00085 00086 }; 00087 } 00088 00089 #endif // EQ_COMPUTE_CONTEXT_H