Equalizer
1.2.1
|
00001 00002 /* Copyright (c) 2009, Cedric Stalder <cedric.stalder@gmail.com> 00003 * 2009-2011, Stefan Eilemann <eile@equalizergraphics.com> 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 COBASE_DSO_H 00020 #define COBASE_DSO_H 00021 00022 #include <co/base/api.h> 00023 #include <co/base/nonCopyable.h> 00024 00025 #include <string> 00026 00027 namespace co 00028 { 00029 namespace base 00030 { 00031 class DSOPrivate; 00032 00034 class DSO : public NonCopyable 00035 { 00036 public: 00038 COBASE_API DSO(); 00039 00041 COBASE_API ~DSO(); 00042 00050 COBASE_API bool open( const std::string& fileName ); 00051 00056 COBASE_API void close(); 00057 00063 COBASE_API void* getFunctionPointer( const std::string& functionName ); 00064 00066 COBASE_API bool isOpen() const; 00067 00068 private: 00069 DSOPrivate* _data; 00070 }; 00071 00072 } 00073 } 00074 00075 #endif //COBASE_DSO_H