dlhandler.h Source File

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

dlhandler.h
Go to the documentation of this file.

    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.org/>
    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
    00067         static bool getConvDirectory(std::string& convPath);
    00068
    00080         static int findFiles (std::vector <std::string>& file_list,
    00081                         const std::string& pattern, const std::string& path);
    00082
    00089         static int findFiles (std::vector<std::string>& file_list,const std::string &filename);
    00090
    00092         static bool openLib(const std::string& lib_name);
    00093
    00095         static const char* getFormatFilePattern();
    00096
    00098         static char getSeparator();
    00099
    00101         static void Sleep(int n);
    00102
    00103 };
    00104
    00105 #endif  /* DLHANDLER_H*/
    00106

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines