All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Qore.h
Go to the documentation of this file.
/* -*- mode: c++; indent-tabs-mode: nil -*- */
/*
Qore.h
Qore Programming Language
Copyright 2003 - 2013 David Nichols
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _QORE_QORE_H
#define _QORE_QORE_H
// include configuration first if compiling the library
#ifdef _QORE_LIB_INTERN
#include <qore/intern/config.h>
#endif
#include <qore/common.h>
#include <qore/QoreCounter.h>
DLLEXPORT extern QoreCounter thread_counter;
#include <qore/QoreEncoding.h>
#include <qore/ReferenceHolder.h>
#include <qore/AbstractQoreNode.h>
#include <qore/QoreNodeEvalOptionalRefHolder.h>
#include <qore/QoreListNode.h>
#include <qore/QoreHashNode.h>
#include <qore/AbstractPrivateData.h>
#include <qore/QoreObject.h>
#include <qore/QoreProgram.h>
#include <qore/ModuleManager.h>
#include <qore/QoreLib.h>
#include <qore/QoreStringNode.h>
#include <qore/DateTimeNode.h>
#include <qore/QoreBigIntNode.h>
#include <qore/QoreBoolNode.h>
#include <qore/QoreFloatNode.h>
#include <qore/QoreNumberNode.h>
#include <qore/QoreNothingNode.h>
#include <qore/QoreNullNode.h>
#include <qore/QoreNet.h>
#include <qore/QoreURL.h>
#include <qore/QoreFile.h>
#include <qore/QoreQueueHelper.h>
#include <qore/QoreRWLock.h>
#include <qore/QoreNamespace.h>
#include <qore/ExceptionSink.h>
#include <qore/BinaryNode.h>
#include <qore/QoreString.h>
#include <qore/DateTime.h>
#include <qore/QoreType.h>
#include <qore/BuiltinFunctionList.h>
#include <qore/qore_thread.h>
#include <qore/QoreThreadLock.h>
#include <qore/QoreThreadLocalStorage.h>
#include <qore/QoreCondition.h>
#include <qore/DBI.h>
#include <qore/Datasource.h>
#include <qore/SQLStatement.h>
#include <qore/QoreClass.h>
#include <qore/ScopeGuard.h>
#include <qore/SystemEnvironment.h>
#include <qore/AutoVLock.h>
#include <qore/CallReferenceNode.h>
#include <qore/ReferenceNode.h>
#include <qore/params.h>
#include <qore/QoreTypeSafeReferenceHelper.h>
#include <qore/QoreEvents.h>
#include <qore/qore-version.h>
DLLEXPORT extern const char* qore_version_string;
DLLEXPORT extern int qore_version_major;
DLLEXPORT extern int qore_version_minor;
DLLEXPORT extern int qore_version_sub;
DLLEXPORT extern int qore_build_number;
DLLEXPORT extern int qore_target_bits;
DLLEXPORT extern const char* qore_target_os;
DLLEXPORT extern const char* qore_target_arch;
DLLEXPORT extern const char* qore_module_dir;
DLLEXPORT extern const char* qore_cplusplus_compiler;
DLLEXPORT extern const char* qore_cflags;
DLLEXPORT extern const char* qore_ldflags;
DLLEXPORT extern const char* qore_build_host;
DLLEXPORT extern const char* qore_mpfr_info;
DLLEXPORT bool qore_has_debug();
DLLEXPORT extern int qore_min_mod_api_major;
DLLEXPORT extern int qore_min_mod_api_minor;
DLLEXPORT extern const QoreStringMaker mpfrInfo;
#define QLO_NONE 0
#define QLO_DISABLE_SIGNAL_HANDLING (1 << 0)
#define QLO_DISABLE_OPENSSL_INIT (1 << 1)
#define QLO_DISABLE_OPENSSL_CLEANUP (1 << 2)
#define QLO_DISABLE_OPENSSL_INIT_CLEANUP (QLO_DISABLE_OPENSSL_INIT|QLO_DISABLE_OPENSSL_CLEANUP)
#define QLO_CLEANUP_MASK (QLO_DISABLE_OPENSSL_CLEANUP)
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);
DLLEXPORT void qore_cleanup();
DLLEXPORT int qore_get_library_init_options();
DLLEXPORT int qore_set_library_cleanup_options(int options);
DLLEXPORT bool qore_check_option(int opt);
#include <qore/support.h>
// include private definitions if compiling the library
#ifdef _QORE_LIB_INTERN
#include <qore/intern/QoreLibIntern.h>
#endif
#endif // _QORE_QORE_H