iipsrv
0.9.9
|
00001 00002 /* IIP fcgi server module 00003 00004 Copyright (C) 2000-2003 Ruven Pillay. 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 00022 #ifdef ENABLE_DL 00023 00024 #ifndef _DSOIMAGE_H 00025 #define _DSOIMAGE_H 00026 00027 00028 #include <string> 00029 #include "IIPImage.h" 00030 00031 00033 00034 00035 class DSOImage : public IIPImage{ 00036 00037 private: 00038 00040 std::string modulePath; 00041 00043 std::string description; 00044 00046 void *libHandle; 00047 00049 void loadLibrary() throw (std::string); 00050 00052 void unloadLibrary() throw (std::string); 00053 00055 std::string getError(); 00056 00057 00058 public: 00059 00061 DSOImage() : IIPImage() { 00062 libHandle = NULL; 00063 tile_width = 0; tile_height = 0; 00064 numResolutions = 0; 00065 }; 00066 00068 00070 DSOImage( const std::string& s ) : IIPImage( s ) { 00071 libHandle = NULL; 00072 tile_width = 0; tile_height = 0; 00073 numResolutions = 0; 00074 }; 00075 00077 00079 DSOImage( const IIPImage& image ) : IIPImage( image ) { 00080 libHandle = NULL; 00081 tile_width = 0; tile_height = 0; 00082 numResolutions = 0; 00083 }; 00084 00086 ~DSOImage(); 00087 00088 00090 const std::string& getDescription() { return description; }; 00091 00093 00095 void Load( const std::string& p ) throw (std::string); 00096 00098 void openImage() throw (std::string); 00099 00101 void closeImage() throw (std::string); 00102 00103 00105 00110 RawTile getTile( int x, int y, int r, int t ) throw (std::string); 00111 00112 00113 }; 00114 00115 00116 #endif 00117 00118 #endif