diff --git a/CMakeLists.txt b/CMakeLists.txt index 1326fd0..cc4fc46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,5 +13,5 @@ add_library( src/core/manager/CalculationManagement.cpp include/CalculationManagement.h src/core/calculation/PrefixExpressionOperation.cpp src/exceptional/MExceptional.cpp include/MExceptional.h - src/utils/NumberUtils.cpp src/utils/StrUtils.cpp src/dataContainer/MEStack.cpp include/MEStack.h include/PrefixExpressionOperation.h src/core/calculation/NumberCalculation.cpp include/NumberCalculation.h src/core/calculation/Calculation.cpp include/Calculation.h include/mathematical_expression.h) + src/utils/NumberUtils.cpp src/utils/StrUtils.cpp src/dataContainer/MEStack.cpp include/MEStack.h include/PrefixExpressionOperation.h src/core/calculation/NumberCalculation.cpp include/NumberCalculation.h src/core/calculation/Calculation.cpp include/Calculation.h include/mathematical_expression.h src/core/calculation/BracketsCalculation.cpp include/BracketsCalculation.h) diff --git a/cmake-build-debug/.cmake/api/v1/reply/cache-v2-1d7b546c8d7a024b45b5.json b/cmake-build-debug/.cmake/api/v1/reply/cache-v2-1d7b546c8d7a024b45b5.json index 83e058b..c03317a 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/cache-v2-1d7b546c8d7a024b45b5.json +++ b/cmake-build-debug/.cmake/api/v1/reply/cache-v2-1d7b546c8d7a024b45b5.json @@ -1,1187 +1,1275 @@ { - "entries": [ - { - "name": "CMAKE_ADDR2LINE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/addr2line.exe" - }, - { - "name": "CMAKE_AR", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/ar.exe" - }, - { - "name": "CMAKE_BUILD_TYPE", - "properties": [ - { - "name": "HELPSTRING", - "value": "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ..." - } - ], - "type": "STRING", - "value": "Debug" - }, - { - "name": "CMAKE_CACHEFILE_DIR", - "properties": [ - { - "name": "HELPSTRING", - "value": "This is the directory where this CMakeCache.txt was created" - } - ], - "type": "INTERNAL", - "value": "d:/MyGithub/mathematical-expression-cpp/cmake-build-debug" - }, - { - "name": "CMAKE_CACHE_MAJOR_VERSION", - "properties": [ - { - "name": "HELPSTRING", - "value": "Major version of cmake used to create the current loaded cache" - } - ], - "type": "INTERNAL", - "value": "3" - }, - { - "name": "CMAKE_CACHE_MINOR_VERSION", - "properties": [ - { - "name": "HELPSTRING", - "value": "Minor version of cmake used to create the current loaded cache" - } - ], - "type": "INTERNAL", - "value": "23" - }, - { - "name": "CMAKE_CACHE_PATCH_VERSION", - "properties": [ - { - "name": "HELPSTRING", - "value": "Patch version of cmake used to create the current loaded cache" - } - ], - "type": "INTERNAL", - "value": "2" - }, - { - "name": "CMAKE_COMMAND", - "properties": [ - { - "name": "HELPSTRING", - "value": "Path to CMake executable." - } - ], - "type": "INTERNAL", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/cmake.exe" - }, - { - "name": "CMAKE_CPACK_COMMAND", - "properties": [ - { - "name": "HELPSTRING", - "value": "Path to cpack program executable." - } - ], - "type": "INTERNAL", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/cpack.exe" - }, - { - "name": "CMAKE_CTEST_COMMAND", - "properties": [ - { - "name": "HELPSTRING", - "value": "Path to ctest program executable." - } - ], - "type": "INTERNAL", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/ctest.exe" - }, - { - "name": "CMAKE_CXX_COMPILER", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "CXX compiler" - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/g++.exe" - }, - { - "name": "CMAKE_CXX_COMPILER_AR", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc-ar.exe" - }, - { - "name": "CMAKE_CXX_COMPILER_RANLIB", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc-ranlib.exe" - }, - { - "name": "CMAKE_CXX_FLAGS", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the CXX compiler during all build types." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_CXX_FLAGS_DEBUG", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the CXX compiler during DEBUG builds." - } - ], - "type": "STRING", - "value": "-g" - }, - { - "name": "CMAKE_CXX_FLAGS_MINSIZEREL", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the CXX compiler during MINSIZEREL builds." - } - ], - "type": "STRING", - "value": "-Os -DNDEBUG" - }, - { - "name": "CMAKE_CXX_FLAGS_RELEASE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the CXX compiler during RELEASE builds." - } - ], - "type": "STRING", - "value": "-O3 -DNDEBUG" - }, - { - "name": "CMAKE_CXX_FLAGS_RELWITHDEBINFO", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the CXX compiler during RELWITHDEBINFO builds." - } - ], - "type": "STRING", - "value": "-O2 -g -DNDEBUG" - }, - { - "name": "CMAKE_CXX_STANDARD_LIBRARIES", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Libraries linked by default with all C++ applications." - } - ], - "type": "STRING", - "value": "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32" - }, - { - "name": "CMAKE_C_COMPILER", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "C compiler" - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc.exe" - }, - { - "name": "CMAKE_C_COMPILER_AR", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc-ar.exe" - }, - { - "name": "CMAKE_C_COMPILER_RANLIB", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc-ranlib.exe" - }, - { - "name": "CMAKE_C_FLAGS", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the C compiler during all build types." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_C_FLAGS_DEBUG", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the C compiler during DEBUG builds." - } - ], - "type": "STRING", - "value": "-g" - }, - { - "name": "CMAKE_C_FLAGS_MINSIZEREL", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the C compiler during MINSIZEREL builds." - } - ], - "type": "STRING", - "value": "-Os -DNDEBUG" - }, - { - "name": "CMAKE_C_FLAGS_RELEASE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the C compiler during RELEASE builds." - } - ], - "type": "STRING", - "value": "-O3 -DNDEBUG" - }, - { - "name": "CMAKE_C_FLAGS_RELWITHDEBINFO", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the C compiler during RELWITHDEBINFO builds." - } - ], - "type": "STRING", - "value": "-O2 -g -DNDEBUG" - }, - { - "name": "CMAKE_C_STANDARD_LIBRARIES", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Libraries linked by default with all C applications." - } - ], - "type": "STRING", - "value": "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32" - }, - { - "name": "CMAKE_DLLTOOL", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/dlltool.exe" - }, - { - "name": "CMAKE_EXECUTABLE_FORMAT", - "properties": [ - { - "name": "HELPSTRING", - "value": "Executable file format" - } - ], - "type": "INTERNAL", - "value": "Unknown" - }, - { - "name": "CMAKE_EXE_LINKER_FLAGS", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during all build types." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_EXE_LINKER_FLAGS_DEBUG", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during DEBUG builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during MINSIZEREL builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_EXE_LINKER_FLAGS_RELEASE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during RELEASE builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during RELWITHDEBINFO builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_EXPORT_COMPILE_COMMANDS", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Enable/Disable output of compile commands during generation." - } - ], - "type": "BOOL", - "value": "" - }, - { - "name": "CMAKE_EXTRA_GENERATOR", - "properties": [ - { - "name": "HELPSTRING", - "value": "Name of external makefile project generator." - } - ], - "type": "INTERNAL", - "value": "" - }, - { - "name": "CMAKE_GENERATOR", - "properties": [ - { - "name": "HELPSTRING", - "value": "Name of generator." - } - ], - "type": "INTERNAL", - "value": "Ninja" - }, - { - "name": "CMAKE_GENERATOR_INSTANCE", - "properties": [ - { - "name": "HELPSTRING", - "value": "Generator instance identifier." - } - ], - "type": "INTERNAL", - "value": "" - }, - { - "name": "CMAKE_GENERATOR_PLATFORM", - "properties": [ - { - "name": "HELPSTRING", - "value": "Name of generator platform." - } - ], - "type": "INTERNAL", - "value": "" - }, - { - "name": "CMAKE_GENERATOR_TOOLSET", - "properties": [ - { - "name": "HELPSTRING", - "value": "Name of generator toolset." - } - ], - "type": "INTERNAL", - "value": "" - }, - { - "name": "CMAKE_GNUtoMS", - "properties": [ - { - "name": "HELPSTRING", - "value": "Convert GNU import libraries to MS format (requires Visual Studio)" - } - ], - "type": "BOOL", - "value": "OFF" - }, - { - "name": "CMAKE_HOME_DIRECTORY", - "properties": [ - { - "name": "HELPSTRING", - "value": "Source directory with the top level CMakeLists.txt file for this project" - } - ], - "type": "INTERNAL", - "value": "D:/MyGithub/mathematical-expression-cpp" - }, - { - "name": "CMAKE_INSTALL_PREFIX", - "properties": [ - { - "name": "HELPSTRING", - "value": "Install path prefix, prepended onto install directories." - } - ], - "type": "PATH", - "value": "C:/Program Files (x86)/mathematical_expression_cpp" - }, - { - "name": "CMAKE_LINKER", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/ld.exe" - }, - { - "name": "CMAKE_MAKE_PROGRAM", - "properties": [ - { - "name": "HELPSTRING", - "value": "make program" - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/ninja/win/ninja.exe" - }, - { - "name": "CMAKE_MODULE_LINKER_FLAGS", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of modules during all build types." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_MODULE_LINKER_FLAGS_DEBUG", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of modules during DEBUG builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of modules during MINSIZEREL builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_MODULE_LINKER_FLAGS_RELEASE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of modules during RELEASE builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_NM", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/nm.exe" - }, - { - "name": "CMAKE_NUMBER_OF_MAKEFILES", - "properties": [ - { - "name": "HELPSTRING", - "value": "number of local generators" - } - ], - "type": "INTERNAL", - "value": "1" - }, - { - "name": "CMAKE_OBJCOPY", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/objcopy.exe" - }, - { - "name": "CMAKE_OBJDUMP", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/objdump.exe" - }, - { - "name": "CMAKE_PLATFORM_INFO_INITIALIZED", - "properties": [ - { - "name": "HELPSTRING", - "value": "Platform information initialized" - } - ], - "type": "INTERNAL", - "value": "1" - }, - { - "name": "CMAKE_PROJECT_DESCRIPTION", - "properties": [ - { - "name": "HELPSTRING", - "value": "Value Computed by CMake" - } - ], - "type": "STATIC", - "value": "" - }, - { - "name": "CMAKE_PROJECT_HOMEPAGE_URL", - "properties": [ - { - "name": "HELPSTRING", - "value": "Value Computed by CMake" - } - ], - "type": "STATIC", - "value": "" - }, - { - "name": "CMAKE_PROJECT_NAME", - "properties": [ - { - "name": "HELPSTRING", - "value": "Value Computed by CMake" - } - ], - "type": "STATIC", - "value": "mathematical_expression_cpp" - }, - { - "name": "CMAKE_RANLIB", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/ranlib.exe" - }, - { - "name": "CMAKE_RC_COMPILER", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "RC compiler" - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/windres.exe" - }, - { - "name": "CMAKE_RC_COMPILER_WORKS", - "properties": [ - { - "name": "HELPSTRING", - "value": "" - } - ], - "type": "INTERNAL", - "value": "1" - }, - { - "name": "CMAKE_RC_FLAGS", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags for Windows Resource Compiler during all build types." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_RC_FLAGS_DEBUG", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags for Windows Resource Compiler during DEBUG builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_RC_FLAGS_MINSIZEREL", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags for Windows Resource Compiler during MINSIZEREL builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_RC_FLAGS_RELEASE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags for Windows Resource Compiler during RELEASE builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_RC_FLAGS_RELWITHDEBINFO", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags for Windows Resource Compiler during RELWITHDEBINFO builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_READELF", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/readelf.exe" - }, - { - "name": "CMAKE_ROOT", - "properties": [ - { - "name": "HELPSTRING", - "value": "Path to CMake installation." - } - ], - "type": "INTERNAL", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/share/cmake-3.23" - }, - { - "name": "CMAKE_SHARED_LINKER_FLAGS", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of shared libraries during all build types." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_SHARED_LINKER_FLAGS_DEBUG", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of shared libraries during DEBUG builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_SHARED_LINKER_FLAGS_RELEASE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of shared libraries during RELEASE builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_SKIP_INSTALL_RPATH", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "If set, runtime paths are not added when installing shared libraries, but are added when building." - } - ], - "type": "BOOL", - "value": "NO" - }, - { - "name": "CMAKE_SKIP_RPATH", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "If set, runtime paths are not added when using shared libraries." - } - ], - "type": "BOOL", - "value": "NO" - }, - { - "name": "CMAKE_STATIC_LINKER_FLAGS", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of static libraries during all build types." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_STATIC_LINKER_FLAGS_DEBUG", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of static libraries during DEBUG builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of static libraries during MINSIZEREL builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_STATIC_LINKER_FLAGS_RELEASE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of static libraries during RELEASE builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds." - } - ], - "type": "STRING", - "value": "" - }, - { - "name": "CMAKE_STRIP", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "Path to a program." - } - ], - "type": "FILEPATH", - "value": "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/strip.exe" - }, - { - "name": "CMAKE_VERBOSE_MAKEFILE", - "properties": [ - { - "name": "ADVANCED", - "value": "1" - }, - { - "name": "HELPSTRING", - "value": "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo." - } - ], - "type": "BOOL", - "value": "FALSE" - }, - { - "name": "mathematical_expression_cpp_BINARY_DIR", - "properties": [ - { - "name": "HELPSTRING", - "value": "Value Computed by CMake" - } - ], - "type": "STATIC", - "value": "D:/MyGithub/mathematical-expression-cpp/cmake-build-debug" - }, - { - "name": "mathematical_expression_cpp_IS_TOP_LEVEL", - "properties": [ - { - "name": "HELPSTRING", - "value": "Value Computed by CMake" - } - ], - "type": "STATIC", - "value": "ON" - }, - { - "name": "mathematical_expression_cpp_SOURCE_DIR", - "properties": [ - { - "name": "HELPSTRING", - "value": "Value Computed by CMake" - } - ], - "type": "STATIC", - "value": "D:/MyGithub/mathematical-expression-cpp" - } - ], - "kind": "cache", - "version": { - "major": 2, - "minor": 0 - } + "entries" : + [ + { + "name" : "CMAKE_ADDR2LINE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/addr2line.exe" + }, + { + "name" : "CMAKE_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/ar.exe" + }, + { + "name" : "CMAKE_BUILD_TYPE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ..." + } + ], + "type" : "STRING", + "value" : "Debug" + }, + { + "name" : "CMAKE_CACHEFILE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "This is the directory where this CMakeCache.txt was created" + } + ], + "type" : "INTERNAL", + "value" : "d:/MyGithub/mathematical-expression-cpp/cmake-build-debug" + }, + { + "name" : "CMAKE_CACHE_MAJOR_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Major version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "3" + }, + { + "name" : "CMAKE_CACHE_MINOR_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Minor version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "23" + }, + { + "name" : "CMAKE_CACHE_PATCH_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Patch version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "2" + }, + { + "name" : "CMAKE_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to CMake executable." + } + ], + "type" : "INTERNAL", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/cmake.exe" + }, + { + "name" : "CMAKE_CPACK_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to cpack program executable." + } + ], + "type" : "INTERNAL", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/cpack.exe" + }, + { + "name" : "CMAKE_CTEST_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to ctest program executable." + } + ], + "type" : "INTERNAL", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/ctest.exe" + }, + { + "name" : "CMAKE_CXX_COMPILER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "CXX compiler" + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/g++.exe" + }, + { + "name" : "CMAKE_CXX_COMPILER_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc-ar.exe" + }, + { + "name" : "CMAKE_CXX_COMPILER_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc-ranlib.exe" + }, + { + "name" : "CMAKE_CXX_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_CXX_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "-g" + }, + { + "name" : "CMAKE_CXX_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "-Os -DNDEBUG" + }, + { + "name" : "CMAKE_CXX_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "-O3 -DNDEBUG" + }, + { + "name" : "CMAKE_CXX_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "-O2 -g -DNDEBUG" + }, + { + "name" : "CMAKE_CXX_STANDARD_LIBRARIES", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Libraries linked by default with all C++ applications." + } + ], + "type" : "STRING", + "value" : "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32" + }, + { + "name" : "CMAKE_C_COMPILER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "C compiler" + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc.exe" + }, + { + "name" : "CMAKE_C_COMPILER_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc-ar.exe" + }, + { + "name" : "CMAKE_C_COMPILER_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/gcc-ranlib.exe" + }, + { + "name" : "CMAKE_C_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_C_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "-g" + }, + { + "name" : "CMAKE_C_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "-Os -DNDEBUG" + }, + { + "name" : "CMAKE_C_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "-O3 -DNDEBUG" + }, + { + "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "-O2 -g -DNDEBUG" + }, + { + "name" : "CMAKE_C_STANDARD_LIBRARIES", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Libraries linked by default with all C applications." + } + ], + "type" : "STRING", + "value" : "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32" + }, + { + "name" : "CMAKE_DLLTOOL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/dlltool.exe" + }, + { + "name" : "CMAKE_EXECUTABLE_FORMAT", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Executable file format" + } + ], + "type" : "INTERNAL", + "value" : "Unknown" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXPORT_COMPILE_COMMANDS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Enable/Disable output of compile commands during generation." + } + ], + "type" : "BOOL", + "value" : "" + }, + { + "name" : "CMAKE_EXTRA_GENERATOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of external makefile project generator." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator." + } + ], + "type" : "INTERNAL", + "value" : "Ninja" + }, + { + "name" : "CMAKE_GENERATOR_INSTANCE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Generator instance identifier." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR_PLATFORM", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator platform." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR_TOOLSET", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator toolset." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GNUtoMS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Convert GNU import libraries to MS format (requires Visual Studio)" + } + ], + "type" : "BOOL", + "value" : "OFF" + }, + { + "name" : "CMAKE_HOME_DIRECTORY", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Source directory with the top level CMakeLists.txt file for this project" + } + ], + "type" : "INTERNAL", + "value" : "D:/MyGithub/mathematical-expression-cpp" + }, + { + "name" : "CMAKE_INSTALL_PREFIX", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Install path prefix, prepended onto install directories." + } + ], + "type" : "PATH", + "value" : "C:/Program Files (x86)/mathematical_expression_cpp" + }, + { + "name" : "CMAKE_LINKER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/ld.exe" + }, + { + "name" : "CMAKE_MAKE_PROGRAM", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "make program" + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/ninja/win/ninja.exe" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_NM", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/nm.exe" + }, + { + "name" : "CMAKE_NUMBER_OF_MAKEFILES", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "number of local generators" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_OBJCOPY", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/objcopy.exe" + }, + { + "name" : "CMAKE_OBJDUMP", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/objdump.exe" + }, + { + "name" : "CMAKE_PLATFORM_INFO_INITIALIZED", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Platform information initialized" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_PROJECT_DESCRIPTION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_PROJECT_HOMEPAGE_URL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_PROJECT_NAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "mathematical_expression_cpp" + }, + { + "name" : "CMAKE_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/ranlib.exe" + }, + { + "name" : "CMAKE_RC_COMPILER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "RC compiler" + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/windres.exe" + }, + { + "name" : "CMAKE_RC_COMPILER_WORKS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_RC_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags for Windows Resource Compiler during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_RC_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags for Windows Resource Compiler during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_RC_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags for Windows Resource Compiler during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_RC_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags for Windows Resource Compiler during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_RC_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags for Windows Resource Compiler during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_READELF", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/readelf.exe" + }, + { + "name" : "CMAKE_ROOT", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to CMake installation." + } + ], + "type" : "INTERNAL", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/share/cmake-3.23" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SKIP_INSTALL_RPATH", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building." + } + ], + "type" : "BOOL", + "value" : "NO" + }, + { + "name" : "CMAKE_SKIP_RPATH", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If set, runtime paths are not added when using shared libraries." + } + ], + "type" : "BOOL", + "value" : "NO" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STRIP", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/strip.exe" + }, + { + "name" : "CMAKE_VERBOSE_MAKEFILE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo." + } + ], + "type" : "BOOL", + "value" : "FALSE" + }, + { + "name" : "mathematical_expression_cpp_BINARY_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "D:/MyGithub/mathematical-expression-cpp/cmake-build-debug" + }, + { + "name" : "mathematical_expression_cpp_IS_TOP_LEVEL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "ON" + }, + { + "name" : "mathematical_expression_cpp_SOURCE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "D:/MyGithub/mathematical-expression-cpp" + } + ], + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } } diff --git a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-2af2a14072092449dfe3.json b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-2af2a14072092449dfe3.json deleted file mode 100644 index dd260dc..0000000 --- a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-2af2a14072092449dfe3.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "configurations": [ - { - "directories": [ - { - "build": ".", - "jsonFile": "directory-.-Debug-d0094a50bb2071803777.json", - "minimumCMakeVersion": { - "string": "3.23" - }, - "projectIndex": 0, - "source": ".", - "targetIndexes": [ - 0 - ] - } - ], - "name": "Debug", - "projects": [ - { - "directoryIndexes": [ - 0 - ], - "name": "mathematical_expression_cpp", - "targetIndexes": [ - 0 - ] - } - ], - "targets": [ - { - "directoryIndex": 0, - "id": "mathematical_expression_cpp::@6890427a1f51a3e7e1df", - "jsonFile": "target-mathematical_expression_cpp-Debug-f2bd96e5196b7fa9fd1d.json", - "name": "mathematical_expression_cpp", - "projectIndex": 0 - } - ] - } - ], - "kind": "codemodel", - "paths": { - "build": "D:/MyGithub/mathematical-expression-cpp/cmake-build-debug", - "source": "D:/MyGithub/mathematical-expression-cpp" - }, - "version": { - "major": 2, - "minor": 4 - } -} diff --git a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-6d84c0b554fbbd6d0972.json b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-6d84c0b554fbbd6d0972.json new file mode 100644 index 0000000..ee0d151 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-6d84c0b554fbbd6d0972.json @@ -0,0 +1,60 @@ +{ + "configurations" : + [ + { + "directories" : + [ + { + "build" : ".", + "jsonFile" : "directory-.-Debug-d0094a50bb2071803777.json", + "minimumCMakeVersion" : + { + "string" : "3.23" + }, + "projectIndex" : 0, + "source" : ".", + "targetIndexes" : + [ + 0 + ] + } + ], + "name" : "Debug", + "projects" : + [ + { + "directoryIndexes" : + [ + 0 + ], + "name" : "mathematical_expression_cpp", + "targetIndexes" : + [ + 0 + ] + } + ], + "targets" : + [ + { + "directoryIndex" : 0, + "id" : "mathematical_expression_cpp::@6890427a1f51a3e7e1df", + "jsonFile" : "target-mathematical_expression_cpp-Debug-fb69ca80b85b0034f92d.json", + "name" : "mathematical_expression_cpp", + "projectIndex" : 0 + } + ] + } + ], + "kind" : "codemodel", + "paths" : + { + "build" : "D:/MyGithub/mathematical-expression-cpp/cmake-build-debug", + "source" : "D:/MyGithub/mathematical-expression-cpp" + }, + "version" : + { + "major" : 2, + "minor" : 4 + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/index-2023-06-19T12-26-41-0775.json b/cmake-build-debug/.cmake/api/v1/reply/index-2023-06-19T12-26-41-0775.json deleted file mode 100644 index 478f99d..0000000 --- a/cmake-build-debug/.cmake/api/v1/reply/index-2023-06-19T12-26-41-0775.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "cmake": { - "generator": { - "multiConfig": false, - "name": "Ninja" - }, - "paths": { - "cmake": "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/cmake.exe", - "cpack": "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/cpack.exe", - "ctest": "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/ctest.exe", - "root": "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/share/cmake-3.23" - }, - "version": { - "isDirty": false, - "major": 3, - "minor": 23, - "patch": 2, - "string": "3.23.2", - "suffix": "" - } - }, - "objects": [ - { - "jsonFile": "codemodel-v2-2af2a14072092449dfe3.json", - "kind": "codemodel", - "version": { - "major": 2, - "minor": 4 - } - }, - { - "jsonFile": "cache-v2-1d7b546c8d7a024b45b5.json", - "kind": "cache", - "version": { - "major": 2, - "minor": 0 - } - }, - { - "jsonFile": "cmakeFiles-v1-da69f8608d3d4472b2e3.json", - "kind": "cmakeFiles", - "version": { - "major": 1, - "minor": 0 - } - }, - { - "jsonFile": "toolchains-v1-f5cc35ef704e11574efa.json", - "kind": "toolchains", - "version": { - "major": 1, - "minor": 0 - } - } - ], - "reply": { - "cache-v2": { - "jsonFile": "cache-v2-1d7b546c8d7a024b45b5.json", - "kind": "cache", - "version": { - "major": 2, - "minor": 0 - } - }, - "cmakeFiles-v1": { - "jsonFile": "cmakeFiles-v1-da69f8608d3d4472b2e3.json", - "kind": "cmakeFiles", - "version": { - "major": 1, - "minor": 0 - } - }, - "codemodel-v2": { - "jsonFile": "codemodel-v2-2af2a14072092449dfe3.json", - "kind": "codemodel", - "version": { - "major": 2, - "minor": 4 - } - }, - "toolchains-v1": { - "jsonFile": "toolchains-v1-f5cc35ef704e11574efa.json", - "kind": "toolchains", - "version": { - "major": 1, - "minor": 0 - } - } - } -} diff --git a/cmake-build-debug/.cmake/api/v1/reply/index-2023-06-20T07-09-44-0558.json b/cmake-build-debug/.cmake/api/v1/reply/index-2023-06-20T07-09-44-0558.json new file mode 100644 index 0000000..686e05e --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/index-2023-06-20T07-09-44-0558.json @@ -0,0 +1,108 @@ +{ + "cmake" : + { + "generator" : + { + "multiConfig" : false, + "name" : "Ninja" + }, + "paths" : + { + "cmake" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/cmake.exe", + "cpack" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/cpack.exe", + "ctest" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/bin/ctest.exe", + "root" : "D:/liming/CX/Clion/CLion 2022.2.1/bin/cmake/win/share/cmake-3.23" + }, + "version" : + { + "isDirty" : false, + "major" : 3, + "minor" : 23, + "patch" : 2, + "string" : "3.23.2", + "suffix" : "" + } + }, + "objects" : + [ + { + "jsonFile" : "codemodel-v2-6d84c0b554fbbd6d0972.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 4 + } + }, + { + "jsonFile" : "cache-v2-1d7b546c8d7a024b45b5.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "cmakeFiles-v1-da69f8608d3d4472b2e3.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + }, + { + "jsonFile" : "toolchains-v1-f5cc35ef704e11574efa.json", + "kind" : "toolchains", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + ], + "reply" : + { + "cache-v2" : + { + "jsonFile" : "cache-v2-1d7b546c8d7a024b45b5.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + "cmakeFiles-v1" : + { + "jsonFile" : "cmakeFiles-v1-da69f8608d3d4472b2e3.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + }, + "codemodel-v2" : + { + "jsonFile" : "codemodel-v2-6d84c0b554fbbd6d0972.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 4 + } + }, + "toolchains-v1" : + { + "jsonFile" : "toolchains-v1-f5cc35ef704e11574efa.json", + "kind" : "toolchains", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + } +} diff --git a/cmake-build-debug/.cmake/api/v1/reply/target-mathematical_expression_cpp-Debug-f2bd96e5196b7fa9fd1d.json b/cmake-build-debug/.cmake/api/v1/reply/target-mathematical_expression_cpp-Debug-f2bd96e5196b7fa9fd1d.json deleted file mode 100644 index 5fbde55..0000000 --- a/cmake-build-debug/.cmake/api/v1/reply/target-mathematical_expression_cpp-Debug-f2bd96e5196b7fa9fd1d.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "artifacts": [ - { - "path": "libmathematical_expression_cpp.dll" - }, - { - "path": "libmathematical_expression_cpp.dll.a" - }, - { - "path": "libmathematical_expression_cpp.pdb" - } - ], - "backtrace": 1, - "backtraceGraph": { - "commands": [ - "add_library", - "include_directories" - ], - "files": [ - "CMakeLists.txt" - ], - "nodes": [ - { - "file": 0 - }, - { - "command": 0, - "file": 0, - "line": 8, - "parent": 0 - }, - { - "command": 1, - "file": 0, - "line": 7, - "parent": 0 - } - ] - }, - "compileGroups": [ - { - "compileCommandFragments": [ - { - "fragment": "-g" - }, - { - "fragment": "-std=gnu++11" - } - ], - "defines": [ - { - "define": "mathematical_expression_cpp_EXPORTS" - } - ], - "includes": [ - { - "backtrace": 2, - "path": "D:/MyGithub/mathematical-expression-cpp/include" - } - ], - "language": "CXX", - "languageStandard": { - "backtraces": [ - 1 - ], - "standard": "11" - }, - "sourceIndexes": [ - 0, - 4, - 6, - 7, - 9, - 10, - 11, - 14, - 16 - ] - } - ], - "id": "mathematical_expression_cpp::@6890427a1f51a3e7e1df", - "link": { - "commandFragments": [ - { - "fragment": "", - "role": "flags" - }, - { - "fragment": "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32", - "role": "libraries" - } - ], - "language": "CXX" - }, - "name": "mathematical_expression_cpp", - "nameOnDisk": "libmathematical_expression_cpp.dll", - "paths": { - "build": ".", - "source": "." - }, - "sourceGroups": [ - { - "name": "Source Files", - "sourceIndexes": [ - 0, - 4, - 6, - 7, - 9, - 10, - 11, - 14, - 16 - ] - }, - { - "name": "Header Files", - "sourceIndexes": [ - 1, - 2, - 3, - 5, - 8, - 12, - 13, - 15, - 17, - 18 - ] - } - ], - "sources": [ - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/core/container/CalculationResults.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "path": "include/CalculationResults.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "path": "include/Utils.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "path": "include/ConstantRegion.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/core/manager/CalculationManagement.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "path": "include/CalculationManagement.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/core/calculation/PrefixExpressionOperation.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/exceptional/MExceptional.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "path": "include/MExceptional.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/utils/NumberUtils.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/utils/StrUtils.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/dataContainer/MEStack.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "path": "include/MEStack.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "path": "include/PrefixExpressionOperation.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/core/calculation/NumberCalculation.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "path": "include/NumberCalculation.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "compileGroupIndex": 0, - "path": "src/core/calculation/Calculation.cpp", - "sourceGroupIndex": 0 - }, - { - "backtrace": 1, - "path": "include/Calculation.h", - "sourceGroupIndex": 1 - }, - { - "backtrace": 1, - "path": "include/mathematical_expression.h", - "sourceGroupIndex": 1 - } - ], - "type": "SHARED_LIBRARY" -} diff --git a/cmake-build-debug/.cmake/api/v1/reply/target-mathematical_expression_cpp-Debug-fb69ca80b85b0034f92d.json b/cmake-build-debug/.cmake/api/v1/reply/target-mathematical_expression_cpp-Debug-fb69ca80b85b0034f92d.json new file mode 100644 index 0000000..45fdc65 --- /dev/null +++ b/cmake-build-debug/.cmake/api/v1/reply/target-mathematical_expression_cpp-Debug-fb69ca80b85b0034f92d.json @@ -0,0 +1,272 @@ +{ + "artifacts" : + [ + { + "path" : "libmathematical_expression_cpp.dll" + }, + { + "path" : "libmathematical_expression_cpp.dll.a" + }, + { + "path" : "libmathematical_expression_cpp.pdb" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_library", + "include_directories" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 8, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 7, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + }, + { + "fragment" : "-std=gnu++11" + } + ], + "defines" : + [ + { + "define" : "mathematical_expression_cpp_EXPORTS" + } + ], + "includes" : + [ + { + "backtrace" : 2, + "path" : "D:/MyGithub/mathematical-expression-cpp/include" + } + ], + "language" : "CXX", + "languageStandard" : + { + "backtraces" : + [ + 1 + ], + "standard" : "11" + }, + "sourceIndexes" : + [ + 0, + 4, + 6, + 7, + 9, + 10, + 11, + 14, + 16, + 19 + ] + } + ], + "id" : "mathematical_expression_cpp::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "", + "role" : "flags" + }, + { + "fragment" : "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32", + "role" : "libraries" + } + ], + "language" : "CXX" + }, + "name" : "mathematical_expression_cpp", + "nameOnDisk" : "libmathematical_expression_cpp.dll", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 4, + 6, + 7, + 9, + 10, + 11, + 14, + 16, + 19 + ] + }, + { + "name" : "Header Files", + "sourceIndexes" : + [ + 1, + 2, + 3, + 5, + 8, + 12, + 13, + 15, + 17, + 18, + 20 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/core/container/CalculationResults.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "path" : "include/CalculationResults.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "path" : "include/Utils.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "path" : "include/ConstantRegion.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/core/manager/CalculationManagement.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "path" : "include/CalculationManagement.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/core/calculation/PrefixExpressionOperation.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/exceptional/MExceptional.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "path" : "include/MExceptional.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/utils/NumberUtils.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/utils/StrUtils.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/dataContainer/MEStack.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "path" : "include/MEStack.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "path" : "include/PrefixExpressionOperation.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/core/calculation/NumberCalculation.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "path" : "include/NumberCalculation.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/core/calculation/Calculation.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "path" : "include/Calculation.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "path" : "include/mathematical_expression.h", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "src/core/calculation/BracketsCalculation.cpp", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "path" : "include/BracketsCalculation.h", + "sourceGroupIndex" : 1 + } + ], + "type" : "SHARED_LIBRARY" +} diff --git a/cmake-build-debug/.ninja_deps b/cmake-build-debug/.ninja_deps index 0becb13..4f21552 100644 Binary files a/cmake-build-debug/.ninja_deps and b/cmake-build-debug/.ninja_deps differ diff --git a/cmake-build-debug/.ninja_log b/cmake-build-debug/.ninja_log index be33c67..4ca57ea 100644 --- a/cmake-build-debug/.ninja_log +++ b/cmake-build-debug/.ninja_log @@ -1,75 +1,14 @@ # ninja log v5 -3551 5267 7089283309840256 libmathematical_expression_cpp.dll d1b9feb7337dec20 -24 644 7089283263705662 CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj deebcf13c45868e2 -3551 5267 7089283309840256 libmathematical_expression_cpp.dll.a d1b9feb7337dec20 -12 3551 7089283292689033 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj 770700c4540eed4a -0 16 0 clean 34793d755d65561a -421 728 7089283264566009 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj f1c5978a3b4dd467 -16 420 7089283261461048 CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj ffab181a5b901ce8 -4 607 7089283263343994 CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj 57aa060842d0a313 -156 613 7089283263414115 CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj 6749be0fdab379e1 -21 453 7089283261794971 CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj 3c6fa15b8eb9ea39 -0 109 7088808017511405 build.ninja d0b2cba23a09252f -9 86 7089283258122365 CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj 1b9abf3e3487eb9a -87 156 7089283258836888 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj 47f603a81c0f0c68 -0 17 0 clean 34793d755d65561a -23 130 7089286713506014 CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj 1b9abf3e3487eb9a -16 583 7089286717743697 CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj ffab181a5b901ce8 -39 675 7089286718804094 CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj 3c6fa15b8eb9ea39 -583 743 7089286719295092 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj 47f603a81c0f0c68 -131 748 7089286719605321 CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj 6749be0fdab379e1 -7 808 7089286720270133 CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj 57aa060842d0a313 -51 881 7089286721001982 CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj deebcf13c45868e2 -675 1080 7089286723018415 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj f1c5978a3b4dd467 -31 3811 7089286750171436 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj 770700c4540eed4a -3811 5524 7089286767360765 libmathematical_expression_cpp.dll d1b9feb7337dec20 -3811 5524 7089286767360765 libmathematical_expression_cpp.dll.a d1b9feb7337dec20 -0 16 0 clean 34793d755d65561a -14 81 7089287586062117 CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj 1b9abf3e3487eb9a -82 142 7089287586673156 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj 47f603a81c0f0c68 -10 542 7089287590435015 CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj ffab181a5b901ce8 -27 641 7089287591510113 CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj 6749be0fdab379e1 -5 674 7089287591824447 CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj 57aa060842d0a313 -142 701 7089287592144199 CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj 3c6fa15b8eb9ea39 -23 739 7089287592630416 CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj deebcf13c45868e2 -543 900 7089287594212593 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj f1c5978a3b4dd467 -18 3733 7089287622486455 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj 770700c4540eed4a -3734 5343 7089287638625086 libmathematical_expression_cpp.dll d1b9feb7337dec20 -3734 5343 7089287638625086 libmathematical_expression_cpp.dll.a d1b9feb7337dec20 -0 16 0 clean 34793d755d65561a -26 104 7089289275985131 CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj 1b9abf3e3487eb9a -45 114 7089289276095829 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj 47f603a81c0f0c68 -34 509 7089289279894575 CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj ffab181a5b901ce8 -105 629 7089289281134849 CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj 6749be0fdab379e1 -115 639 7089289281329948 CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj 3c6fa15b8eb9ea39 -10 730 7089289282230250 CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj 57aa060842d0a313 -40 786 7089289282815923 CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj deebcf13c45868e2 -509 923 7089289284178818 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj f1c5978a3b4dd467 -19 3511 7089289309977141 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj 770700c4540eed4a -3511 5157 7089289326419478 libmathematical_expression_cpp.dll d1b9feb7337dec20 -3511 5157 7089289326419478 libmathematical_expression_cpp.dll.a d1b9feb7337dec20 -0 14 0 clean 34793d755d65561a -16 89 7089290124899332 CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj 1b9abf3e3487eb9a -20 95 7089290124929322 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj 47f603a81c0f0c68 -12 588 7089290129427208 CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj ffab181a5b901ce8 -25 603 7089290129927632 CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj 3c6fa15b8eb9ea39 -95 683 7089290130742543 CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj 6749be0fdab379e1 -5 765 7089290131663951 CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj 57aa060842d0a313 -90 833 7089290132346132 CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj deebcf13c45868e2 -588 926 7089290133266545 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj f1c5978a3b4dd467 -9 3534 7089290159221224 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj 770700c4540eed4a -3534 5175 7089290175709545 libmathematical_expression_cpp.dll d1b9feb7337dec20 -3534 5175 7089290175709545 libmathematical_expression_cpp.dll.a d1b9feb7337dec20 -1 13 0 clean 34793d755d65561a -23 114 7089299041512995 CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj 1b9abf3e3487eb9a -28 119 7089299041547686 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj 47f603a81c0f0c68 -13 495 7089299045281272 CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj ffab181a5b901ce8 -120 631 7089299046698779 CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj 3c6fa15b8eb9ea39 -115 652 7089299046905954 CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj 6749be0fdab379e1 -7 672 7089299047095601 CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj 57aa060842d0a313 -33 837 7089299048717140 CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj deebcf13c45868e2 -495 928 7089299049663397 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj f1c5978a3b4dd467 -17 3611 7089299076337510 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj 770700c4540eed4a 3611 5307 7089299093397978 libmathematical_expression_cpp.dll d1b9feb7337dec20 3611 5307 7089299093397978 libmathematical_expression_cpp.dll.a d1b9feb7337dec20 -0 15 0 clean 34793d755d65561a +33 837 7089299048717140 CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj deebcf13c45868e2 +0 15 0 clean d89ebacede60e116 +17 3611 7089299076337510 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj 770700c4540eed4a +495 928 7089299049663397 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj f1c5978a3b4dd467 +7 672 7089299047095601 CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj 57aa060842d0a313 +13 495 7089299045281272 CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj ffab181a5b901ce8 +115 652 7089299046905954 CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj 6749be0fdab379e1 +120 631 7089299046698779 CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj 3c6fa15b8eb9ea39 +0 227 7089481845205276 build.ninja d0b2cba23a09252f +23 114 7089299041512995 CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj 1b9abf3e3487eb9a +28 119 7089299041547686 CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj 47f603a81c0f0c68 diff --git a/cmake-build-debug/Testing/Temporary/LastTest.log b/cmake-build-debug/Testing/Temporary/LastTest.log index 3a58db5..8c915e2 100644 --- a/cmake-build-debug/Testing/Temporary/LastTest.log +++ b/cmake-build-debug/Testing/Temporary/LastTest.log @@ -1,3 +1,3 @@ -Start testing: Jun 20 10:11 ?D1迆㊣那℅?那㊣?? +Start testing: Jun 20 15:09 ?D1迆㊣那℅?那㊣?? ---------------------------------------------------------- -End testing: Jun 20 10:11 ?D1迆㊣那℅?那㊣?? +End testing: Jun 20 15:09 ?D1迆㊣那℅?那㊣?? diff --git a/cmake-build-debug/build.ninja b/cmake-build-debug/build.ninja index c7d90a4..2f756c4 100644 --- a/cmake-build-debug/build.ninja +++ b/cmake-build-debug/build.ninja @@ -121,6 +121,14 @@ build CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculatio OBJECT_DIR = CMakeFiles\mathematical_expression_cpp.dir OBJECT_FILE_DIR = CMakeFiles\mathematical_expression_cpp.dir\src\core\calculation +build CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/BracketsCalculation.cpp.obj: CXX_COMPILER__mathematical_expression_cpp_Debug D$:/MyGithub/mathematical-expression-cpp/src/core/calculation/BracketsCalculation.cpp || cmake_object_order_depends_target_mathematical_expression_cpp + DEFINES = -Dmathematical_expression_cpp_EXPORTS + DEP_FILE = CMakeFiles\mathematical_expression_cpp.dir\src\core\calculation\BracketsCalculation.cpp.obj.d + FLAGS = -g -std=gnu++11 + INCLUDES = -ID:/MyGithub/mathematical-expression-cpp/include + OBJECT_DIR = CMakeFiles\mathematical_expression_cpp.dir + OBJECT_FILE_DIR = CMakeFiles\mathematical_expression_cpp.dir\src\core\calculation + # ============================================================================= # Link build statements for SHARED_LIBRARY target mathematical_expression_cpp @@ -129,7 +137,7 @@ build CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculatio ############################################# # Link the shared library libmathematical_expression_cpp.dll -build libmathematical_expression_cpp.dll libmathematical_expression_cpp.dll.a: CXX_SHARED_LIBRARY_LINKER__mathematical_expression_cpp_Debug CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj +build libmathematical_expression_cpp.dll libmathematical_expression_cpp.dll.a: CXX_SHARED_LIBRARY_LINKER__mathematical_expression_cpp_Debug CMakeFiles/mathematical_expression_cpp.dir/src/core/container/CalculationResults.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/manager/CalculationManagement.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/PrefixExpressionOperation.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/exceptional/MExceptional.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/utils/NumberUtils.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/utils/StrUtils.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/dataContainer/MEStack.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/NumberCalculation.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/Calculation.cpp.obj CMakeFiles/mathematical_expression_cpp.dir/src/core/calculation/BracketsCalculation.cpp.obj LANGUAGE_COMPILE_FLAGS = -g LINK_LIBRARIES = -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 OBJECT_DIR = CMakeFiles\mathematical_expression_cpp.dir diff --git a/cmake-build-debug/cmake_install.cmake b/cmake-build-debug/cmake_install.cmake index be7f7d4..680abc5 100644 --- a/cmake-build-debug/cmake_install.cmake +++ b/cmake-build-debug/cmake_install.cmake @@ -1,49 +1,49 @@ # Install script for directory: D:/MyGithub/mathematical-expression-cpp # Set the install prefix -if (NOT DEFINED CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/mathematical_expression_cpp") -endif () +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/mathematical_expression_cpp") +endif() string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") # Set the install configuration name. -if (NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) - if (BUILD_TYPE) - string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" - CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") - else () - set(CMAKE_INSTALL_CONFIG_NAME "Debug") - endif () - message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") -endif () +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() # Set the component getting installed. -if (NOT CMAKE_INSTALL_COMPONENT) - if (COMPONENT) - message(STATUS "Install component: \"${COMPONENT}\"") - set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") - else () - set(CMAKE_INSTALL_COMPONENT) - endif () -endif () +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() # Is this installation the result of a crosscompile? -if (NOT DEFINED CMAKE_CROSSCOMPILING) - set(CMAKE_CROSSCOMPILING "FALSE") -endif () +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() # Set default install directory permissions. -if (NOT DEFINED CMAKE_OBJDUMP) - set(CMAKE_OBJDUMP "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/objdump.exe") -endif () +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "D:/liming/CX/Clion/CLion 2022.2.1/bin/mingw/bin/objdump.exe") +endif() -if (CMAKE_INSTALL_COMPONENT) - set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") -else () - set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") -endif () +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT - "${CMAKE_INSTALL_MANIFEST_FILES}") + "${CMAKE_INSTALL_MANIFEST_FILES}") file(WRITE "D:/MyGithub/mathematical-expression-cpp/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" - "${CMAKE_INSTALL_MANIFEST_CONTENT}") + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/include/BracketsCalculation.h b/include/BracketsCalculation.h new file mode 100644 index 0000000..f511bf6 --- /dev/null +++ b/include/BracketsCalculation.h @@ -0,0 +1,39 @@ +// +// Created by Liming on 2023/6/20. +// + +#ifndef MATHEMATICAL_EXPRESSION_CPP_BRACKETSCALCULATION_H +#define MATHEMATICAL_EXPRESSION_CPP_BRACKETSCALCULATION_H + +#include +#include "PrefixExpressionOperation.h" + +namespace ME { + + static const std::regex ALL_INVISIBLE_CHARACTERS_PATTERN = std::regex("\\s+"); + + /** + * 砍瑁圾蝞瘜霈∠銝銝芸砍霈∠蝏隞嗥嗥掩嚗嗡葉霈∠瑚摰唳臭銝芣質情嚗蝑敺摰 + *

