|
Qore Programming Language
0.8.3
|
00001 /* -*- mode: c++; indent-tabs-mode: nil -*- */ 00002 /* 00003 Qore.h 00004 00005 Qore Programming Language 00006 00007 Copyright 2003 - 2011 David Nichols 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Lesser General Public 00011 License as published by the Free Software Foundation; either 00012 version 2.1 of the License, or (at your option) any later version. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with this library; if not, write to the Free Software 00021 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00024 #ifndef _QORE_QORE_H 00025 00026 #define _QORE_QORE_H 00027 00032 // include configuration first if compiling the library 00033 #ifdef _QORE_LIB_INTERN 00034 #include <qore/intern/config.h> 00035 #endif 00036 00037 #include <qore/common.h> 00038 #include <qore/QoreEncoding.h> 00039 #include <qore/ReferenceHolder.h> 00040 #include <qore/AbstractQoreNode.h> 00041 #include <qore/QoreNodeEvalOptionalRefHolder.h> 00042 #include <qore/QoreListNode.h> 00043 #include <qore/QoreProgram.h> 00044 #include <qore/ModuleManager.h> 00045 #include <qore/QoreLib.h> 00046 #include <qore/QoreStringNode.h> 00047 #include <qore/DateTimeNode.h> 00048 #include <qore/QoreHashNode.h> 00049 #include <qore/QoreBigIntNode.h> 00050 #include <qore/QoreBoolNode.h> 00051 #include <qore/QoreFloatNode.h> 00052 #include <qore/QoreNothingNode.h> 00053 #include <qore/QoreNullNode.h> 00054 #include <qore/QoreNet.h> 00055 #include <qore/QoreURL.h> 00056 #include <qore/QoreFile.h> 00057 #include <qore/AbstractPrivateData.h> 00058 #include <qore/QoreObject.h> 00059 #include <qore/QoreRWLock.h> 00060 #include <qore/QoreNamespace.h> 00061 #include <qore/ExceptionSink.h> 00062 #include <qore/BinaryNode.h> 00063 #include <qore/QoreString.h> 00064 #include <qore/DateTime.h> 00065 #include <qore/QoreType.h> 00066 #include <qore/BuiltinFunctionList.h> 00067 #include <qore/qore_thread.h> 00068 #include <qore/QoreThreadLock.h> 00069 #include <qore/QoreThreadLocalStorage.h> 00070 #include <qore/QoreCondition.h> 00071 #include <qore/DBI.h> 00072 #include <qore/Datasource.h> 00073 #include <qore/SQLStatement.h> 00074 #include <qore/QoreClass.h> 00075 #include <qore/ScopeGuard.h> 00076 #include <qore/SystemEnvironment.h> 00077 #include <qore/AutoVLock.h> 00078 #include <qore/CallReferenceNode.h> 00079 #include <qore/ReferenceNode.h> 00080 #include <qore/params.h> 00081 #include <qore/QoreTypeSafeReferenceHelper.h> 00082 #include <qore/QoreEvents.h> 00083 #include <qore/qore-version.h> 00084 00086 DLLEXPORT extern const char *qore_version_string; 00087 00089 DLLEXPORT extern int qore_version_major; 00090 00092 DLLEXPORT extern int qore_version_minor; 00093 00095 DLLEXPORT extern int qore_version_sub; 00096 00098 DLLEXPORT extern int qore_build_number; 00099 00101 DLLEXPORT extern int qore_target_bits; 00102 00104 DLLEXPORT extern const char *qore_target_os; 00105 00107 DLLEXPORT extern const char *qore_target_arch; 00108 00110 DLLEXPORT extern const char *qore_module_dir; 00111 00113 DLLEXPORT extern const char *qore_cplusplus_compiler; 00114 00116 DLLEXPORT extern const char *qore_cflags; 00117 00119 DLLEXPORT extern const char *qore_ldflags; 00120 00122 DLLEXPORT extern const char *qore_build_host; 00123 00125 DLLEXPORT bool qore_has_debug(); 00126 00128 DLLEXPORT extern int qore_min_mod_api_major; 00129 00131 DLLEXPORT extern int qore_min_mod_api_minor; 00132 00133 #define QLO_NONE 0 //!< no options (default) 00134 #define QLO_DISABLE_SIGNAL_HANDLING 1 << 0 //!< disable qore signal handling entirely 00135 00137 00146 DLLEXPORT void qore_init(qore_license_t license = QL_GPL, const char *default_encoding = 0, bool show_module_errors = false, int init_options = QLO_NONE); 00147 00149 00153 DLLEXPORT void qore_cleanup(); 00154 00155 #include <qore/support.h> 00156 00157 // include private definitions if compiling the library 00158 #ifdef _QORE_LIB_INTERN 00159 #include <qore/intern/QoreLibIntern.h> 00160 #endif 00161 00162 #endif // _QORE_QORE_H