Build internal muparser more simply
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 28 Sep 2021 15:19:07 +0000 (15:19 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 28 Sep 2021 15:19:07 +0000 (15:19 +0000)
40 files changed:
cmake/gmxManageMuparser.cmake
src/external/muparser/CMakeLists.txt [new file with mode: 0644]
src/external/muparser/Changes.txt [new file with mode: 0644]
src/external/muparser/Install.txt [new file with mode: 0644]
src/external/muparser/License.txt [new file with mode: 0644]
src/external/muparser/README [deleted file]
src/external/muparser/README.GROMACS [new file with mode: 0644]
src/external/muparser/README.rst [new file with mode: 0644]
src/external/muparser/appveyor.yml [new file with mode: 0644]
src/external/muparser/docs/Doxyfile [new file with mode: 0644]
src/external/muparser/docs/muparser_doc.html [new file with mode: 0644]
src/external/muparser/include/muParser.h [moved from src/external/muparser/muParser.h with 100% similarity]
src/external/muparser/include/muParserBase.h [moved from src/external/muparser/muParserBase.h with 99% similarity]
src/external/muparser/include/muParserBytecode.h [moved from src/external/muparser/muParserBytecode.h with 100% similarity]
src/external/muparser/include/muParserCallback.h [moved from src/external/muparser/muParserCallback.h with 100% similarity]
src/external/muparser/include/muParserDLL.h [moved from src/external/muparser/muParserDLL.h with 99% similarity]
src/external/muparser/include/muParserDef.h [moved from src/external/muparser/muParserDef.h with 100% similarity]
src/external/muparser/include/muParserError.h [moved from src/external/muparser/muParserError.h with 100% similarity]
src/external/muparser/include/muParserFixes.h [moved from src/external/muparser/muParserFixes.h with 100% similarity]
src/external/muparser/include/muParserInt.h [moved from src/external/muparser/muParserInt.h with 100% similarity]
src/external/muparser/include/muParserTemplateMagic.h [moved from src/external/muparser/muParserTemplateMagic.h with 100% similarity]
src/external/muparser/include/muParserTest.h [moved from src/external/muparser/muParserTest.h with 100% similarity]
src/external/muparser/include/muParserToken.h [moved from src/external/muparser/muParserToken.h with 100% similarity]
src/external/muparser/include/muParserTokenReader.h [moved from src/external/muparser/muParserTokenReader.h with 100% similarity]
src/external/muparser/lib/Readme.txt [new file with mode: 0644]
src/external/muparser/muparser.pc.in [new file with mode: 0644]
src/external/muparser/samples/example1/example1.cpp [new file with mode: 0644]
src/external/muparser/samples/example2/Readme.txt [new file with mode: 0644]
src/external/muparser/samples/example2/example2.c [new file with mode: 0644]
src/external/muparser/src/muParser.cpp [moved from src/external/muparser/muParser.cpp with 100% similarity]
src/external/muparser/src/muParserBase.cpp [moved from src/external/muparser/muParserBase.cpp with 99% similarity]
src/external/muparser/src/muParserBytecode.cpp [moved from src/external/muparser/muParserBytecode.cpp with 100% similarity]
src/external/muparser/src/muParserCallback.cpp [moved from src/external/muparser/muParserCallback.cpp with 100% similarity]
src/external/muparser/src/muParserDLL.cpp [moved from src/external/muparser/muParserDLL.cpp with 99% similarity]
src/external/muparser/src/muParserError.cpp [moved from src/external/muparser/muParserError.cpp with 100% similarity]
src/external/muparser/src/muParserInt.cpp [moved from src/external/muparser/muParserInt.cpp with 100% similarity]
src/external/muparser/src/muParserTest.cpp [moved from src/external/muparser/muParserTest.cpp with 100% similarity]
src/external/muparser/src/muParserTokenReader.cpp [moved from src/external/muparser/muParserTokenReader.cpp with 100% similarity]
src/external/muparser/test/t_ParserTest.cpp [new file with mode: 0644]
src/gromacs/pulling/tests/CMakeLists.txt

index c4b970332e21241cde7dc1e170238f0cad577c19..0b26a205f7527b60c785e2836f7e5be4229edaad 100644 (file)
@@ -48,31 +48,27 @@ mark_as_advanced(GMX_USE_MUPARSER)
 # linking to work.
 function(gmx_manage_muparser)
     if(GMX_USE_MUPARSER STREQUAL "INTERNAL")
-        # Create an object library for the muparser sources
-        set(BUNDLED_MUPARSER_DIR "${CMAKE_SOURCE_DIR}/src/external/muparser")
-        file(GLOB MUPARSER_SOURCES ${BUNDLED_MUPARSER_DIR}/*.cpp)
-        add_library(muparser_objlib OBJECT ${MUPARSER_SOURCES})
-        # Ensure that the objects can be used in both STATIC and SHARED
-        # libraries.
-        set_target_properties(muparser_objlib PROPERTIES POSITION_INDEPENDENT_CODE ON)
+        # Use cmake's FetchContent to organize the build, even though
+        # the content is already present in src/external. In
+        # particular, it sets up an easy call to add_subdirectory().
+        include(FetchContent)
+        FetchContent_Declare(muparser SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/external/muparser)
+        if (NOT ${muparser}_POPULATED)
+            if (OpenMP_CXX_FLAGS)
+                set(OpenMP_FIND_QUIETLY ON)
+            endif()
+            FetchContent_Populate(muparser)
+        endif()
+        add_subdirectory(${muparser_SOURCE_DIR} ${muparser_BINARY_DIR})
+        if (BUILD_SHARED_LIBS)
+            # Ensure muparser is in the export set called libgromacs,
+            # so that it gets installed along with libgromacs.
+            install(TARGETS muparser EXPORT libgromacs)
+        endif()
         if (WIN32)
-            # Avoid muParser assuming DLL export attributes should be added
-            target_compile_definitions(muparser_objlib PRIVATE MUPARSER_STATIC)
+            gmx_target_warning_suppression(muparser /wd4310 HAS_NO_MSVC_CAST_TRUNCATES_CONSTANT_VALUE)
         endif()
 
-        # Create an INTERFACE (ie. fake) library for muparser, that
-        # libgromacs can depend on. The generator expression for the
-        # target_sources expands to nothing when cmake builds the
-        # export for libgromacs, so that it understands that we don't
-        # install anything for this library - using plain source files
-        # would not convey the right information.
-        add_library(muparser INTERFACE)
-        target_sources(muparser INTERFACE $<TARGET_OBJECTS:muparser_objlib>)
-        target_include_directories(muparser SYSTEM INTERFACE $<BUILD_INTERFACE:${BUNDLED_MUPARSER_DIR}>)
-        # Add the muparser interface library to the libgromacs Export name, even though
-        # we will not be installing any content.
-        install(TARGETS muparser EXPORT libgromacs)
-
         set(HAVE_MUPARSER 1 CACHE INTERNAL "Is muparser found?")
     elseif(GMX_USE_MUPARSER STREQUAL "EXTERNAL")
         # Find an external muparser library.
diff --git a/src/external/muparser/CMakeLists.txt b/src/external/muparser/CMakeLists.txt
new file mode 100644 (file)
index 0000000..861ce5e
--- /dev/null
@@ -0,0 +1,143 @@
+# CMake based on work from @xantares
+cmake_minimum_required (VERSION 3.1.0)
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+
+# By default, build in Release mode. Must appear before project() command
+if (NOT DEFINED CMAKE_BUILD_TYPE)
+  set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type")
+endif ()
+
+project(muParserProject)
+
+
+
+# Bump versions on release
+set(MUPARSER_VERSION_MAJOR 2)
+set(MUPARSER_VERSION_MINOR 3)
+set(MUPARSER_VERSION_PATCH 2)
+set(MUPARSER_VERSION ${MUPARSER_VERSION_MAJOR}.${MUPARSER_VERSION_MINOR}.${MUPARSER_VERSION_PATCH})
+
+# Build options
+#option(ENABLE_SAMPLES "Build the samples" ON)
+#option(ENABLE_OPENMP "Enable OpenMP for multithreading" ON)
+set(ENABLE_OPENMP ${GMX_OPENMP})
+option(BUILD_SHARED_LIBS "Build shared/static libs" ON)
+
+if(ENABLE_OPENMP)
+    find_package(OpenMP REQUIRED)
+    set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
+    set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}")
+endif()
+
+
+# Credit: https://stackoverflow.com/questions/2368811/how-to-set-warning-level-in-cmake/3818084
+if(MSVC)
+    # Force to always compile with W4
+    if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")
+      string(REGEX REPLACE "/W[0-4]" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+    else()
+      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
+    endif()
+elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
+    # Update if necessary
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
+endif()
+
+# include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
+add_library(muparser
+    src/muParserBase.cpp
+    src/muParserBytecode.cpp
+    src/muParserCallback.cpp
+    src/muParser.cpp
+    src/muParserDLL.cpp
+    src/muParserError.cpp
+    src/muParserInt.cpp
+    src/muParserTest.cpp
+    src/muParserTokenReader.cpp
+)
+target_include_directories(muparser SYSTEM PUBLIC
+                           $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
+
+# this compiles the "DLL" interface (C API)
+target_compile_definitions(muparser PRIVATE MUPARSER_DLL)
+
+if (BUILD_SHARED_LIBS)
+  target_compile_definitions(muparser PRIVATE MUPARSERLIB_EXPORTS)
+else ()
+  target_compile_definitions(muparser PUBLIC MUPARSER_STATIC)
+endif()
+
+if (CMAKE_BUILD_TYPE STREQUAL Debug)
+  target_compile_definitions(muparser PRIVATE _DEBUG)
+endif ()
+
+if(ENABLE_OPENMP)
+  target_compile_definitions(muparser PRIVATE MUP_USE_OPENMP)
+endif()
+set_target_properties(muparser PROPERTIES
+    VERSION ${MUPARSER_VERSION}
+    SOVERSION ${MUPARSER_VERSION_MAJOR}
+)
+
+# Install the export set for use with the install-tree
+export(TARGETS muparser FILE "${CMAKE_BINARY_DIR}/muparser-targets.cmake")
+
+if(ENABLE_SAMPLES)
+  add_executable(example1 samples/example1/example1.cpp)
+  target_link_libraries(example1 muparser)
+
+  add_executable(example2 samples/example2/example2.c)
+  target_link_libraries(example2 muparser)
+endif()
+
+# The GNUInstallDirs defines ${CMAKE_INSTALL_DATAROOTDIR}
+# See https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
+include (GNUInstallDirs)
+
+install(TARGETS muparser
+    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
+    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development
+    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT RuntimeLibraries
+)
+
+install(FILES
+    include/muParserBase.h
+    include/muParserBytecode.h
+    include/muParserCallback.h
+    include/muParserDef.h
+    include/muParserDLL.h
+    include/muParserError.h
+    include/muParserFixes.h
+    include/muParser.h
+    include/muParserInt.h
+    include/muParserTemplateMagic.h
+    include/muParserTest.h
+    include/muParserToken.h
+    include/muParserTokenReader.h
+    DESTINATION include
+    COMPONENT Development
+)
+
+# Define variables for the pkg-config file
+set(PACKAGE_NAME muparser)
+configure_file(
+    muparser.pc.in
+    ${CMAKE_BINARY_DIR}/muparser.pc
+    @ONLY
+)
+install(
+    FILES ${CMAKE_BINARY_DIR}/muparser.pc
+    DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
+)
+
+include(CTest)
+enable_testing()
+
+add_executable (t_ParserTest test/t_ParserTest.cpp)
+target_link_libraries(t_ParserTest muparser)
+if (ENABLE_OPENMP)
+    target_link_libraries(t_ParserTest OpenMP::OpenMP_CXX)
+endif()
+add_test (NAME ParserTest COMMAND t_ParserTest)
+
diff --git a/src/external/muparser/Changes.txt b/src/external/muparser/Changes.txt
new file mode 100644 (file)
index 0000000..85c6872
--- /dev/null
@@ -0,0 +1,594 @@
+
+     _____  __ _____________ _______  ______ ___________
+    /     \|  |  \____ \__  \\_  __ \/  ___// __ \_  __ \
+   |  Y Y  \  |  /  |_> > __ \|  | \/\___ \\  ___/|  | \/
+   |__|_|  /____/|   __(____  /__|  /____  >\___  >__|
+         \/      |__|       \/           \/     \/
+    Copyright (C) 2004 - 2020 Ingo Berg
+
+=======================================================================
+    https://muparser.beltoforion.de
+=======================================================================
+
+History:
+--------
+
+Rev 2.3.2: 17.06.2020
+---------------------
+  API-Changes:
+   * removed final keyword from Parser class (added in 2.3.0) as this was breaking existing Applications
+
+  Security Fixes: (The issues were present in all prior stable releases)
+   * Prevented multiple access violations for malformed expressions with if then else and functions taking multiple arguments like "sum(0?1,2,3,4:5)"
+          * https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23410
+
+Rev 2.3.1:
+----------
+Only prerelease with the version number exist Version 2.3.2 replaced it.
+
+
+Rev 2.3.0: 13.06.2020
+---------------------
+  Changes:
+   * made Parser class final
+   * using OpenMP is now the default settings for cmake based builds
+   * added optimization for trivial expressions. (Expressions whose RPN only has a single entry)
+   * introduced a maximum length for expressions (5000 Character)
+   * introduced a maximum length for identifiers (100 Characters)
+   * removed the MUP_MATH_EXCEPTION macro and related functionality. (C++ exceptions for divide by zero or sqrt of a negative number are no longer supported)
+   * removed ParserStack.h (replaced with std::stack)
+   * removed macros for defining E and PI (replaced with a static constants)
+   * source code is now aimed at C++17
+   * the MUP_ASSERT macro is no longer removed in release builds for better protection against segmentation faults
+
+  Security Fixes: (The issues were present in all prior stable releases)
+   * Prevented multiple access violations for malformed expressions with if then else and functions taking multiple arguments like "sum(0?1,2,3,4:5)"
+          * https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23330
+          * https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22922
+          * https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22938
+          * https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23330
+   * Added additional runtime checks for release builds to prevent segmentation faults for invalid expressions
+
+  Bugfixes:
+   * Fixed an issue where the bulk mode could hang on GCC/CLANG builds due to OpenMP chunksize dropping below 1.
+
+Rev 2.2.6: 04.10.2018
+---------------------
+  Changes:
+   * Build system is now based on cmake
+   * several compiler warnings fixed
+
+Rev 2.2.5: 27.04.2015
+---------------------
+  Changes:
+   * example2 extended to work with UNICODE character set
+   * Applied patch from Issue 9
+   
+  Bugfixes:
+   * muChar_t in muParserDLL.h was not set properly when UNICODE was used
+   * muparser.dll did not build on UNICODE systems
+   
+Rev 2.2.4: 02.10.2014
+---------------------
+  Changes:
+   * explicit positive sign allowed
+
+  Bugfixes:
+   * Fix for Issue 6 (https://code.google.com/p/muparser/issues/detail?id=6)
+   * String constants did not work properly. Using more than a single one 
+     was impossible.
+   * Project Files for VS2008 and VS2010 removed from the repository 
+   * Fix for Issue 4 (https://code.google.com/p/muparser/issues/detail?id=4)
+   * Fix for VS2013 64 bit build option
+   * return type of ParserError::GetPos changed to int
+   * OpenMP support enabled in the VS2013 project files and precompiled windows DLL's
+   * Bulkmode did not evaluate properly if "=" and "," operator was used in the expression
+       
+Rev 2.2.3: 22.12.2012
+---------------------
+
+  Removed features:
+   * build files for msvc2005, borland and watcom compiler were removed
+
+  Bugfixes:
+   * Bugfix for Intel Compilers added: The power operator did not work properly 
+     with Intel C++ composer XE 2011.
+     (see https://sourceforge.net/projects/muparser/forums/forum/462843/topic/5117983/index/page/1)
+   * Issue 3509860: Callbacks of functions with string parameters called twice
+     (see http://sourceforge.net/tracker/?func=detail&aid=3509860&group_id=137191&atid=737979)
+   * Issue 3570423: example1 shows slot number in hexadecimal
+     (see https://sourceforge.net/tracker/?func=detail&aid=3570423&group_id=137191&atid=737979)
+   * Fixes for compiling with the "MUP_MATH_EXCEPTIONS" macro definition:
+       - division by zero in constant expressions was reported with the code "ec_GENERIC" 
+          instead of "ecDIV_BY_ZERO"
+        - added throwing of "ecDOMAIN_ERROR" to sqrt and log functions
+
+
+Rev 2.2.2: 18.02.2012
+---------------------
+  Bugfixes:
+   * Optimizer did'nt work properly for division:
+     (see https://sourceforge.net/projects/muparser/forums/forum/462843/topic/5037825)
+
+Rev 2.2.1: 22.01.2012
+---------------------
+  Bugfixes:
+   * Optimizer bug in 64 bit systems fixed
+     (see https://sourceforge.net/projects/muparser/forums/forum/462843/topic/4977977/index/page/1)
+        
+Rev 2.2.0: 22.01.2012
+---------------------
+  Improvements:
+   * Optimizer rewritten and improved. In general: more optimizations are 
+     now applied to the bytecode. The downside is that callback Functions 
+     can no longer be flagged as non-optimizable. (The flag is still present 
+     but ignored) This is necessary since the optimizer had to call the 
+     functions in order to precalculate the result (see Bugfixes). These calls 
+     posed a problems for callback functions with side  effects and if-then-else 
+     clauses in general since they undermined the shortcut evaluation prinziple.
+
+  Bugfixes:
+   * Infix operators where not properly detected in the presence of a constant 
+     name starting with an underscore which is a valid character for infix 
+     operators too (i.e. "-_pi").
+   * Issue 3463353: Callback functions are called twice during the first call to eval.
+   * Issue 3447007: GetUsedVar unnecessaryly executes callback functions.
+
+
+Rev 2.1.0: 19.11.2011
+---------------------
+  New feature:
+   * Function atan2 added
+
+  Bugfixes:
+   * Issue 3438380:  Changed behaviour of tellg with GCC >4.6 led to failures  
+                     in value detection callbacks.
+   * Issue 3438715:  only "double" is a valid MUP_BASETYPE 
+                     MUP_BASETYPE can now be any of:
+                       float, 
+                       double, 
+                       long double, 
+                       short, 
+                       unsigned short, 
+                       unsigned int, 
+                       long,
+                       unsigned long. 
+                     Previousely only floating point types were allowed. 
+                     Using "int" is still not allowed!
+   * Compiler issues with GCC 4.6 fixed
+   * Custom value recognition callbacks added with AddValIdent had lower
+     priority than built in functions. This was causing problems with 
+     hex value recognition since detection of non hex values had priority
+     over the detection of hex values. The "0" in the hex prefix "0x" would 
+     be read as a separate non-hex number leaving the rest of the expression
+     unparseable.
+
+Rev 2.0.0: 04.09.2011
+---------------------
+This release introduces a new version numbering scheme in order to make
+future changes in the ABI apparent to users of the library. The number is
+now based on the SONAME property as used by GNU/Linux. 
+
+  Changes:
+   * Beginning with this version all version numbers will be SONAME compliant
+   * Project files for MSVC2010 added
+   * Project files for MSVC2003 removed
+   * Bytecode parsing engine cleaned up and rewritten
+   * Retrieving all results of expressions made up of comma separate 
+     subexpressions is now possible with a new Eval overload.
+   * Callback functions with fixed number of arguments can now have up to 10 
+     Parameters (previous limit was 5)
+
+  New features:
+   * ternary if-then-else operator added (C++ like; "(...) ? ... : ..." )
+   * new intrinsic binary operators: "&&", "||" (logical and, or)
+   * A new bulkmode allows submitting large arrays as variables to compute large 
+     numbers of expressions with a single call. This can drastically improve 
+     parsing performance when interfacing the library from managed languages like 
+     C#. (It doesn't bring any performance benefit for C++ users though...)
+
+  Removed features:
+   * intrinsic "and", "or" and "xor" operators have been removed. I'd like to let 
+     users the freedom of defining them on their own versions (either as logical or bitwise 
+     operators).
+   * Implementation for complex numbers removed. This was merely a hack. If you 
+     need complex numbers try muParserX which provides native support for them.
+     (see: http://beltoforion.de/muparserx/math_expression_parser_en.html)
+
+  Bugfixes:
+   * User defined operators could collide with built in operators that entirely 
+     contained their identifier. i.e. user defined "&" would not work with the built 
+     in "&&" operator since the user defined operator was detected with a higher 
+     priority resulting in a syntax error.
+   * Detection of unknown variables did not work properly in case a postfix operator
+     was defined which was part of the undefined variable.
+     i.e. If a postfix operator "m" was defined expressions like "multi*1.0" did
+     not detect "multi" as an undefined variable.
+     (Reference:  http://sourceforge.net/tracker/index.php?func=detail&aid=3343891&group_id=137191&atid=737979)
+   * Postfix operators sharing the first few characters were causing bogus parsing exception.
+     (Reference: https://sourceforge.net/tracker/?func=detail&aid=3358571&group_id=137191&atid=737979)
+
+Rev 1.34: 04.09.2010
+--------------------
+  Changes:
+   * The prefix needed for parsing hex values is now "0x" and no longer "$". 
+   * AddValIdent reintroduced into the DLL interface
+
+  New features:
+   * The associativity of binary operators can now be changed. The pow operator 
+     is now right associative. (This is what Mathematica is using) 
+   * Separator can now be used outside of functions. This allows compound 
+     expressions like:
+     "a=10,b=20,c=a*b" The last "argument" will be taken as the return value
+
+  Bugfixes:    
+   * The copy constructor did not copy binary operator definitions. Those were lost
+     in the copied parser instance.
+   * Mixing special characters and alphabetic characters in binary operator names 
+     led to inconsistent parsing behaviour when parsing expressions like "a ++ b" 
+     and "a++b" when "++" is defined as a binary operator. Binary operators must 
+     now consist entirely of special characters or of alphabetic ones.
+     (original bug report: https://sourceforge.net/projects/muparser/forums/forum/462843/topic/3696881/index/page/1)
+   * User defined operators were not exactly handled like built in operators. This 
+     led to inconsistencies in expression evaluation when using them. The results 
+     differed due to slightly different precedence rules.
+   * Using empty string arguments ("") would cause a crash of muParser
+
+
+Rev 1.32: 29.01.2010 
+--------------------
+
+  Changes:
+   * "example3" renamed to "example2"
+   * Project/Makefiles files are now provided for:
+           - msvc2003 
+           - msvc2005 
+           - msvc2008
+           - watcom   (makefile)
+           - mingw    (makefile)
+           - bcc      (makefile)
+   * Project files for borland cpp builder were removed
+
+
+  New features:
+   * Added function returning muparsers version number
+   * Added function for resetting the locale
+
+
+  Bugfixes:    
+   * Changes example1 in order to fix issues with irritating memory leak reports. 
+     Added conditional code for memory leak detection with MSVC in example1.
+     (see: http://www.codeproject.com/KB/recipes/FastMathParser.aspx?msg=3286367#xx3286367xx)
+   * Fixed some warnings for gcc
+
+
+
+Rev 1.31cp: 15.01.2010  (Maintenance release for CodeProject)
+----------------------
+
+  Changes:
+   * Archive structure changed
+   * C# wrapper added
+   * Fixed issued that prevented compiling with VS2010 Beta2
+    
+
+Rev 1.30: 09.06.2008
+--------------------
+
+  Changes:
+   * Epsilon of the numerical differentiation algorithm changed to allow greater accuracy.
+
+  New features:
+   * Setting thousands separator and decimal separator is now possible
+
+  Bugfixes:
+   * The dll interface did not provide a callback for functions without any arguments.  
+       
+
+Rev 1.29: Januar 2008
+---------------------
+
+  Unrelease Version available only via SVN.
+
+
+Rev 1.28: 02. July, 2007
+---------------------------
+  Library changes:
+  * Interface for the dynamic library changed and extended to create an interface 
+    using pure C functions only. 
+  * mupInit() removed
+
+  Build system:
+   * MSVC7 Project files removed in favor of MSVC8
+
+  Bugfixes:
+   * The dynamic library did not build on other systems than linux due to a misplaced 
+     preprocessor definition. This is fixed now.
+
+
+Rev 1.27:
+---------------------------
+
+  Build system:
+   * Modified build\ directory layout introducing some subfolders 
+     for the various IDE supported
+   * Project files for BCB and MSVC7 added
+   * Switched to use bakefile 0.2.1 which now correctly creates the 
+     "make uninstall" target for autoconf's Makefile.in
+   * Now the library debug builds are named "muparserd" instead of "muparser"
+     to allow multiple mixed release/debug builds to coexist; so e.g. on Windows
+     when building with DEBUG=1, you'll get "muparserd.lib" instead of "muparser.lib"
+
+  New Features:
+   * Factory functions can now take a user defined pointer
+   * String functions can now be used with up to two additional 
+     double parameters
+   * Support for UNICODE character types added
+   * Infix operator priority can now be changed by the user
+
+  Bugfixes:
+   * An internal error was raised when evaluating an empty 
+     expressions
+   * The error message raised in case of name collisions between 
+     implicitely defined variables and postfix operators did contain
+     misleading data.
+
+
+Rev 1.26: (unofficial release)
+------------------------------
+
+  New Features:
+   * Unary operator precedence can now be changed by the user.
+
+
+Rev 1.25: 5. February, 2006
+---------------------------
+
+  Build system: (special thanks to Francesco Montorsi for implementing it!)
+    * created a bakefile-based build system which adds support for the following win32 compilers:
+      -> MS visual C++ (6 and .NET)
+      -> BorlandC++ (5 or greater)
+      -> Mingw32 (tested with gcc 3.2)
+      -> Watcom (not tested)
+      and for GCC on Unix (using a standard autoconf's configure script).
+
+  Compatibility improvements:
+    * fixed some small warnings when using -Wall with GCC on Unix
+    * added inclusion guards for win32-specific portions of code
+    * added fixes that remove compiler warnings on Intel C++ and the Solaris C++ compiler.
+
+
+Rev 1.24: 29. October, 2005
+---------------------------
+
+Changes:
+
+  Compatibility improvements:
+    * parser now works on 64 bit compilers
+    * (bytecode base datatype can now be changed freely)
+
+
+Rev 1.23: 19. October, 2005
+---------------------------
+
+Changes:
+
+  Bugfixes:
+    * Variable factory examples in Example1.cpp and Example3.cpp contained a subtle bug.
+
+  New features:
+    * Added a MSVC6 project file and introduced muParserFixes.h in order to make it compile with MSVC6
+
+
+Rev 1.22: October, 2005
+-----------------------
+
+Release notes:
+
+All features of Version 1.22 are similar to Version 1.21. Version 1.22 fixes a compilation issue with
+gcc 4.0. In order to fix this issue I rewrote part of the library to remove some unnecessary templates. 
+This should make the code cleaner. The Borland Project files were removed. If you want to use it 
+with Borland either use the dll version or create your own project files. I can't support it since I don't 
+have this compiler at hand.
+
+Changes:
+
+  Project Changes:
+    * Borland project files removed
+      (The code should still compile with BCB but I can't provide you with project files)
+
+  Internal Changes:
+    * unnecessary template files have been removed:
+        - new files: muParserError.cpp, muParserTokenReader.cpp, muParserCallback.cpp
+        - removed Files: muIParserTypes.h
+
+
+Rev 1.2 / 1.21: April, 2005
+---------------------------
+
+Release Notes:
+First of all the interface has changed so this version is not backwards compatible.
+After receiving a couple of questions about it, this version features support for
+user defined binary operators. Consequently the built in operators can now be 
+turned off, thus you can deactivate them and write complete customized parser
+subclasses that only contain the functionality you want. Another new feature is 
+the introduction of callback functions taking string arguments, implicit 
+generation of variables and the Assignment operator.
+
+  Functionality
+    * New built in operator: xor; Logical xor.
+    * New built in operator: Assignment operator; Defining variables in terms of 
+                             other variables/constants
+    * New feature: Strings as arguments for callback functions
+    * New feature: User defined binary operators
+    * New feature: ParserInt a class with a sample implementation for
+                     integer numbers.
+    * New feature: Callbacks to value regognition functions.
+
+    * Removed:  all predefined postfix operators have been removed.
+    * New project file:  Now comes with a ready to use windows DLL.
+    * New project file:  Makefile for cygwin now included.
+    * New example:  Example3 shows usage of the DLL.
+
+  Interface changes
+    * New member function: DefineOprt For adding user defined binary operators.
+    * New member function: EnableBuiltInOprt(bool) Enables/Disables built in 
+                           binary operators.
+    * New member function: AddValIdent(...) to add callbacks for custom value 
+                           recognition functions.
+    * Removed: SetVar(), SetConst().
+    * Renamed: Most interface functions have been renamed
+    * Changed: The type for multiargument callbacks multfun_type has changed. 
+               It no longer takes a std::vector as input.
+
+  Internal changes
+    * new class muParserTokenReader.h encapsulates the token identification 
+      and token assignment.
+    * Internal handling of function callbacks unified as a result the performance 
+      of the bytecode evaluation increased.
+
+
+Rev 1.10 : December 30, 2004
+----------------------------
+
+Release Notes:
+This version does not contain major new feature compared to V1.07 but its internal structure has
+changed significantly. The String parsing routine is slower than the one of V1.07 but bytecode
+parsing is equally fast. On the other hand the error messages of V1.09 are more flexible and you
+can change its value datatype. It should work on 64-bit systems. For this reason I supply both
+versions for download. If you use V1.07 and are happy with it there is no need for updating
+your version.
+
+    * New example program: Archive now contains two demo programs: One for standard C++ and one for
+                           managed C++.
+    * New member function: RemoveVar(...) can be used for removing a single variable from the internal 
+                           storage.
+    * New member function: GetVar() can be used for querying the variable names and pointers of all
+                           variables defined in the parser.
+    * New member function: GetConst() can be used for querying all defined constants and their values.
+    * New member function: GetFunDef() can be used for querying all defined functions and the number of
+                           arguments they expect.
+    * Internal structure changed; hanging base datatype at compile time is now possible.
+    * Bugfix: Postfix operator parsing could fail in certain cases; This has been fixed now.
+    * Bugfix: Variable names must will now be tested if they conflict with constant or function names.
+    * Internal change:  Removed most dependencies from the C-string libraries.
+    * Internal change:  Bytecode is now stored in a separate class: ParserByteCode.h
+    * Internal change:  GetUsedVar() does no longer require that variables are defined at time of call.
+    * Internal change:  Error treatment changed. ParserException is no longer derived from
+                        std::runtime_error; Internal treatment of Error messages changed.
+    * New functions in Parser interface: ValidNameChars(), ValidOprtChars() and ValidPrefixOprtChars()
+                        they are used for defining the charset allowed for variable-, operator- and
+                        function names.
+
+
+Rev 1.09 : November 20, 2004
+----------------------------
+
+    * New member function:  RemoveVar(...) can be used for removing a single variable from the internal 
+                            storage.
+    * Internal structure changed; changing base datatype at compile time is now possible.
+    * Bug fix: Postfix operator parsing could fail in certain cases; This has been fixed now.
+    * Internal change:  Removed most dependencies from the C-string libraries.
+    * Internal change:  Bytecode is now stored in a separate class: ParserByteCode.h.
+    * Internal change:  GetUsedVar() does no longer require that variables are defined at time of call.
+    * Internal change:  Error treatment changed. ParserException is no longer derived from 
+                        std::runtime_error; Internal treatment of Error messages changed.
+    * New functions in Parser interface; ValidNameChars(), ValidOprtChars() and ValidPrefixOprtChars()
+      they are used for defining the charset allowed for variable-, operator- and function names.
+
+
+Rev 1.08 : November, 2004 
+-------------------------
+
+    * unpublished; experimental template version with respect to data type and underlying string
+      type (string <-> widestring). The idea was dropped...
+
+
+Rev 1.07 : September 4 2004
+---------------------------
+
+    * Improved portability; Changes to make life for MSVC 6 user easier, there are probably still some
+      issues left.
+    * Improved portability; Changes in order to allow compiling on BCB.
+    * New function; value_type Diff(value_type *a_Var, value_type a_fPos) 4th order Differentiation with
+      respect to a certain variable; added in muParser.h.
+
+
+Rev 1.06 : August 20 2004
+-------------------------
+
+    * Volatile functions added; All overloaded AddFun(...) functions can now take a third parameter
+      indicating that the function can not be optimized.
+    * Internal changes: muParserStack.h simplified; refactorings
+    * Parser is now distributed under the MIT License; all comments changed accordingly.
+
+
+Rev 1.05 : August 20 2004
+-------------------------
+
+    * Variable/constant names will now be checked for invalid characters.
+    * Querying the names of all variables used in an expression is now possible; new function: GetUsedVar().
+    * Disabling bytecode parsing is now possible; new function: EnableByteCode(bool bStat).
+    * Predefined functions with variable number of arguments added: sum, avg, min, max.
+    * Unary prefix operators added; new functions: AddPrefixOp(...), ClearPrefixOp().
+    * Postfix operator interface names changed; new function names: AddPostfixOp(...), ClearPostfixOp().
+    * Hardcoded sign operators removed in favor of prefix operators; bytecode format changed accordingly.
+    * Internal changes: static array removed in Command code calculation routine; misc. changes.
+
+
+Rev 1.04 : August 16 2004
+-------------------------
+
+    * Support for functions with variable number of arguments added.
+    * Internal structure changed; new: ParserBase.h, ParserBase.cpp; removed: ParserException.h;
+      changed: Parser.h, Parser.cpp.
+    * Bug in the bytecode calculation function fixed (affected the unary minus operator).
+    * Optimizer can be deactivated; new function: EnableOptimizer(bool bStat).
+
+
+Rev 1.03 : August 10 2004
+-------------------------
+
+    * Support for user-defined unary postfix operators added; new functions: AddPostOp(), InitPostOp(),
+      ClearPostOp().
+    * Minor changes to the bytecode parsing routine.
+    * User defined functions can now have up to four parameters.
+    * Performance optimized: simple formula optimization added; (precalculation of constant parts of the
+      expression).
+    * Bug fixes: Multi-arg function parameters, constant name lookup and unary minus did not work properly.
+
+
+Rev 1.02 : July 30 2004
+-----------------------
+
+    * Support for user defined constants added; new functions: InitConst(), AddConst(), SetConst(),
+      ClearConst().
+    * Single variables can now be added using AddVar(); you have now the choice of adding them either
+      one by one or all at the same time using SetVar(const varmap_type &a_vVar).
+    * Internal handling of variables changed, is now similar to function handling.
+    * Virtual destructor added; InitFun(), InitConst() are now virtual too thus making it possible to
+      derive new parsers with a modified set of default functions and constants.
+    * Support for user defined functions with 2 or 3 parameters added; bytecode format changed to hold
+      function parameter count.
+
+
+Rev 1.01 : July 23 2004
+-----------------------
+
+    * Support for user defined functions has been added; new functions: AddFun(), ClearFun(),
+      InitFunctions().
+    * Built in constants have been removed; the parser contained undocumented built in
+      constants pi, e.
+      There was the possibility of name conflicts with user defined variables.
+    * Setting multiple variables with SetVar can now be done with a map of names and pointers as the only
+      argument. For this reason, a new type Parser::varmap_type was added. The old version that took 3
+      arguments (array of names, array of pointers, and array length) is now marked as deprecated.
+    * The names of logarithm functions have changed. The new names are: log2 for base 2, log10 or log for
+      base 10, and ln for base e.
+
+
+Rev 1.00 : July 21 2004
+-----------------------
+
+    * Initial release
diff --git a/src/external/muparser/Install.txt b/src/external/muparser/Install.txt
new file mode 100644 (file)
index 0000000..0609501
--- /dev/null
@@ -0,0 +1,68 @@
+
+     _____  __ _____________ _______  ______ ___________
+    /     \|  |  \____ \__  \\_  __ \/  ___// __ \_  __ \
+   |  Y Y  \  |  /  |_> > __ \|  | \/\___ \\  ___/|  | \/
+   |__|_|  /____/|   __(____  /__|  /____  >\___  >__|
+         \/      |__|       \/           \/     \/
+    Copyright (C) 2004 - 2020 Ingo Berg
+
+=======================================================================
+    https://muparser.beltoforion.de
+=======================================================================
+
+ Installation
+ ============
+
+ muParser can be installed just extracting the sources somewhere
+ and then, from a terminal, typing:
+
+   cd [path to muParser]
+   cmake . [-DENABLE_SAMPLES=ON/OFF] [-DENABLE_OPENMP=OFF/ON]
+           [-DBUILD_SHARED_LIBS=ON/OFF]
+   make
+   [sudo*] make install
+   [sudo*] ldconfig
+   cd samples/example1
+   ./example1
+
+ * = this command must be executed with root permissions and thus
+     you have to use 'sudo' or just 'su' to gain root access.
+     Note that installation and ldconfig are not strictly required unless
+     you built in shared mode.
+
+ The "make" step will create the muParser library in 'lib' and the
+ sample binary in samples/example1.
+ The samples/example2 is win32-specific and thus won't be built.
+
+
+
+ Other miscellaneous info Unix-specific
+ ======================================
+
+ If you don't like to have your muParser folder filled by temporary
+ files created by GCC, then you can do the following:
+
+    mkdir mybuild && cd mybuild && cmake .. && make
+
+ to put all object files in the "mybuild" directory.
+
+ If you want to use muParser library in your programs, you can use
+ the pkg-config program (this works only if muParser was installed
+ with 'make install' !). The commands:
+
+   pkg-config muparser --cflags
+   pkg-config muparser --libs
+
+ will return all useful info you need to build your programs against
+ muParser !
+
+
+
+ 3. Where to ask for help
+ ========================
+
+ Please report any bugs or issues at the muparser project page at GitHub:
+
+  https://github.com/beltoforion/muparser/issues
+
\ No newline at end of file
diff --git a/src/external/muparser/License.txt b/src/external/muparser/License.txt
new file mode 100644 (file)
index 0000000..556ceba
--- /dev/null
@@ -0,0 +1,35 @@
+     _____  __ _____________ _______  ______ ___________
+    /     \|  |  \____ \__  \\_  __ \/  ___// __ \_  __ \
+   |  Y Y  \  |  /  |_> > __ \|  | \/\___ \\  ___/|  | \/
+   |__|_|  /____/|   __(____  /__|  /____  >\___  >__|
+        \/      |__|       \/           \/     \/
+   Fast math parser Library
+   Copyright (C) 2004 - 2020 Ingo Berg
+    Web:     https://muparser.beltoforion.de 
+    Git:     https://github.com/beltoforion/muparser
+
+    This software is distributed under the terms of the
+    BSD - Clause 2 "Simplified" or "FreeBSD" Licence (BSD-2-Clause)   
+
+###############################################################################################
+
+Redistribution and use in source and binary forms, with or without modification, are permitted 
+provided that the following conditions are met:
+
+   * Redistributions of source code must retain the above copyright notice, this list of 
+     conditions and the following disclaimer.
+   * Redistributions in binary form must reproduce the above copyright notice, this list of 
+     conditions and the following disclaimer in the documentation and/or other materials provided 
+        with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/src/external/muparser/README b/src/external/muparser/README
deleted file mode 100644 (file)
index 4a6a419..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-muparser files
-==============
-Used from https://github.com/beltoforion/muparser/releases/tag/v2.3.2.
-
-Minor modifications exist to avoid compiler warnings, e.g. from
-attempting to return a size_t in an int.
\ No newline at end of file
diff --git a/src/external/muparser/README.GROMACS b/src/external/muparser/README.GROMACS
new file mode 100644 (file)
index 0000000..b637581
--- /dev/null
@@ -0,0 +1,15 @@
+Changes by GROMACS to muparser files
+====================================
+Used from https://github.com/beltoforion/muparser/releases/tag/v2.3.2.
+
+ENABLE_SAMPLES is commented out so that we don't build them
+
+ENABLE_OPENMP gets its value from GMX_OPENMP
+
+Minor modifications exist to avoid compiler warnings, e.g. from
+attempting to return a size_t in an int.
+
+target_include_directories() is used so that GROMACS source files
+find the muparser headers.
+
+Test now links OpenMP target explicitly.
diff --git a/src/external/muparser/README.rst b/src/external/muparser/README.rst
new file mode 100644 (file)
index 0000000..4811b64
--- /dev/null
@@ -0,0 +1,75 @@
+.. image:: https://travis-ci.org/beltoforion/muparser.svg?branch=master
+    :target: https://travis-ci.org/beltoforion/muparser
+
+.. image:: https://ci.appveyor.com/api/projects/status/u4882uj8btuspj9x?svg=true
+    :target: https://ci.appveyor.com/project/jschueller/muparser-9ib44
+
+muparser - Fast Math Parser 2.3.2
+===========================
+
+For a detailed description of the parser go to http://beltoforion.de/article.php?a=muparser.
+
+See Install.txt for installation
+
+Change Notes for Revision 2.3.2
+------------
+Changes:
+------------
+* removed "final" keyword from Parser class since this API change broke multiple client applications
+
+Security Fixes: 
+------------
+The following issue was present in all older releases.
+
+* https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23410 (Heap-buffer-overflow)
+
+API and ABI compliance check with version 2.2.6
+------------
+
+Version 2.3 will extend existing enumerators. New Error codes have been added. In the muparser base class protected functions for implementing basic mathematical operations such as sin,cos, sqrt,tan,... have been removed.
+
+The binary interface should be compatible with versions 2.2.6 unless the parser is used in ways that i did not forsee. I checked the compliance against the sample application compiled for 2.2.6 by exchanging the library with the new version 2.3. I did not see any problems. You can find a complete ABI compliance report here:
+
+https://www.beltoforion.de/en/muparser/compat_reports/2.2.6_to_2.3.2/compat_report.html
+
+I recommend replacing existing versions of 2.2.6 with version 2.3.2. Please report all incompatibilities that you find (API and ABI). I will try to fix them before the final release (if reasonable)
+
+
+Change Notes for Revision 2.3.1
+------------
+No changes, only prereleases exist. Version 2.3.2 replaced them.
+
+
+Change Notes for Revision 2.3.0
+------------
+
+Version 2.3.0 will bring fixes for parsing in bulk mode. It will enable OpenMP by default thus allowing the parallelization of expression evaluation. It will also fix a range of issues reported by oss-fuz (https://github.com/google/oss-fuzz).
+
+Changes:
+------------
+
+* using OpenMP is now the default settings for cmake based builds
+* added optimization for trivial expressions. (Expressions with an RPN length of 1)
+* introduced a maximum length for expressions (5000 Character)
+* introduced a maximum length for identifiers (100 Characters)
+* removed the MUP_MATH_EXCEPTION macro and related functionality. (C++ exceptions for divide by zero or sqrt of a negative number are no longer supported)
+* removed ParserStack.h (replaced with std::stack)
+* removed macros for defining E and PI 
+* the MUP_ASSERT macro is no longer removed in release builds for better protection against segmentation faults
+
+Security Fixes: 
+------------
+
+Fixed several issues reported by oss-fuzz. The issues were present in older releases. Most of them resulted in segmentation faults.
+
+* https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23330
+* https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22922
+* https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22938
+* https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23330
+* Added additional runtime checks for release builds to prevent segmentation faults for invalid expressions
+
+Bugfixes:
+------------
+
+* Fixed an issue where the bulk mode could hang on GCC/CLANG builds due to OpenMP chunksize dropping below 1.
+
diff --git a/src/external/muparser/appveyor.yml b/src/external/muparser/appveyor.yml
new file mode 100644 (file)
index 0000000..cc4d34d
--- /dev/null
@@ -0,0 +1,14 @@
+version: 1.0.{build}
+os: Visual Studio 2015
+clone_folder: C:\projects\muParser
+test: off
+branches:
+  only:
+    - master
+environment:
+  matrix:
+    - CMAKE_PLATFORM: Visual Studio 14 2015
+build_script:
+  - cmake -LAH -G "%CMAKE_PLATFORM%" -DCMAKE_INSTALL_PREFIX="%CD:\=/%/install" .
+  - cmake --build . --config Release --target install
+  - ctest -C Release --output-on-failure
diff --git a/src/external/muparser/docs/Doxyfile b/src/external/muparser/docs/Doxyfile
new file mode 100644 (file)
index 0000000..842ecf1
--- /dev/null
@@ -0,0 +1,1563 @@
+# Doxyfile 1.6.3
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+#       TAG = value [value, ...]
+# For lists items can also be appended using:
+#       TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file 
+# that follow. The default is UTF-8 which is also the encoding used for all 
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the 
+# iconv built into libc) for the transcoding. See 
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING      = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded 
+# by quotes) that should identify the project.
+
+PROJECT_NAME           = "muParser API -"
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. 
+# This could be handy for archiving the generated documentation or 
+# if some version control system is used.
+
+PROJECT_NUMBER         = 1.35
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) 
+# base path where the generated documentation will be put. 
+# If a relative path is entered, it will be relative to the location 
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY       = html/
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 
+# 4096 sub-directories (in 2 levels) under the output directory of each output 
+# format and will distribute the generated files over these directories. 
+# Enabling this option can be useful when feeding doxygen a huge amount of 
+# source files, where putting all generated files in the same directory would 
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS         = YES
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all 
+# documentation generated by doxygen is written. Doxygen will use this 
+# information to generate all constant output in the proper language. 
+# The default language is English, other supported languages are: 
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, 
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, 
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English 
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, 
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, 
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE        = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will 
+# include brief member descriptions after the members that are listed in 
+# the file and class documentation (similar to JavaDoc). 
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC      = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend 
+# the brief description of a member or function before the detailed description. 
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF           = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator 
+# that is used to form the text in various listings. Each string 
+# in this list, if found as the leading text of the brief description, will be 
+# stripped from the text and the result after processing the whole list, is 
+# used as the annotated text. Otherwise, the brief description is used as-is. 
+# If left blank, the following values are used ("$name" is automatically 
+# replaced with the name of the entity): "The $name class" "The $name widget" 
+# "The $name file" "is" "provides" "specifies" "contains" 
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF       = 
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 
+# Doxygen will generate a detailed section even if there is only a brief 
+# description.
+
+ALWAYS_DETAILED_SEC    = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 
+# inherited members of a class in the documentation of that class as if those 
+# members were ordinary class members. Constructors, destructors and assignment 
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB  = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full 
+# path before files name in the file list and in the header files. If set 
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES        = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag 
+# can be used to strip a user-defined part of the path. Stripping is 
+# only done if one of the specified strings matches the left-hand part of 
+# the path. The tag can be used to show relative paths in the file list. 
+# If left blank the directory from which doxygen is run is used as the 
+# path to strip.
+
+STRIP_FROM_PATH        = 
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of 
+# the path mentioned in the documentation of a class, which tells 
+# the reader which header file to include in order to use a class. 
+# If left blank only the name of the header file containing the class 
+# definition is used. Otherwise one should specify the include paths that 
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH    = 
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter 
+# (but less readable) file names. This can be useful is your file systems 
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES            = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen 
+# will interpret the first line (until the first dot) of a JavaDoc-style 
+# comment as the brief description. If set to NO, the JavaDoc 
+# comments will behave just like regular Qt-style comments 
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF      = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will 
+# interpret the first line (until the first dot) of a Qt-style 
+# comment as the brief description. If set to NO, the comments 
+# will behave just like regular Qt-style comments (thus requiring 
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF           = YES
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen 
+# treat a multi-line C++ special comment block (i.e. a block of //! or /// 
+# comments) as a brief description. This used to be the default behaviour. 
+# The new default is to treat a multi-line C++ comment block as a detailed 
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented 
+# member inherits the documentation from any documented member that it 
+# re-implements.
+
+INHERIT_DOCS           = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce 
+# a new page for each member. If set to NO, the documentation of a member will 
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES  = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. 
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE               = 16
+
+# This tag can be used to specify a number of aliases that acts 
+# as commands in the documentation. An alias has the form "name=value". 
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to 
+# put the command \sideeffect (or @sideeffect) in the documentation, which 
+# will result in a user-defined paragraph with heading "Side Effects:". 
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES                = 
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C 
+# sources only. Doxygen will then generate output that is more tailored for C. 
+# For instance, some of the names that are used will be different. The list 
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C  = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java 
+# sources only. Doxygen will then generate output that is more tailored for 
+# Java. For instance, namespaces will be presented as packages, qualified 
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA   = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran 
+# sources only. Doxygen will then generate output that is more tailored for 
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN   = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL 
+# sources. Doxygen will then generate output that is tailored for 
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL   = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it parses. 
+# With this tag you can assign which parser to use for a given extension. 
+# Doxygen has a built-in mapping, but you can override or extend it using this tag. 
+# The format is ext=language, where ext is a file extension, and language is one of 
+# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP, 
+# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat 
+# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran), 
+# use: inc=Fortran f=C. Note that for custom extensions you also need to set
+# FILE_PATTERNS otherwise the files are not read by doxygen.
+
+EXTENSION_MAPPING      = 
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want 
+# to include (a tag file for) the STL sources as input, then you should 
+# set this tag to YES in order to let doxygen match functions declarations and 
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. 
+# func(std::string) {}). This also make the inheritance and collaboration 
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT    = YES
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to 
+# enable parsing support.
+
+CPP_CLI_SUPPORT        = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. 
+# Doxygen will parse them like normal C++ but will assume all classes use public 
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT            = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate getter 
+# and setter methods for a property. Setting this option to YES (the default) 
+# will make doxygen to replace the get and set methods by a property in the 
+# documentation. This will only work if the methods are indeed getting or 
+# setting a simple type. If this is not the case, or you want to show the 
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT   = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC 
+# tag is set to YES, then doxygen will reuse the documentation of the first 
+# member in the group (if any) for the other members of the group. By default 
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC   = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of 
+# the same type (for instance a group of public functions) to be put as a 
+# subgroup of that type (e.g. under the Public Functions section). Set it to 
+# NO to prevent subgrouping. Alternatively, this can be done per class using 
+# the \nosubgrouping command.
+
+SUBGROUPING            = YES
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum 
+# is documented as struct, union, or enum with the name of the typedef. So 
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct 
+# with name TypeT. When disabled the typedef will appear as a member of a file, 
+# namespace, or class. And the struct will be named TypeS. This can typically 
+# be useful for C code in case the coding convention dictates that all compound 
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT   = NO
+
+# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to 
+# determine which symbols to keep in memory and which to flush to disk. 
+# When the cache is full, less often used symbols will be written to disk. 
+# For small to medium size projects (<1000 input files) the default value is 
+# probably good enough. For larger projects a too small cache size can cause 
+# doxygen to be busy swapping symbols to and from disk most of the time 
+# causing a significant performance penality. 
+# If the system has enough physical memory increasing the cache will improve the 
+# performance by keeping more symbols in memory. Note that the value works on 
+# a logarithmic scale so increasing the size by one will roughly double the 
+# memory usage. The cache size is given by this formula: 
+# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, 
+# corresponding to a cache size of 2^16 = 65536 symbols
+
+SYMBOL_CACHE_SIZE      = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in 
+# documentation are documented, even if no documentation was available. 
+# Private class members and static file members will be hidden unless 
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL            = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class 
+# will be included in the documentation.
+
+EXTRACT_PRIVATE        = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file 
+# will be included in the documentation.
+
+EXTRACT_STATIC         = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) 
+# defined locally in source files will be included in the documentation. 
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES  = YES
+
+# This flag is only useful for Objective-C code. When set to YES local 
+# methods, which are defined in the implementation section but not in 
+# the interface are included in the documentation. 
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS  = YES
+
+# If this flag is set to YES, the members of anonymous namespaces will be 
+# extracted and appear in the documentation as a namespace called 
+# 'anonymous_namespace{file}', where file will be replaced with the base 
+# name of the file that contains the anonymous namespace. By default 
+# anonymous namespace are hidden.
+
+EXTRACT_ANON_NSPACES   = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all 
+# undocumented members of documented classes, files or namespaces. 
+# If set to NO (the default) these members will be included in the 
+# various overviews, but no documentation section is generated. 
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS     = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all 
+# undocumented classes that are normally visible in the class hierarchy. 
+# If set to NO (the default) these classes will be included in the various 
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES     = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all 
+# friend (class|struct|union) declarations. 
+# If set to NO (the default) these declarations will be included in the 
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS  = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any 
+# documentation blocks found inside the body of a function. 
+# If set to NO (the default) these blocks will be appended to the 
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS      = NO
+
+# The INTERNAL_DOCS tag determines if documentation 
+# that is typed after a \internal command is included. If the tag is set 
+# to NO (the default) then the documentation will be excluded. 
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS          = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate 
+# file names in lower-case letters. If set to YES upper-case letters are also 
+# allowed. This is useful if you have classes or files whose names only differ 
+# in case and if your file system supports case sensitive file names. Windows 
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES       = YES
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen 
+# will show members with their full class and namespace scopes in the 
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES       = NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen 
+# will put a list of the files that are included by a file in the documentation 
+# of that file.
+
+SHOW_INCLUDE_FILES     = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen 
+# will list include files with double quotes in the documentation 
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES   = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] 
+# is inserted in the documentation for inline members.
+
+INLINE_INFO            = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen 
+# will sort the (detailed) documentation of file and class members 
+# alphabetically by member name. If set to NO the members will appear in 
+# declaration order.
+
+SORT_MEMBER_DOCS       = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the 
+# brief documentation of file, namespace and class members alphabetically 
+# by member name. If set to NO (the default) the members will appear in 
+# declaration order.
+
+SORT_BRIEF_DOCS        = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
+# will sort the (brief and detailed) documentation of class members so that
+# constructors and destructors are listed first. If set to NO (the default)
+# the constructors will appear in the respective orders defined by
+# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
+# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
+# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the 
+# hierarchy of group names into alphabetical order. If set to NO (the default) 
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES       = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be 
+# sorted by fully-qualified names, including namespaces. If set to 
+# NO (the default), the class list will be sorted only by class name, 
+# not including the namespace part. 
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. 
+# Note: This option applies only to the class list, not to the 
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME     = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or 
+# disable (NO) the todo list. This list is created by putting \todo 
+# commands in the documentation.
+
+GENERATE_TODOLIST      = NO
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or 
+# disable (NO) the test list. This list is created by putting \test 
+# commands in the documentation.
+
+GENERATE_TESTLIST      = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or 
+# disable (NO) the bug list. This list is created by putting \bug 
+# commands in the documentation.
+
+GENERATE_BUGLIST       = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or 
+# disable (NO) the deprecated list. This list is created by putting 
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional 
+# documentation sections, marked by \if sectionname ... \endif.
+
+ENABLED_SECTIONS       = 
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines 
+# the initial value of a variable or define consists of for it to appear in 
+# the documentation. If the initializer consists of more lines than specified 
+# here it will be hidden. Use a value of 0 to hide initializers completely. 
+# The appearance of the initializer of individual variables and defines in the 
+# documentation can be controlled using \showinitializer or \hideinitializer 
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES  = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated 
+# at the bottom of the documentation of classes and structs. If set to YES the 
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES        = YES
+
+# If the sources in your project are distributed over multiple directories 
+# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy 
+# in the documentation. The default is NO.
+
+SHOW_DIRECTORIES       = NO
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. 
+# This will remove the Files entry from the Quick Index and from the 
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES             = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the 
+# Namespaces page.  This will remove the Namespaces entry from the Quick Index 
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES        = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that 
+# doxygen should invoke to get the current version for each file (typically from 
+# the version control system). Doxygen will invoke the program by executing (via 
+# popen()) the command <command> <input-file>, where <command> is the value of 
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file 
+# provided by doxygen. Whatever the program writes to standard output 
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER    = 
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by 
+# doxygen. The layout file controls the global structure of the generated output files 
+# in an output format independent way. The create the layout file that represents 
+# doxygen's defaults, run doxygen with the -l option. You can optionally specify a 
+# file name after the option, if omitted DoxygenLayout.xml will be used as the name 
+# of the layout file.
+
+LAYOUT_FILE            = 
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated 
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET                  = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are 
+# generated by doxygen. Possible values are YES and NO. If left blank 
+# NO is used.
+
+WARNINGS               = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings 
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will 
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED   = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for 
+# potential errors in the documentation, such as not documenting some 
+# parameters in a documented function, or documenting parameters that 
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR      = YES
+
+# This WARN_NO_PARAMDOC option can be abled to get warnings for 
+# functions that are documented, but have no documentation for their parameters 
+# or return value. If set to NO (the default) doxygen will only warn about 
+# wrong or incomplete parameter documentation, but not about the absence of 
+# documentation.
+
+WARN_NO_PARAMDOC       = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that 
+# doxygen can produce. The string should contain the $file, $line, and $text 
+# tags, which will be replaced by the file and line number from which the 
+# warning originated and the warning text. Optionally the format may contain 
+# $version, which will be replaced by the version of the file (if it could 
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT            = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning 
+# and error messages should be written. If left blank the output is written 
+# to stderr.
+
+WARN_LOGFILE           = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain 
+# documented source files. You may enter file names like "myfile.cpp" or 
+# directories like "/usr/src/myproject". Separate the files or directories 
+# with spaces.
+
+INPUT                  = html/misc/Main.txt \
+                         html/misc/example.txt \
+                         ../src/ \
+                         ../include/
+
+# This tag can be used to specify the character encoding of the source files 
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is 
+# also the default input encoding. Doxygen uses libiconv (or the iconv built 
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for 
+# the list of possible encodings.
+
+INPUT_ENCODING         = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the 
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
+# and *.h) to filter out the source-files in the directories. If left 
+# blank the following patterns are tested: 
+# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx 
+# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
+
+FILE_PATTERNS          = 
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories 
+# should be searched for input files as well. Possible values are YES and NO. 
+# If left blank NO is used.
+
+RECURSIVE              = NO
+
+# The EXCLUDE tag can be used to specify files and/or directories that should 
+# excluded from the INPUT source files. This way you can easily exclude a 
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+
+EXCLUDE                = 
+
+# The EXCLUDE_SYMLINKS tag can be used select whether or not files or 
+# directories that are symbolic links (a Unix filesystem feature) are excluded 
+# from the input.
+
+EXCLUDE_SYMLINKS       = NO
+
+# If the value of the INPUT tag contains directories, you can use the 
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 
+# certain files from those directories. Note that the wildcards are matched 
+# against the file with absolute path, so to exclude all test directories 
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS       = 
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names 
+# (namespaces, classes, functions, etc.) that should be excluded from the 
+# output. The symbol name can be a fully qualified name, a word, or if the 
+# wildcard * is used, a substring. Examples: ANamespace, AClass, 
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS        = 
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or 
+# directories that contain example code fragments that are included (see 
+# the \include command).
+
+EXAMPLE_PATH           = html/misc/
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the 
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp 
+# and *.h) to filter out the source-files in the directories. If left 
+# blank all files are included.
+
+EXAMPLE_PATTERNS       = 
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be 
+# searched for input files to be used with the \include or \dontinclude 
+# commands irrespective of the value of the RECURSIVE tag. 
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE      = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or 
+# directories that contain image that are included in the documentation (see 
+# the \image command).
+
+IMAGE_PATH             = 
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should 
+# invoke to filter for each input file. Doxygen will invoke the filter program 
+# by executing (via popen()) the command <filter> <input-file>, where <filter> 
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an 
+# input file. Doxygen will then use the output that the filter program writes 
+# to standard output.  If FILTER_PATTERNS is specified, this tag will be 
+# ignored.
+
+INPUT_FILTER           = 
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern 
+# basis.  Doxygen will compare the file name with each pattern and apply the 
+# filter if there is a match.  The filters are a list of the form: 
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further 
+# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER 
+# is applied to all files.
+
+FILTER_PATTERNS        = 
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using 
+# INPUT_FILTER) will be used to filter the input files when producing source 
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES    = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will 
+# be generated. Documented entities will be cross-referenced with these sources. 
+# Note: To get rid of all source code in the generated output, make sure also 
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER         = YES
+
+# Setting the INLINE_SOURCES tag to YES will include the body 
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES         = YES
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct 
+# doxygen to hide any special comment blocks from generated source code 
+# fragments. Normal C and C++ comments will always remain visible.
+
+STRIP_CODE_COMMENTS    = NO
+
+# If the REFERENCED_BY_RELATION tag is set to YES 
+# then for each documented function all documented 
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = YES
+
+# If the REFERENCES_RELATION tag is set to YES 
+# then for each documented function all documented entities 
+# called/used by that function will be listed.
+
+REFERENCES_RELATION    = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) 
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from 
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will 
+# link to the source code.  Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = NO
+
+# If the USE_HTAGS tag is set to YES then the references to source code 
+# will point to the HTML generated by the htags(1) tool instead of doxygen 
+# built-in source browser. The htags tool is part of GNU's global source 
+# tagging system (see http://www.gnu.org/software/global/global.html). You 
+# will need version 4.8.6 or higher.
+
+USE_HTAGS              = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen 
+# will generate a verbatim copy of the header file for each class for 
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS       = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index 
+# of all compounds will be generated. Enable this if the project 
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX     = YES
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then 
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns 
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX    = 5
+
+# In case all classes in a project start with a common prefix, all 
+# classes will be put under the same header in the alphabetical index. 
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that 
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX          = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will 
+# generate HTML output.
+
+GENERATE_HTML          = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT            = classdocu/
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for 
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank 
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION    = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for 
+# each generated HTML page. If it is left blank doxygen will generate a 
+# standard header.
+
+HTML_HEADER            = 
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for 
+# each generated HTML page. If it is left blank doxygen will generate a 
+# standard footer.
+
+HTML_FOOTER            = html/misc/footer.html
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading 
+# style sheet that is used by each HTML page. It can be used to 
+# fine-tune the look of the HTML output. If the tag is left blank doxygen 
+# will generate a default style sheet. Note that doxygen will try to copy 
+# the style sheet file to the HTML output directory, so don't put your own 
+# stylesheet in the HTML output directory as well, or it will be erased!
+
+HTML_STYLESHEET        = 
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML 
+# page will contain the date and time when the page was generated. Setting 
+# this to NO can help when comparing the output of multiple runs.
+
+HTML_TIMESTAMP         = YES
+
+# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, 
+# files or namespaces will be aligned in HTML using tables. If set to 
+# NO a bullet list will be used.
+
+HTML_ALIGN_MEMBERS     = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML 
+# documentation will contain sections that can be hidden and shown after the 
+# page has loaded. For this to work a browser that supports 
+# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox 
+# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
+
+HTML_DYNAMIC_SECTIONS  = NO
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files 
+# will be generated that can be used as input for Apple's Xcode 3 
+# integrated development environment, introduced with OSX 10.5 (Leopard). 
+# To create a documentation set, doxygen will generate a Makefile in the 
+# HTML output directory. Running make will produce the docset in that 
+# directory and running "make install" will install the docset in 
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find 
+# it at startup. 
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
+
+GENERATE_DOCSET        = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the 
+# feed. A documentation feed provides an umbrella under which multiple 
+# documentation sets from a single provider (such as a company or product suite) 
+# can be grouped.
+
+DOCSET_FEEDNAME        = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that 
+# should uniquely identify the documentation set bundle. This should be a 
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen 
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID       = org.doxygen.Project
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files 
+# will be generated that can be used as input for tools like the 
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) 
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP      = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can 
+# be used to specify the file name of the resulting .chm file. You 
+# can add a path in front of the file if the result should not be 
+# written to the html output directory.
+
+CHM_FILE               = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can 
+# be used to specify the location (absolute path including file name) of 
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run 
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION           = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag 
+# controls if a separate .chi index file is generated (YES) or that 
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI           = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING 
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file 
+# content.
+
+CHM_INDEX_ENCODING     = 
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag 
+# controls whether a binary table of contents is generated (YES) or a 
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC             = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members 
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND             = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER 
+# are set, an additional index file will be generated that can be used as input for 
+# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated 
+# HTML documentation.
+
+GENERATE_QHP           = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can 
+# be used to specify the file name of the resulting .qch file. 
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE               = 
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating 
+# Qt Help Project output. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE          = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating 
+# Qt Help Project output. For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER     = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add. 
+# For more information please see 
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME   = 
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see 
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS  = 
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's 
+# filter section matches. 
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS  = 
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can 
+# be used to specify the location of Qt's qhelpgenerator. 
+# If non-empty doxygen will try to run qhelpgenerator on the generated 
+# .qhp file.
+
+QHG_LOCATION           = 
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files  
+# will be generated, which together with the HTML files, form an Eclipse help  
+# plugin. To install this plugin and make it available under the help contents 
+# menu in Eclipse, the contents of the directory containing the HTML and XML 
+# files needs to be copied into the plugins directory of eclipse. The name of 
+# the directory within the plugins directory should be the same as 
+# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
+# the help appears.
+
+GENERATE_ECLIPSEHELP   = NO
+
+# A unique identifier for the eclipse help plugin. When installing the plugin 
+# the directory name containing the HTML and XML files should also have 
+# this name.
+
+ECLIPSE_DOC_ID         = org.doxygen.Project
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index at 
+# top of each HTML page. The value NO (the default) enables the index and 
+# the value YES disables it.
+
+DISABLE_INDEX          = NO
+
+# This tag can be used to set the number of enum values (range [1..20]) 
+# that doxygen will group on one line in the generated HTML documentation.
+
+ENUM_VALUES_PER_LINE   = 4
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index 
+# structure should be generated to display hierarchical information. 
+# If the tag value is set to YES, a side panel will be generated 
+# containing a tree-like index structure (just like the one that 
+# is generated for HTML Help). For this to work a browser that supports 
+# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). 
+# Windows users are probably better off using the HTML help feature.
+
+GENERATE_TREEVIEW      = NO
+
+# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, 
+# and Class Hierarchy pages using a tree view instead of an ordered list.
+
+USE_INLINE_TREES       = NO
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be 
+# used to set the initial width (in pixels) of the frame in which the tree 
+# is shown.
+
+TREEVIEW_WIDTH         = 250
+
+# Use this tag to change the font size of Latex formulas included 
+# as images in the HTML documentation. The default is 10. Note that 
+# when you change the font size after a successful doxygen run you need 
+# to manually remove any form_*.png images from the HTML output directory 
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE       = 10
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box
+# for the HTML output. The underlying search engine uses javascript 
+# and DHTML and should work on any modern browser. Note that when using
+# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
+# (GENERATE_DOCSET) there is already a search function so this one should 
+# typically be disabled. For large projects the javascript based search engine 
+# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+
+SEARCHENGINE           = YES
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a PHP enabled web server instead of at the web client
+# using Javascript. Doxygen will generate the search PHP script and index 
+# file to put on the web server. The advantage of the server
+# based approach is that it scales better to large projects and allows
+# full text search. The disadvances is that it is more difficult to setup 
+# and does not have live searching capabilities.
+
+SERVER_BASED_SEARCH    = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will 
+# generate Latex output.
+
+GENERATE_LATEX         = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT           = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be 
+# invoked. If left blank `latex' will be used as the default command name. 
+# Note that when enabling USE_PDFLATEX this option is only used for 
+# generating bitmaps for formulas in the HTML output, but not in the 
+# Makefile that is written to the output directory.
+
+LATEX_CMD_NAME         = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to 
+# generate index for LaTeX. If left blank `makeindex' will be used as the 
+# default command name.
+
+MAKEINDEX_CMD_NAME     = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact 
+# LaTeX documents. This may be useful for small projects and may help to 
+# save some trees in general.
+
+COMPACT_LATEX          = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used 
+# by the printer. Possible values are: a4, a4wide, letter, legal and 
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE             = a4wide
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX 
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES         = 
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for 
+# the generated latex document. The header should contain everything until 
+# the first chapter. If it is left blank doxygen will generate a 
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER           = 
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated 
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will 
+# contain links (just like the HTML output) instead of page references 
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS         = NO
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of 
+# plain latex in the generated Makefile. Set this option to YES to get a 
+# higher quality PDF documentation.
+
+USE_PDFLATEX           = NO
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. 
+# command to the generated LaTeX files. This will instruct LaTeX to keep 
+# running if errors occur, instead of asking the user for help. 
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE        = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not 
+# include the index chapters (such as File Index, Compound Index, etc.) 
+# in the output.
+
+LATEX_HIDE_INDICES     = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include
+# source code with syntax highlighting in the LaTeX output.
+# Note that which sources are shown also depends on other settings
+# such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE      = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output 
+# The RTF output is optimized for Word 97 and may not look very pretty with 
+# other RTF readers or editors.
+
+GENERATE_RTF           = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT             = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact 
+# RTF documents. This may be useful for small projects and may help to 
+# save some trees in general.
+
+COMPACT_RTF            = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated 
+# will contain hyperlink fields. The RTF file will 
+# contain links (just like the HTML output) instead of page references. 
+# This makes the output suitable for online browsing using WORD or other 
+# programs which support those fields. 
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS         = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's 
+# config file, i.e. a series of assignments. You only have to provide 
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE    = 
+
+# Set optional variables used in the generation of an rtf document. 
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE    = 
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will 
+# generate man pages
+
+GENERATE_MAN           = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT             = man
+
+# The MAN_EXTENSION tag determines the extension that is added to 
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION          = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output, 
+# then it will generate one additional man file for each entity 
+# documented in the real man page(s). These additional files 
+# only source the real man page, but without them the man command 
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS              = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will 
+# generate an XML file that captures the structure of 
+# the code including all documentation.
+
+GENERATE_XML           = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put. 
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be 
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT             = xml
+
+# The XML_SCHEMA tag can be used to specify an XML schema, 
+# which can be used by a validating XML parser to check the 
+# syntax of the XML files.
+
+XML_SCHEMA             = 
+
+# The XML_DTD tag can be used to specify an XML DTD, 
+# which can be used by a validating XML parser to check the 
+# syntax of the XML files.
+
+XML_DTD                = 
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will 
+# dump the program listings (including syntax highlighting 
+# and cross-referencing information) to the XML output. Note that 
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING     = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will 
+# generate an AutoGen Definitions (see autogen.sf.net) file 
+# that captures the structure of the code including all 
+# documentation. Note that this feature is still experimental 
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF   = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will 
+# generate a Perl module file that captures the structure of 
+# the code including all documentation. Note that this 
+# feature is still experimental and incomplete at the 
+# moment.
+
+GENERATE_PERLMOD       = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate 
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able 
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX          = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be 
+# nicely formatted so it can be parsed by a human reader.  This is useful 
+# if you want to understand what is going on.  On the other hand, if this 
+# tag is set to NO the size of the Perl module output will be much smaller 
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY         = YES
+
+# The names of the make variables in the generated doxyrules.make file 
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. 
+# This is useful so different doxyrules.make files included by the same 
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX = 
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will 
+# evaluate all C-preprocessor directives found in the sources and include 
+# files.
+
+ENABLE_PREPROCESSING   = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro 
+# names in the source code. If set to NO (the default) only conditional 
+# compilation will be performed. Macro expansion can be done in a controlled 
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION        = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES 
+# then the macro expansion is limited to the macros specified with the 
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF     = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files 
+# in the INCLUDE_PATH (see below) will be search if a #include is found.
+
+SEARCH_INCLUDES        = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that 
+# contain include files that are not input files but should be processed by 
+# the preprocessor.
+
+INCLUDE_PATH           = 
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard 
+# patterns (like *.h and *.hpp) to filter out the header-files in the 
+# directories. If left blank, the patterns specified with FILE_PATTERNS will 
+# be used.
+
+INCLUDE_FILE_PATTERNS  = 
+
+# The PREDEFINED tag can be used to specify one or more macro names that 
+# are defined before the preprocessor is started (similar to the -D option of 
+# gcc). The argument of the tag is a list of macros of the form: name 
+# or name=definition (no spaces). If the definition and the = are 
+# omitted =1 is assumed. To prevent a macro definition from being 
+# undefined via #undef or recursively expanded use the := operator 
+# instead of the = operator.
+
+PREDEFINED             = 
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then 
+# this tag can be used to specify a list of macro names that should be expanded. 
+# The macro definition that is found in the sources will be used. 
+# Use the PREDEFINED tag if you want to use a different macro definition.
+
+EXPAND_AS_DEFINED      = 
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then 
+# doxygen's preprocessor will remove all function-like macros that are alone 
+# on a line, have an all uppercase name, and do not end with a semicolon. Such 
+# function macros are typically used for boiler-plate code, and will confuse 
+# the parser if not removed.
+
+SKIP_FUNCTION_MACROS   = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles. 
+# Optionally an initial location of the external documentation 
+# can be added for each tagfile. The format of a tag file without 
+# this location is as follows: 
+#   TAGFILES = file1 file2 ... 
+# Adding location for the tag files is done as follows: 
+#   TAGFILES = file1=loc1 "file2 = loc2" ... 
+# where "loc1" and "loc2" can be relative or absolute paths or 
+# URLs. If a location is present for each tag, the installdox tool 
+# does not have to be run to correct the links. 
+# Note that each tag file must have a unique name 
+# (where the name does NOT include the path) 
+# If a tag file is not located in the directory in which doxygen 
+# is run, you must also specify the path to the tagfile here.
+
+TAGFILES               = 
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create 
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE       = 
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed 
+# in the class index. If set to NO only the inherited external classes 
+# will be listed.
+
+ALLEXTERNALS           = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed 
+# in the modules index. If set to NO, only the current project's groups will 
+# be listed.
+
+EXTERNAL_GROUPS        = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script 
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH              = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will 
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base 
+# or super classes. Setting the tag to NO turns the diagrams off. Note that 
+# this option is superseded by the HAVE_DOT option below. This is only a 
+# fallback. It is recommended to install and use dot, since it yields more 
+# powerful graphs.
+
+CLASS_DIAGRAMS         = YES
+
+# You can define message sequence charts within doxygen comments using the \msc 
+# command. Doxygen will then run the mscgen tool (see 
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the 
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where 
+# the mscgen tool resides. If left empty the tool is assumed to be found in the 
+# default search path.
+
+MSCGEN_PATH            = 
+
+# If set to YES, the inheritance and collaboration graphs will hide 
+# inheritance and usage relations if the target is undocumented 
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS   = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is 
+# available from the path. This tool is part of Graphviz, a graph visualization 
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section 
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT               = YES
+
+# By default doxygen will write a font called FreeSans.ttf to the output 
+# directory and reference it in all dot files that doxygen generates. This 
+# font does not include all possible unicode characters however, so when you need 
+# these (or just want a differently looking font) you can specify the font name 
+# using DOT_FONTNAME. You need need to make sure dot is able to find the font, 
+# which can be done by putting it in a standard location or by setting the 
+# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory 
+# containing the font.
+
+DOT_FONTNAME           = FreeSans
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. 
+# The default size is 10pt.
+
+DOT_FONTSIZE           = 10
+
+# By default doxygen will tell dot to use the output directory to look for the 
+# FreeSans.ttf font (which doxygen will put there itself). If you specify a 
+# different font using DOT_FONTNAME you can set the path where dot 
+# can find it using this tag.
+
+DOT_FONTPATH           = 
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for each documented class showing the direct and 
+# indirect inheritance relations. Setting this tag to YES will force the 
+# the CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH            = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for each documented class showing the direct and 
+# indirect implementation dependencies (inheritance, containment, and 
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH    = NO
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen 
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS           = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and 
+# collaboration diagrams in a style similar to the OMG's Unified Modeling 
+# Language.
+
+UML_LOOK               = NO
+
+# If set to YES, the inheritance and collaboration graphs will show the 
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS     = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT 
+# tags are set to YES then doxygen will generate a graph for each documented 
+# file showing the direct and indirect include dependencies of the file with 
+# other documented files.
+
+INCLUDE_GRAPH          = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and 
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each 
+# documented header file showing the documented files that directly or 
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH      = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then 
+# doxygen will generate a call dependency graph for every global function 
+# or class method. Note that enabling this option will significantly increase 
+# the time of a run. So in most cases it will be better to enable call graphs 
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH             = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then 
+# doxygen will generate a caller dependency graph for every global function 
+# or class method. Note that enabling this option will significantly increase 
+# the time of a run. So in most cases it will be better to enable caller 
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH           = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen 
+# will graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY    = YES
+
+# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES 
+# then doxygen will show the dependencies a directory has on other directories 
+# in a graphical way. The dependency relations are determined by the #include 
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH        = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images 
+# generated by dot. Possible values are png, jpg, or gif 
+# If left blank png will be used.
+
+DOT_IMAGE_FORMAT       = jpg
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be 
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH               = "C:\Program Files (x86)\Graphviz2.20\bin"
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that 
+# contain dot files that are included in the documentation (see the 
+# \dotfile command).
+
+DOTFILE_DIRS           = 
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of 
+# nodes that will be shown in the graph. If the number of nodes in a graph 
+# becomes larger than this value, doxygen will truncate the graph, which is 
+# visualized by representing a node as a red box. Note that doxygen if the 
+# number of direct children of the root node in a graph is already larger than 
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note 
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES    = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the 
+# graphs generated by dot. A depth value of 3 means that only nodes reachable 
+# from the root by following a path via at most 3 edges will be shown. Nodes 
+# that lay further from the root node will be omitted. Note that setting this 
+# option to 1 or 2 may greatly reduce the computation time needed for large 
+# code bases. Also note that the size of a graph can be further restricted by 
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH    = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent 
+# background. This is disabled by default, because dot on Windows does not 
+# seem to support this out of the box. Warning: Depending on the platform used, 
+# enabling this option may lead to badly anti-aliased labels on the edges of 
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT        = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output 
+# files in one run (i.e. multiple -o and -T options on the command line). This 
+# makes dot run faster, but since only newer versions of dot (>1.8.10) 
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS      = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will 
+# generate a legend page explaining the meaning of the various boxes and 
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND        = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will 
+# remove the intermediate dot files that are used to generate 
+# the various graphs.
+
+DOT_CLEANUP            = YES
diff --git a/src/external/muparser/docs/muparser_doc.html b/src/external/muparser/docs/muparser_doc.html
new file mode 100644 (file)
index 0000000..09dbba1
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html style="height:100%;">
+<head>
+</head>
+
+<body style="height:100%; overflow:hidden;"> 
+
+  <div style="border: 0px; position:absolute; top:0px; left:0px; width:100%; bottom:0px; padding:0px; margin:0px;"> 
+    <iframe src="http://muparser.beltoforion.de" style="border: 0px; width:100%; height:100%;">
+    Sorry, your browser doesn't support IFrames. Click <a href="http://muparser.beltoforion.de">here</a> to load the muparser documentation directly.
+    </iframe>
+  </div>
+</body>
+
+</html>
similarity index 99%
rename from src/external/muparser/muParserBase.h
rename to src/external/muparser/include/muParserBase.h
index b7f87b41ccacd75bd0657030537a567d95cc7e46..7793818a9c90a6f40c3df877099ed53d135f5f91 100644 (file)
@@ -48,7 +48,7 @@
 namespace mu
 {
        /** \file
-               \brief This file contains the class definition of the muParser engine.
+               \brief This file contains the class definition of the muparser engine.
        */
 
        /** \brief Mathematical expressions parser (base parser engine).
similarity index 99%
rename from src/external/muparser/muParserDLL.h
rename to src/external/muparser/include/muParserDLL.h
index 253fefc115797eec7717e09d61ba06da13056aaa..18051c4d7835b266a463bd36f974d66d5729b13d 100644 (file)
@@ -37,7 +37,7 @@ extern "C"
 #endif
 
        /** \file
-               \brief This file contains the DLL interface of muParser.
+               \brief This file contains the DLL interface of muparser.
        */
 
        // Basic types
diff --git a/src/external/muparser/lib/Readme.txt b/src/external/muparser/lib/Readme.txt
new file mode 100644 (file)
index 0000000..7240cc3
--- /dev/null
@@ -0,0 +1 @@
+Here goes the libraries (both static and shared) for this component.
\ No newline at end of file
diff --git a/src/external/muparser/muparser.pc.in b/src/external/muparser/muparser.pc.in
new file mode 100644 (file)
index 0000000..be535ff
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@CMAKE_INSTALL_PREFIX@\r
+exec_prefix=${prefix}\r
+libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@\r
+includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@\r
+\r
+Name: @PACKAGE_NAME@\r
+Description: Mathematical expressions parser library\r
+Version: @MUPARSER_VERSION@\r
+Requires:\r
+Libs: -L${libdir} -lmuparser\r
+Cflags: -I${includedir}\r
diff --git a/src/external/muparser/samples/example1/example1.cpp b/src/external/muparser/samples/example1/example1.cpp
new file mode 100644 (file)
index 0000000..5505728
--- /dev/null
@@ -0,0 +1,561 @@
+/*
+
+        _____  __ _____________ _______  ______ ___________
+       /     \|  |  \____ \__  \\_  __ \/  ___// __ \_  __ \
+   |  Y Y  \  |  /  |_> > __ \|  | \/\___ \\  ___/|  | \/
+   |__|_|  /____/|   __(____  /__|  /____  >\___  >__|
+                \/      |__|       \/           \/     \/
+   Copyright (C) 2004 - 2020 Ingo Berg
+
+       Redistribution and use in source and binary forms, with or without modification, are permitted
+       provided that the following conditions are met:
+
+         * Redistributions of source code must retain the above copyright notice, this list of
+               conditions and the following disclaimer.
+         * Redistributions in binary form must reproduce the above copyright notice, this list of
+               conditions and the following disclaimer in the documentation and/or other materials provided
+               with the distribution.
+
+       THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+       IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+       FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+       CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+       DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+       DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+       IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+       OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "muParserTest.h"
+
+#include <cstdlib>
+#include <cstring>
+#include <cmath>
+#include <string>
+#include <iostream>
+#include <locale>
+#include <limits>
+#include <ios> 
+#include <iomanip>
+#include <numeric>
+
+#include "muParser.h"
+
+using namespace std;
+using namespace mu;
+
+
+// Forward declarations
+void CalcBulk();
+
+// Operator callback functions
+static value_type Mega(value_type a_fVal) { return a_fVal * 1e6; }
+static value_type Milli(value_type a_fVal) { return a_fVal / (value_type)1e3; }
+static value_type Rnd(value_type v) { return v * std::rand() / (value_type)(RAND_MAX + 1.0); }
+static value_type Not(value_type v) { return v == 0; }
+static value_type Add(value_type v1, value_type v2) { return v1 + v2; }
+static value_type Mul(value_type v1, value_type v2) { return v1 * v2; }
+static value_type Arg2Of2(value_type /* v1 */, value_type v2) { return v2; }
+static value_type Arg1Of2(value_type v1, value_type /* v2 */) { return v1; }
+
+
+static value_type ThrowAnException(value_type)
+{
+       throw std::runtime_error("This function does throw an exception.");
+}
+
+
+static value_type BulkFun1(int nBulkIdx, int nThreadIdx, value_type v1)
+{
+       // Note: I'm just doing something with all three parameters to shut 
+       // compiler warnings up!
+       return (value_type)nBulkIdx + nThreadIdx + v1;
+}
+
+
+static value_type Ping()
+{
+       mu::console() << "ping\n";
+       return 0;
+}
+
+
+static value_type StrFun0(const char_type* szMsg)
+{
+       if (szMsg)
+               mu::console() << szMsg << std::endl;
+
+       return 999;
+}
+
+
+static value_type StrFun2(const char_type* v1, value_type v2, value_type v3)
+{
+       mu::console() << v1 << std::endl;
+       return v2 + v3;
+}
+
+
+static value_type Debug(mu::value_type v1, mu::value_type v2)
+{
+       ParserBase::EnableDebugDump(v1 != 0, v2 != 0);
+       mu::console() << _T("Bytecode dumping ") << ((v1 != 0) ? _T("active") : _T("inactive")) << _T("\n");
+       return 1;
+}
+
+
+// Factory function for creating new parser variables
+// This could as well be a function performing database queries.
+static value_type* AddVariable(const char_type* a_szName, void* a_pUserData)
+{
+       // I don't want dynamic allocation here, so i used this static buffer
+       // If you want dynamic allocation you must allocate all variables dynamically
+       // in order to delete them later on. Or you find other ways to keep track of 
+       // variables that have been created implicitely.
+       static value_type afValBuf[100];
+       static int iVal = -1;
+
+       ++iVal;
+
+       mu::console()
+               << _T("Generating new variable \"")
+               << a_szName << std::dec << _T("\" (slots left: ")
+               << 99 - iVal << _T(")")
+               << _T(" User data pointer is:")
+               << std::hex << a_pUserData << endl;
+
+       afValBuf[iVal] = 0;
+
+       if (iVal >= 99)
+               throw mu::ParserError(_T("Variable buffer overflow."));
+       else
+               return &afValBuf[iVal];
+}
+
+int IsBinValue(const char_type* a_szExpr, int* a_iPos, value_type* a_fVal)
+{
+       if (a_szExpr[0] != 0 && a_szExpr[1] != 'b')
+               return 0;
+
+       unsigned iVal = 0;
+       unsigned iBits = sizeof(iVal) * 8;
+       unsigned i = 0;
+
+       for (i = 0; (a_szExpr[i + 2] == '0' || a_szExpr[i + 2] == '1') && i < iBits; ++i)
+               iVal |= (int)(a_szExpr[i + 2] == '1') << ((iBits - 1) - i);
+
+       if (i == 0)
+               return 0;
+
+       if (i == iBits)
+               throw mu::Parser::exception_type(_T("Binary to integer conversion error (overflow)."));
+
+       *a_fVal = (unsigned)(iVal >> (iBits - i));
+       *a_iPos += i + 2;
+
+       return 1;
+}
+
+static int IsHexValue(const char_type* a_szExpr, int* a_iPos, value_type* a_fVal)
+{
+       if (a_szExpr[1] == 0 || (a_szExpr[0] != '0' || a_szExpr[1] != 'x'))
+               return 0;
+
+       unsigned iVal(0);
+
+       // New code based on streams for UNICODE compliance:
+       stringstream_type::pos_type nPos(0);
+       stringstream_type ss(a_szExpr + 2);
+       ss >> std::hex >> iVal;
+       nPos = ss.tellg();
+
+       if (nPos == (stringstream_type::pos_type)0)
+               return 1;
+
+       *a_iPos += (int)(2 + nPos);
+       *a_fVal = (value_type)iVal;
+
+       return 1;
+}
+
+
+static void Splash()
+{
+       mu::console() << _T("\n");
+       mu::console() << _T(R"(   _____  __ _____________ ________  _____ ____________  )") << _T("\n");
+       mu::console() << _T(R"(  /     \|  |  \____ \__   \\_  __ \/ ___// __  \_  __ \ )") << _T("\n");
+       mu::console() << _T(R"( |  Y Y  \  |  /  |_> > ___ \|  | \/\___\\  ___/ |  | \/ )") << _T("\n");
+       mu::console() << _T(R"( |__|_|  /____/|   __(____  /___|  /___  >\___  >|__|    )") << _T("\n");
+       mu::console() << _T(R"(       \/      |__|       \/           \/     \/        )") << _T("\n");
+       mu::console() << _T("  Version ") << Parser().GetVersion(pviFULL) << _T("\n");
+       mu::console() << _T("  (C) 2004 - 2020 Ingo Berg\n");
+       mu::console() << _T("\n");
+       mu::console() << _T("-----------------------------------------------------------\n");
+
+#if defined(__clang__)
+       // Note: CLANG also identifies as GCC 4.2.1
+       mu::console() << _T("  Compiled with CLANG Version ") << __clang_major__ << _T(".") << __clang_minor__ << _T(".") << __clang_patchlevel__ << _T("\n");
+#elif defined (__GNUC__)
+       mu::console() << _T("  Compiled with GCC Version ") << __GNUC__ << _T(".") << __GNUC_MINOR__ << _T(".") << __GNUC_PATCHLEVEL__ << _T("\n");
+#elif defined(_MSC_VER)
+       mu::console() << _T("  Compiled with MSVC Version ") << _MSC_VER << _T("\n");
+#endif
+
+       mu::console() << _T("  IEEE 754 (IEC 559) is ") << ((std::numeric_limits<double>::is_iec559) ? "Available" : " NOT AVAILABLE") << _T("\n");
+       mu::console() << _T("  ") << sizeof(void*) * 8 << _T("-bit build\n");
+}
+
+
+static value_type SelfTest()
+{
+       mu::console() << _T("-----------------------------------------------------------\n");
+       mu::console() << _T("Running unit tests:\n\n");
+
+       // Skip the self test if the value type is set to an integer type.
+       if (mu::TypeInfo<mu::value_type>::IsInteger())
+       {
+               mu::console() << _T("  Test skipped: integer data type are not compatible with the unit test!\n\n");
+       }
+       else
+       {
+               mu::Test::ParserTester pt;
+               pt.Run();
+       }
+
+       return 0;
+}
+
+
+static value_type Help()
+{
+       mu::console() << _T("-----------------------------------------------------------\n");
+       mu::console() << _T("Commands:\n\n");
+       mu::console() << _T("  list var     - list parser variables\n");
+       mu::console() << _T("  list exprvar - list expression variables\n");
+       mu::console() << _T("  list const   - list all numeric parser constants\n");
+       mu::console() << _T("  opt on       - enable optimizer (default)\n");
+       mu::console() << _T("  opt off      - disable optimizer\n");
+       mu::console() << _T("  locale de    - switch to german locale\n");
+       mu::console() << _T("  locale en    - switch to english locale\n");
+       mu::console() << _T("  locale reset - reset locale\n");
+       mu::console() << _T("  test bulk    - test bulk mode\n");
+       mu::console() << _T("  quit         - exits the parser\n");
+       mu::console() << _T("\nConstants:\n\n");
+       mu::console() << _T("  \"_e\"   2.718281828459045235360287\n");
+       mu::console() << _T("  \"_pi\"  3.141592653589793238462643\n");
+       mu::console() << _T("-----------------------------------------------------------\n");
+       return 0;
+}
+
+
+static void ListVar(const mu::ParserBase& parser)
+{
+       // Query the used variables (must be done after calc)
+       mu::varmap_type variables = parser.GetVar();
+       if (!variables.size())
+               return;
+
+       cout << "\nParser variables:\n";
+       cout << "-----------------\n";
+       cout << "Number: " << (int)variables.size() << "\n";
+       varmap_type::const_iterator item = variables.begin();
+       for (; item != variables.end(); ++item)
+               mu::console() << _T("Name: ") << item->first << _T("   Address: [0x") << item->second << _T("]\n");
+}
+
+
+static void ListConst(const mu::ParserBase& parser)
+{
+       mu::console() << _T("\nParser constants:\n");
+       mu::console() << _T("-----------------\n");
+
+       mu::valmap_type cmap = parser.GetConst();
+       if (!cmap.size())
+       {
+               mu::console() << _T("Expression does not contain constants\n");
+       }
+       else
+       {
+               valmap_type::const_iterator item = cmap.begin();
+               for (; item != cmap.end(); ++item)
+                       mu::console() << _T("  ") << item->first << _T(" =  ") << item->second << _T("\n");
+       }
+}
+
+
+static void ListExprVar(const mu::ParserBase& parser)
+{
+       string_type sExpr = parser.GetExpr();
+       if (sExpr.length() == 0)
+       {
+               cout << _T("Expression string is empty\n");
+               return;
+       }
+
+       // Query the used variables (must be done after calc)
+       mu::console() << _T("\nExpression variables:\n");
+       mu::console() << _T("---------------------\n");
+       mu::console() << _T("Expression: ") << parser.GetExpr() << _T("\n");
+
+       varmap_type variables = parser.GetUsedVar();
+       if (!variables.size())
+       {
+               mu::console() << _T("Expression does not contain variables\n");
+       }
+       else
+       {
+               mu::console() << _T("Number: ") << (int)variables.size() << _T("\n");
+               mu::varmap_type::const_iterator item = variables.begin();
+               for (; item != variables.end(); ++item)
+                       mu::console() << _T("Name: ") << item->first << _T("   Address: [0x") << item->second << _T("]\n");
+       }
+}
+
+
+/** \brief Check for external keywords.
+*/
+static int CheckKeywords(const mu::char_type* a_szLine, mu::Parser& a_Parser)
+{
+       string_type sLine(a_szLine);
+
+       if (sLine == _T("quit"))
+       {
+               return -1;
+       }
+       else if (sLine == _T("list var"))
+       {
+               ListVar(a_Parser);
+               return 1;
+       }
+       else if (sLine == _T("opt on"))
+       {
+               a_Parser.EnableOptimizer(true);
+               mu::console() << _T("Optimizer enabled\n");
+               return 1;
+       }
+       else if (sLine == _T("opt off"))
+       {
+               a_Parser.EnableOptimizer(false);
+               mu::console() << _T("Optimizer disabled\n");
+               return 1;
+       }
+       else if (sLine == _T("list const"))
+       {
+               ListConst(a_Parser);
+               return 1;
+       }
+       else if (sLine == _T("list exprvar"))
+       {
+               ListExprVar(a_Parser);
+               return 1;
+       }
+       else if (sLine == _T("locale de"))
+       {
+               mu::console() << _T("Setting german locale: ArgSep=';' DecSep=',' ThousandsSep='.'\n");
+               a_Parser.SetArgSep(';');
+               a_Parser.SetDecSep(',');
+               a_Parser.SetThousandsSep('.');
+               return 1;
+       }
+       else if (sLine == _T("locale en"))
+       {
+               mu::console() << _T("Setting english locale: ArgSep=',' DecSep='.' ThousandsSep=''\n");
+               a_Parser.SetArgSep(',');
+               a_Parser.SetDecSep('.');
+               a_Parser.SetThousandsSep();
+               return 1;
+       }
+       else if (sLine == _T("locale reset"))
+       {
+               mu::console() << _T("Resetting locale\n");
+               a_Parser.ResetLocale();
+               return 1;
+       }
+       else if (sLine == _T("test bulk"))
+       {
+               mu::console() << _T("Testing bulk mode\n");
+               CalcBulk();
+               return 1;
+       }
+       else if (sLine == _T("dbg"))
+       {
+               std::string dbg = R"(6 - 6 ? 4 : "", ? 4 : "", ? 4 : ""), 1)";
+               a_Parser.SetExpr(dbg);
+               mu::console() << dbg;
+
+               int stackSize;
+               double* v = a_Parser.Eval(stackSize);
+               mu::console() << *v << std::endl;
+               return 1;
+       }
+
+       return 0;
+}
+
+
+void CalcBulk()
+{
+       const int nBulkSize = 200;
+       value_type* x = new value_type[nBulkSize];
+       value_type* y = new value_type[nBulkSize];
+       value_type* result = new value_type[nBulkSize];
+
+       try
+       {
+               for (int i = 0; i < nBulkSize; ++i)
+               {
+                       x[i] = i;
+                       y[i] = (value_type)i / 10;
+               }
+               mu::Parser  parser;
+               parser.DefineVar(_T("x"), x);
+               parser.DefineVar(_T("y"), y);
+               parser.DefineFun(_T("fun1"), BulkFun1);
+               parser.SetExpr(_T("fun1(0)+x+y"));
+               parser.Eval(result, nBulkSize);
+
+               for (int i = 0; i < nBulkSize; ++i)
+               {
+                       mu::console() << _T("Eqn. ") << i << _T(": x=") << x[i] << _T("; y=") << y[i] << _T("; result=") << result[i] << _T("\n");
+               }
+       }
+       catch (...)
+       {
+               delete[] x;
+               delete[] y;
+               delete[] result;
+               throw;
+       }
+
+       delete[] x;
+       delete[] y;
+       delete[] result;
+}
+
+
+static void Calc()
+{
+       mu::Parser  parser;
+
+       // Add some variables
+       value_type  vVarVal[] = { 1, 2 }; // Values of the parser variables
+       parser.DefineVar(_T("a"), &vVarVal[0]);  // Assign Variable names and bind them to the C++ variables
+       parser.DefineVar(_T("b"), &vVarVal[1]);
+       parser.DefineVar(_T("ft"), &vVarVal[1]);
+       parser.DefineStrConst(_T("sVar1"), _T("Sample string 1"));
+       parser.DefineStrConst(_T("sVar2"), _T("Sample string 2"));
+       parser.AddValIdent(IsHexValue);
+       parser.AddValIdent(IsBinValue);
+
+       // Add user defined unary operators
+       parser.DefinePostfixOprt(_T("M"), Mega);
+       parser.DefinePostfixOprt(_T("m"), Milli);
+       parser.DefineInfixOprt(_T("!"), Not);
+       parser.DefineFun(_T("strfun0"), StrFun0);
+       parser.DefineFun(_T("strfun2"), StrFun2);
+       parser.DefineFun(_T("ping"), Ping);
+       parser.DefineFun(_T("rnd"), Rnd);     // Add an unoptimizeable function
+       parser.DefineFun(_T("throw"), ThrowAnException);
+
+       parser.DefineOprt(_T("add"), Add, 0);
+       parser.DefineOprt(_T("mul"), Mul, 1);
+
+       // These are service and debug functions
+       parser.DefineFun(_T("debug"), Debug);
+       parser.DefineFun(_T("selftest"), SelfTest);
+       parser.DefineFun(_T("help"), Help);
+       parser.DefineFun(_T("arg2of2"), Arg2Of2);
+       parser.DefineFun(_T("arg1of2"), Arg1Of2);
+
+       parser.DefinePostfixOprt(_T("{ft}"), Milli);
+       parser.DefinePostfixOprt(_T("ft"), Milli);
+
+       // Define the variable factory
+       parser.SetVarFactory(AddVariable, &parser);
+
+       for (;;)
+       {
+               try
+               {
+                       string_type sLine;
+                       std::getline(mu::console_in(), sLine);
+
+                       switch (CheckKeywords(sLine.c_str(), parser))
+                       {
+                       case  0: break;
+                       case  1: continue;
+                       case -1: return;
+                       }
+
+                       if (!sLine.length())
+                               continue;
+
+                       parser.SetExpr(sLine);
+                       mu::console() << std::setprecision(12);
+
+                       // There are multiple ways to retrieve the result...
+                       // 1.) If you know there is only a single return value or in case you only need the last 
+                       //     result of an expression consisting of comma separated subexpressions you can 
+                       //     simply use: 
+                       mu::console() << _T("ans=") << parser.Eval() << _T("\n");
+
+                       // 2.) As an alternative you can also retrieve multiple return values using this API:
+                       int nNum = parser.GetNumResults();
+                       if (nNum > 1)
+                       {
+                               mu::console() << _T("Multiple return values detected! Complete list:\n");
+
+                               // this is the hard way if you need to retrieve multiple subexpression
+                               // results
+                               value_type* v = parser.Eval(nNum);
+                               mu::console() << std::setprecision(12);
+                               for (int i = 0; i < nNum; ++i)
+                               {
+                                       mu::console() << v[i] << _T("\n");
+                               }
+                       }
+               }
+               catch (mu::Parser::exception_type& e)
+               {
+                       mu::console() << _T("\nError:\n");
+                       mu::console() << _T("------\n");
+                       mu::console() << _T("Message:     ") << e.GetMsg() << _T("\n");
+                       mu::console() << _T("Expression:  \"") << e.GetExpr() << _T("\"\n");
+                       mu::console() << _T("Token:       \"") << e.GetToken() << _T("\"\n");
+                       mu::console() << _T("Position:    ") << (int)e.GetPos() << _T("\n");
+                       mu::console() << _T("Errc:        ") << std::dec << e.GetCode() << _T("\n");
+               }
+       } // while running
+}
+
+
+int main(int, char**)
+{
+       Splash();
+       SelfTest();
+       Help();
+
+       mu::console() << _T("Enter an expression or a command:\n");
+
+       try
+       {
+               Calc();
+       }
+       catch (Parser::exception_type& e)
+       {
+               // Only erros raised during the initialization will end up here
+               // formula related errors are treated in Calc()
+               console() << _T("Initialization error:  ") << e.GetMsg() << endl;
+               console() << _T("aborting...") << endl;
+               string_type sBuf;
+               console_in() >> sBuf;
+       }
+       catch (std::exception& /*exc*/)
+       {
+               // there is no unicode compliant way to query exc.what()
+               // i'll leave it for this example.
+               console() << _T("aborting...\n");
+       }
+
+       return 0;
+}
diff --git a/src/external/muparser/samples/example2/Readme.txt b/src/external/muparser/samples/example2/Readme.txt
new file mode 100644 (file)
index 0000000..312df48
--- /dev/null
@@ -0,0 +1,17 @@
+
+                 __________
+    _____   __ __\______   \_____  _______  ______  ____ _______
+   /     \ |  |  \|     ___/\__  \ \_  __ \/  ___/_/ __ \\_  __ \
+  |  Y Y  \|  |  /|    |     / __ \_|  | \/\___ \ \  ___/ |  | \/
+  |__|_|  /|____/ |____|    (____  /|__|  /____  > \___  >|__|
+        \/                       \/            \/      \/
+
+  Copyright (C) 2004-2020
+  Ingo Berg
+
+
+This sample demonstrates using muParsers C-interface. The C-Interface
+is useful when interfacing muParser from different languages such
+as C#. This sample is intended for use with the MS-Windows OS.
+
+The sample should work with windows and linux.
diff --git a/src/external/muparser/samples/example2/example2.c b/src/external/muparser/samples/example2/example2.c
new file mode 100644 (file)
index 0000000..8106c69
--- /dev/null
@@ -0,0 +1,461 @@
+/*
+
+        _____  __ _____________ _______  ______ ___________
+       /     \|  |  \____ \__  \\_  __ \/  ___// __ \_  __ \
+   |  Y Y  \  |  /  |_> > __ \|  | \/\___ \\  ___/|  | \/
+   |__|_|  /____/|   __(____  /__|  /____  >\___  >__|
+                \/      |__|       \/           \/     \/
+   Copyright (C) 2004 - 2020 Ingo Berg
+
+       Redistribution and use in source and binary forms, with or without modification, are permitted
+       provided that the following conditions are met:
+
+         * Redistributions of source code must retain the above copyright notice, this list of
+               conditions and the following disclaimer.
+         * Redistributions in binary form must reproduce the above copyright notice, this list of
+               conditions and the following disclaimer in the documentation and/or other materials provided
+               with the distribution.
+
+       THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
+       IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+       FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+       CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+       DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+       DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+       IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+       OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include <string.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <wchar.h>
+#include <inttypes.h>
+
+#include "muParserDLL.h"
+
+#define PARSER_CONST_PI  3.141592653589793238462643
+#define PARSER_CONST_E   2.718281828459045235360287
+#define PARSER_MAXVARS         10
+
+#ifndef _UNICODE
+       #define _T(x) x
+       #define myprintf printf
+       #define mystrlen strlen
+       #define myfgets fgets
+       #define mystrcmp strcmp
+#else
+       #define _T(x) L ##x
+       #define myprintf wprintf
+       #define mystrlen wcslen
+       #define myfgets fgetws
+       #define mystrcmp wcscmp
+#endif
+
+static void CalcBulk(void);
+
+//---------------------------------------------------------------------------
+// Callbacks for postfix operators
+static muFloat_t Mega(muFloat_t a_fVal)
+{
+       return a_fVal * 1.0e6;
+}
+
+static muFloat_t Milli(muFloat_t a_fVal)
+{
+       return a_fVal / 1.0e3;
+}
+
+static muFloat_t ZeroArg(void)
+{
+       myprintf(_T("i'm a function without arguments.\n"));
+       return 123;
+}
+
+static muFloat_t BulkTest(int nBulkIdx, int nThreadIdx, muFloat_t v1)
+{
+       myprintf(_T("%d,%2.2f\n"), nBulkIdx, v1);
+       return v1 / ((muFloat_t)nBulkIdx + 1);
+}
+
+//---------------------------------------------------------------------------
+// Callbacks for infix operators
+static muFloat_t Not(muFloat_t v) { return v == 0; }
+
+//---------------------------------------------------------------------------
+// Function callbacks
+static muFloat_t Rnd(muFloat_t v) { return v * rand() / (muFloat_t)(RAND_MAX + 1.0); }
+
+static muFloat_t Sum(const muFloat_t* a_afArg, int a_iArgc)
+{
+       muFloat_t fRes = 0;
+       int i = 0;
+
+       for (i = 0; i < a_iArgc; ++i)
+               fRes += a_afArg[i];
+
+       return fRes;
+}
+
+//---------------------------------------------------------------------------
+// Binarty operator callbacks
+static muFloat_t Add(muFloat_t v1, muFloat_t v2)
+{
+       return v1 + v2;
+}
+
+static muFloat_t Mul(muFloat_t v1, muFloat_t v2)
+{
+       return v1 * v2;
+}
+
+//---------------------------------------------------------------------------
+// Factory function for creating new parser variables
+// This could as well be a function performing database queries.
+static muFloat_t* AddVariable(const muChar_t* a_szName, void* pUserData)
+{
+       static muFloat_t afValBuf[PARSER_MAXVARS];  // I don't want dynamic allocation here
+       static int iVal = 0;                                            // so i used this buffer
+
+       myprintf(_T("Generating new variable \"%s\" (slots left: %d; context pointer: %") _T(PRIxPTR) _T(")\n"), a_szName, PARSER_MAXVARS - iVal, (intptr_t)pUserData);
+
+       afValBuf[iVal] = 0;
+       if (iVal >= PARSER_MAXVARS - 1)
+       {
+               myprintf(_T("Variable buffer overflow."));
+               return NULL;
+       }
+
+       return &afValBuf[iVal++];
+}
+
+//---------------------------------------------------------------------------
+static void Intro(muParserHandle_t hParser)
+{
+       myprintf(_T("                 __________                                       \n"));
+       myprintf(_T("    _____   __ __\\______   \\_____  _______  ______  ____ _______\n"));
+       myprintf(_T("   /     \\ |  |  \\|     ___/\\__  \\ \\_  __ \\/  ___/_/ __ \\\\_  __ \\ \n"));
+       myprintf(_T("  |  Y Y  \\|  |  /|    |     / __ \\_|  | \\/\\___ \\ \\  ___/ |  | \\/ \n"));
+       myprintf(_T("  |__|_|  /|____/ |____|    (____  /|__|  /____  > \\___  >|__|    \n"));
+       myprintf(_T("        \\/                       \\/            \\/      \\/         \n"));
+       myprintf(_T("  Version %s (DLL)\n"), mupGetVersion(hParser));
+#ifdef _UNICODE
+       myprintf(_T("  Sample build with UNICODE support\n"));
+#else
+       myprintf(_T("  Sample build with ASCII support\n"));
+#endif
+       myprintf(_T("  (C) 2004 - 2020 Ingo Berg\n"));
+       myprintf(_T("---------------------------------------\n"));
+       myprintf(_T("Commands:\n"));
+       myprintf(_T("  list var     - list parser variables\n"));
+       myprintf(_T("  list exprvar - list expression variables\n"));
+       myprintf(_T("  list const   - list all numeric parser constants\n"));
+       myprintf(_T("  locale de    - switch to german locale\n"));
+       myprintf(_T("  locale en    - switch to english locale\n"));
+       myprintf(_T("  locale reset - reset locale\n"));
+       myprintf(_T("  test bulk    - test bulk mode\n"));
+       myprintf(_T("  quit         - exits the parser\n\n"));
+       myprintf(_T("---------------------------------------\n"));
+       myprintf(_T("Constants:\n"));
+       myprintf(_T("  \"_e\"   2.718281828459045235360287\n"));
+       myprintf(_T("  \"_pi\"  3.141592653589793238462643\n"));
+       myprintf(_T("---------------------------------------\n"));
+       myprintf(_T("Please enter an expression:\n"));
+}
+
+//---------------------------------------------------------------------------
+// Callback function for parser errors
+static void OnError(muParserHandle_t hParser)
+{
+       myprintf(_T("\nError:\n"));
+       myprintf(_T("------\n"));
+       myprintf(_T("Message:  \"%s\"\n"), mupGetErrorMsg(hParser));
+       myprintf(_T("Token:    \"%s\"\n"), mupGetErrorToken(hParser));
+       myprintf(_T("Position: %d\n"), mupGetErrorPos(hParser));
+       myprintf(_T("Errc:     %d\n"), mupGetErrorCode(hParser));
+}
+
+//---------------------------------------------------------------------------
+static void ListVar(muParserHandle_t a_hParser)
+{
+       int iNumVar = mupGetVarNum(a_hParser);
+       int i = 0;
+
+       if (iNumVar == 0)
+       {
+               myprintf(_T("No variables defined\n"));
+               return;
+       }
+
+       myprintf(_T("\nExpression variables:\n"));
+       myprintf(_T("---------------------\n"));
+       myprintf(_T("Number: %d\n"), iNumVar);
+
+       for (i = 0; i < iNumVar; ++i)
+       {
+               const muChar_t* szName = 0;
+               muFloat_t* pVar = 0;
+
+               mupGetVar(a_hParser, i, &szName, &pVar);
+               myprintf(_T("Name: %s    Address: [%") _T(PRIxPTR) _T("]\n"), szName, (uintptr_t)pVar);
+       }
+}
+
+//---------------------------------------------------------------------------
+static void ListExprVar(muParserHandle_t a_hParser)
+{
+       muInt_t iNumVar = mupGetExprVarNum(a_hParser),
+               i = 0;
+
+       if (iNumVar == 0)
+       {
+               myprintf(_T("Expression dos not contain variables\n"));
+               return;
+       }
+
+       myprintf(_T("\nExpression variables:\n"));
+       myprintf(_T("---------------------\n"));
+       myprintf(_T("Expression: %s\n"), mupGetExpr(a_hParser));
+       myprintf(_T("Number: %d\n"), iNumVar);
+
+       for (i = 0; i < iNumVar; ++i)
+       {
+               const muChar_t* szName = 0;
+               muFloat_t* pVar = 0;
+
+               mupGetExprVar(a_hParser, i, &szName, &pVar);
+               myprintf(_T("Name: %s   Address: [%") _T(PRIxPTR) _T("]\n"), szName, (intptr_t)pVar);
+       }
+}
+
+//---------------------------------------------------------------------------
+static void ListConst(muParserHandle_t a_hParser)
+{
+       muInt_t iNumVar = mupGetConstNum(a_hParser),
+               i = 0;
+
+       if (iNumVar == 0)
+       {
+               myprintf(_T("No constants defined\n"));
+               return;
+       }
+
+       myprintf(_T("\nParser constants:\n"));
+       myprintf(_T("---------------------\n"));
+       myprintf(_T("Number: %d"), iNumVar);
+
+       for (i = 0; i < iNumVar; ++i)
+       {
+               const muChar_t* szName = 0;
+               muFloat_t fVal = 0;
+
+               mupGetConst(a_hParser, i, &szName, &fVal);
+               myprintf(_T("  %s = %f\n"), szName, fVal);
+       }
+}
+
+//---------------------------------------------------------------------------
+/** \brief Check for external keywords.
+*/
+static int CheckKeywords(const muChar_t* a_szLine, muParserHandle_t a_hParser)
+{
+       if (!mystrcmp(a_szLine, _T("quit")))
+       {
+               return -1;
+       }
+       else if (!mystrcmp(a_szLine, _T("list var")))
+       {
+               ListVar(a_hParser);
+               return 1;
+       }
+       else if (!mystrcmp(a_szLine, _T("list exprvar")))
+       {
+               ListExprVar(a_hParser);
+               return 1;
+       }
+       else if (!mystrcmp(a_szLine, _T("list const")))
+       {
+               ListConst(a_hParser);
+               return 1;
+       }
+       else if (!mystrcmp(a_szLine, _T("locale de")))
+       {
+               myprintf(_T("Setting german locale: ArgSep=';' DecSep=',' ThousandsSep='.'\n"));
+               mupSetArgSep(a_hParser, ';');
+               mupSetDecSep(a_hParser, ',');
+               mupSetThousandsSep(a_hParser, '.');
+               return 1;
+       }
+       else if (!mystrcmp(a_szLine, _T("locale en")))
+       {
+               myprintf(_T("Setting english locale: ArgSep=',' DecSep='.' ThousandsSep=''\n"));
+               mupSetArgSep(a_hParser, ',');
+               mupSetDecSep(a_hParser, '.');
+               mupSetThousandsSep(a_hParser, 0);
+               return 1;
+       }
+       else if (!mystrcmp(a_szLine, _T("locale reset")))
+       {
+               myprintf(_T("Resetting locale\n"));
+               mupResetLocale(a_hParser);
+               return 1;
+       }
+       else if (!mystrcmp(a_szLine, _T("test bulk")))
+       {
+               myprintf(_T("Testing bulk mode\n"));
+               CalcBulk();
+               return 1;
+       }
+
+       return 0;
+}
+
+//---------------------------------------------------------------------------
+static void CalcBulk(void)
+{
+       int nBulkSize = 200, i;
+       muFloat_t* x = (muFloat_t*)malloc(nBulkSize * sizeof(muFloat_t));
+       muFloat_t* y = (muFloat_t*)malloc(nBulkSize * sizeof(muFloat_t));
+       muFloat_t* r = (muFloat_t*)malloc(nBulkSize * sizeof(muFloat_t));
+
+       muParserHandle_t hParser = mupCreate(muBASETYPE_FLOAT);              // initialize the parser
+
+       for (i = 0; i < nBulkSize; ++i)
+       {
+               x[i] = i;
+               y[i] = i;
+               r[i] = 0;
+       }
+
+       mupDefineVar(hParser, _T("x"), x);
+       mupDefineVar(hParser, _T("y"), y);
+       mupDefineBulkFun1(hParser, _T("bulktest"), BulkTest);
+       mupSetExpr(hParser, _T("bulktest(x+y)"));
+       mupEvalBulk(hParser, r, nBulkSize);
+       if (mupError(hParser))
+       {
+               myprintf(_T("\nError:\n"));
+               myprintf(_T("------\n"));
+               myprintf(_T("Message:  %s\n"), mupGetErrorMsg(hParser));
+               myprintf(_T("Token:    %s\n"), mupGetErrorToken(hParser));
+               myprintf(_T("Position: %d\n"), mupGetErrorPos(hParser));
+               myprintf(_T("Errc:     %d\n"), mupGetErrorCode(hParser));
+               return;
+       }
+
+       for (i = 0; i < nBulkSize; ++i)
+       {
+               myprintf(_T("%d: bulkfun(%2.2f + %2.2f) = %2.2f\n"), i, x[i], y[i], r[i]);
+               x[i] = i;
+               y[i] = (muFloat_t)i / 10;
+       }
+
+       free(x);
+       free(y);
+       free(r);
+}
+
+//---------------------------------------------------------------------------
+static void Calc(void)
+{
+       muChar_t szLine[100];
+       muFloat_t fVal = 0,
+               afVarVal[] = { 1, 2 }; // Values of the parser variables
+       muParserHandle_t hParser;
+
+       hParser = mupCreate(muBASETYPE_FLOAT);              // initialize the parser
+       Intro(hParser);
+
+       // Set an error handler [optional]
+       // the only function that does not take a parser instance handle
+       mupSetErrorHandler(hParser, OnError);
+
+       //#define GERMAN_LOCALS
+#ifdef GERMAN_LOCALS
+       mupSetArgSep(hParser, ';');
+       mupSetDecSep(hParser, ',');
+       mupSetThousandsSep(hParser, '.');
+#else
+       mupSetArgSep(hParser, ',');
+       mupSetDecSep(hParser, '.');
+#endif
+
+       // Set a variable factory
+       mupSetVarFactory(hParser, AddVariable, NULL);
+
+       // Define parser variables and bind them to C++ variables [optional]
+       mupDefineConst(hParser, _T("const1"), 1);
+       mupDefineConst(hParser, _T("const2"), 2);
+       mupDefineStrConst(hParser, _T("strBuf"), _T("Hallo welt"));
+
+       // Define parser variables and bind them to C++ variables [optional]
+       mupDefineVar(hParser, _T("a"), &afVarVal[0]);
+       mupDefineVar(hParser, _T("b"), &afVarVal[1]);
+
+       // Define postfix operators [optional]
+       mupDefinePostfixOprt(hParser, _T("M"), Mega, 0);
+       mupDefinePostfixOprt(hParser, _T("m"), Milli, 0);
+
+       // Define infix operator [optional]
+       mupDefineInfixOprt(hParser, _T("!"), Not, 0);
+
+       // Define functions [optional]
+       //  mupDefineStrFun(hParser, "query", SampleQuery, 0); // Add an unoptimizeable function 
+       mupDefineFun0(hParser, _T("zero"), ZeroArg, 0);
+       mupDefineFun1(hParser, _T("rnd"), Rnd, 0);             // Add an unoptimizeable function
+       mupDefineFun1(hParser, _T("rnd2"), Rnd, 1);
+       mupDefineMultFun(hParser, _T("_sum"), Sum, 0);  // "sum" is already a default function
+
+       // Define binary operators [optional]
+       mupDefineOprt(hParser, _T("add"), Add, 0, muOPRT_ASCT_LEFT, 0);
+       mupDefineOprt(hParser, _T("mul"), Mul, 1, muOPRT_ASCT_LEFT, 0);
+
+       while (myfgets(szLine, 99, stdin))
+       {
+               szLine[mystrlen(szLine) - 1] = 0; // overwrite the newline
+
+               switch (CheckKeywords(szLine, hParser))
+               {
+               case  0:  break;       // no keyword found; parse the line
+               case  1:  continue;    // A Keyword was found do not parse the line
+               case -1:  return;      // abort the application
+               }
+
+               mupSetExpr(hParser, szLine);
+
+               fVal = mupEval(hParser);
+
+
+               // Without an Error handler function 
+               // you must use this for error treatment:
+               //if (mupError(hParser))
+               //{
+               //  printf("\nError:\n");
+               //  printf("------\n");
+               //  printf("Message:  %s\n", mupGetErrorMsg(hParser) );
+               //  printf("Token:    %s\n", mupGetErrorToken(hParser) );
+               //  printf("Position: %s\n", mupGetErrorPos(hParser) );
+               //  printf("Errc:     %d\n", mupGetErrorCode(hParser) );
+               //  continue;
+               //}
+
+               if (!mupError(hParser))
+                       myprintf(_T("%f\n"), fVal);
+
+       } // while 
+
+       // finally free the parser resources
+       mupRelease(hParser);
+}
+
+//---------------------------------------------------------------------------
+int main(int argc, char* argv[])
+{
+       // The next line is just for shutting up the compiler warning
+       // about unused variables without getting another warning about not
+       // being able to use type lists in function declarations.
+       myprintf(_T("Executing \"%s\" (argc=%d)\n"), argv[0], argc);
+       Calc();
+       printf(_T("done..."));
+}
similarity index 99%
rename from src/external/muparser/muParserBase.cpp
rename to src/external/muparser/src/muParserBase.cpp
index 4d94ebe4b3146e2987c1a1d7091c67c33116beba..eac46ca764d6992620f3e2ab986030031b7e70bd 100644 (file)
@@ -52,7 +52,7 @@
 using namespace std;
 
 /** \file
-       \brief This file contains the basic implementation of the muParser engine.
+       \brief This file contains the basic implementation of the muparser engine.
 */
 
 namespace mu
@@ -196,7 +196,7 @@ namespace mu
                \param cDecSep Decimal separator as a character value.
                \sa SetThousandsSep
 
-               By default muParser uses the "C" locale. The decimal separator of this
+               By default muparser uses the "C" locale. The decimal separator of this
                locale is overwritten by the one provided here.
        */
        void ParserBase::SetDecSep(char_type cDecSep)
@@ -210,7 +210,7 @@ namespace mu
                \param cThousandsSep The thousands separator as a character
                \sa SetDecSep
 
-               By default muParser uses the "C" locale. The thousands separator of this
+               By default muparser uses the "C" locale. The thousands separator of this
                locale is overwritten by the one provided here.
        */
        void ParserBase::SetThousandsSep(char_type cThousandsSep)
@@ -264,7 +264,7 @@ namespace mu
        {}
 
        //---------------------------------------------------------------------------
-       /** \brief Returns the version of muParser.
+       /** \brief Returns the version of muparser.
                \param eInfo A flag indicating whether the full version info should be
                                         returned or not.
 
similarity index 99%
rename from src/external/muparser/muParserDLL.cpp
rename to src/external/muparser/src/muParserDLL.cpp
index b62deb64d98735010d7a3b9f825072fbe37b0a54..ed697190fa01dfb6faa94489bc3c70c7b6a73bf9 100644 (file)
@@ -72,7 +72,7 @@
         }
 
 /** \file
-       \brief This file contains the implementation of the DLL interface of muParser.
+       \brief This file contains the implementation of the DLL interface of muparser.
 */
 
 typedef mu::ParserBase::exception_type muError_t;
diff --git a/src/external/muparser/test/t_ParserTest.cpp b/src/external/muparser/test/t_ParserTest.cpp
new file mode 100644 (file)
index 0000000..9d0463a
--- /dev/null
@@ -0,0 +1,9 @@
+#include "muParserTest.h"
+
+using namespace mu::Test;
+
+int main(int, char**)
+{
+  ParserTester tester;
+  return tester.Run();
+}
index 99e8e7ae7a884e746de5cd9371e0b65718674bbe..248432bdcc289751d1238a8a57f807ff895d335f 100644 (file)
@@ -1,7 +1,7 @@
 #
 # This file is part of the GROMACS molecular simulation package.
 #
-# Copyright (c) 2016,2020, by the GROMACS development team, led by
+# Copyright (c) 2016,2020,2021, by the GROMACS development team, led by
 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
 # and including many others, as listed in the AUTHORS file in the
 # top-level source directory and at http://www.gromacs.org.
@@ -36,4 +36,4 @@ gmx_add_unit_test(PullTest  pull-test
     CPP_SOURCE_FILES
         pull.cpp
         )
-
+target_link_libraries(pull-test PRIVATE muparser)