00001 /********************************************************************** 00002 dlhandler.h - Dynamic loader for file format modules. 00003 00004 Copyright (C) 2004-2005 by Chris Morley 00005 00006 This file is part of the Open Babel project. 00007 For more information, see <http://openbabel.sourceforge.net/> 00008 00009 This program is free software; you can redistribute it and/or modify 00010 it under the terms of the GNU General Public License as published by 00011 the Free Software Foundation version 2 of the License. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 ***********************************************************************/ 00018 00019 #ifndef OB_DLHANDLER_H 00020 #define OB_DLHANDLER_H 00021 00022 #include <openbabel/babelconfig.h> 00023 00024 #include <string> 00025 #include <vector> 00026 00027 // These macros are used in DLL builds. If they have not 00028 // been set in babelconfig.h, define them as nothing. 00029 #ifndef OBERROR 00030 #define OBERROR 00031 #endif 00032 #ifndef OBDLL 00033 #define OBDLL 00034 #endif 00035 00046 class OBERROR DLHandler 00047 { 00048 public: 00049 00054 static bool getConvDirectory(std::string& convPath); 00055 00065 static int findFiles (std::vector <std::string>& file_list, 00066 const std::string& pattern, const std::string& path); 00067 00074 static int findFiles (std::vector<std::string>& file_list,const std::string &filename); 00075 00077 static bool openLib(const std::string& lib_name); 00078 00080 static const char* getFormatFilePattern(); 00081 00083 static char getSeparator(); 00084 00086 static void Sleep(int n); 00087 00088 }; 00089 00090 #endif /* DLHANDLER_H*/ 00091
This file is part of the documentation for Open Babel, version 2.2.0.