+ * The bracket parsing algorithm calculates the parent class of the calculation component of a formula, in which the specific implementation of the calculation is an abstract, waiting to be implemented + * + * @author zhao + */ + class BracketsCalculation : public PrefixExpressionOperation { + + public: + string formatStr(std::string string) override; + + /** + * 霈∠銝銝芸蒂銝支葵雿 銝銝芣雿蝚衣霈∠砍蝏 + * + * @param BinaryFormula 砍 靘憒 1 + 2 + * @return 霈∠蝏啣 + */ + static double calculation2(std::string Formula); + + }; +} + + +#endif //MATHEMATICAL_EXPRESSION_CPP_BRACKETSCALCULATION_H diff --git a/src/core/calculation/BracketsCalculation.cpp b/src/core/calculation/BracketsCalculation.cpp new file mode 100644 index 0000000..60dedb0 --- /dev/null +++ b/src/core/calculation/BracketsCalculation.cpp @@ -0,0 +1,43 @@ +// +// Created by Liming on 2023/6/20. +// + +#include "BracketsCalculation.h" +#include "regex" +#include "ConstantRegion.h" +#include "Utils.h" +#include "MExceptional.h" + +namespace ME { + string BracketsCalculation::formatStr(std::string string) { + return std::regex_replace(string, ME::ALL_INVISIBLE_CHARACTERS_PATTERN, NO_CHAR); + } + + double BracketsCalculation::calculation2(std::string Formula) { + std::string a; + std::string b; + bool isOk = false; + char Operator = 0; + for (const auto &c: Formula) { + if (!isOk) { + if (StrUtils::IsAnOperator(c)) { + Operator = c; + isOk = true; + } else { + b += c; + } + } else { + a += c; + } + } + if (Operator != 0) { + return NumberUtils::calculation( + Operator, StrUtils::stringToDouble(a), StrUtils::stringToDouble(b) + ); + } else { + throw ME::AbnormalOperation("函砍澆霂荔芾圾嚗霂瑟冽交函澆佗\n" + + "The format of your formula is wrong, and it was not parsed successfully. Please check your format!\n" + + "error format => " + Formula); + } + } +}