diff --git a/CMakeFiles/3.13.5/CMakeCCompiler.cmake b/CMakeFiles/3.13.5/CMakeCCompiler.cmake new file mode 100644 index 0000000..052f224 --- /dev/null +++ b/CMakeFiles/3.13.5/CMakeCCompiler.cmake @@ -0,0 +1,73 @@ +set(CMAKE_C_COMPILER "/usr/bin/gcc") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "GNU") +set(CMAKE_C_COMPILER_VERSION "4.8.5") +set(CMAKE_C_COMPILER_VERSION_INTERNAL "") +set(CMAKE_C_COMPILER_WRAPPER "") +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "99") +set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") +set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") +set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") +set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") + +set(CMAKE_C_PLATFORM_ID "Linux") +set(CMAKE_C_SIMULATE_ID "") +set(CMAKE_C_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_COMPILER_IS_GNUCC 1) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "8") +set(CMAKE_C_COMPILER_ABI "ELF") +set(CMAKE_C_LIBRARY_ARCHITECTURE "") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "") +endif() + +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-redhat-linux/4.8.5;/usr/lib64;/lib64;/usr/lib") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/CMakeFiles/3.13.5/CMakeCXXCompiler.cmake b/CMakeFiles/3.13.5/CMakeCXXCompiler.cmake new file mode 100644 index 0000000..0899f56 --- /dev/null +++ b/CMakeFiles/3.13.5/CMakeCXXCompiler.cmake @@ -0,0 +1,76 @@ +set(CMAKE_CXX_COMPILER "/opt/rh/devtoolset-3/root/usr/bin/g++") +set(CMAKE_CXX_COMPILER_ARG1 "") +set(CMAKE_CXX_COMPILER_ID "GNU") +set(CMAKE_CXX_COMPILER_VERSION "4.9.2") +set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") +set(CMAKE_CXX_COMPILER_WRAPPER "") +set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "11") +set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_return_type_deduction") +set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") +set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") +set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_return_type_deduction") +set(CMAKE_CXX17_COMPILE_FEATURES "") +set(CMAKE_CXX20_COMPILE_FEATURES "") + +set(CMAKE_CXX_PLATFORM_ID "Linux") +set(CMAKE_CXX_SIMULATE_ID "") +set(CMAKE_CXX_SIMULATE_VERSION "") + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_CXX_COMPILER_AR "/opt/rh/devtoolset-3/root/usr/bin/gcc-ar") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_CXX_COMPILER_RANLIB "/opt/rh/devtoolset-3/root/usr/bin/gcc-ranlib") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_COMPILER_IS_GNUCXX 1) +set(CMAKE_CXX_COMPILER_LOADED 1) +set(CMAKE_CXX_COMPILER_WORKS TRUE) +set(CMAKE_CXX_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_CXX_COMPILER_ID_RUN 1) +set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;mm;CPP) +set(CMAKE_CXX_LINKER_PREFERENCE 30) +set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) + +# Save compiler ABI information. +set(CMAKE_CXX_SIZEOF_DATA_PTR "8") +set(CMAKE_CXX_COMPILER_ABI "ELF") +set(CMAKE_CXX_LIBRARY_ARCHITECTURE "") + +if(CMAKE_CXX_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_CXX_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") +endif() + +if(CMAKE_CXX_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "") +endif() + +set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc") +set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2;/opt/rh/devtoolset-3/root/usr/lib64;/lib64;/usr/lib64;/opt/rh/devtoolset-3/root/usr/lib") +set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/CMakeFiles/3.13.5/CMakeDetermineCompilerABI_C.bin b/CMakeFiles/3.13.5/CMakeDetermineCompilerABI_C.bin new file mode 100755 index 0000000..2af9a35 Binary files /dev/null and b/CMakeFiles/3.13.5/CMakeDetermineCompilerABI_C.bin differ diff --git a/CMakeFiles/3.13.5/CMakeDetermineCompilerABI_CXX.bin b/CMakeFiles/3.13.5/CMakeDetermineCompilerABI_CXX.bin new file mode 100755 index 0000000..3201a3d Binary files /dev/null and b/CMakeFiles/3.13.5/CMakeDetermineCompilerABI_CXX.bin differ diff --git a/CMakeFiles/3.13.5/CMakeSystem.cmake b/CMakeFiles/3.13.5/CMakeSystem.cmake new file mode 100644 index 0000000..cbcb8ff --- /dev/null +++ b/CMakeFiles/3.13.5/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Linux-3.10.0-957.el7.x86_64") +set(CMAKE_HOST_SYSTEM_NAME "Linux") +set(CMAKE_HOST_SYSTEM_VERSION "3.10.0-957.el7.x86_64") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + + + +set(CMAKE_SYSTEM "Linux-3.10.0-957.el7.x86_64") +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_VERSION "3.10.0-957.el7.x86_64") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(CMAKE_CROSSCOMPILING "FALSE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/CMakeFiles/3.13.5/CompilerIdC/CMakeCCompilerId.c b/CMakeFiles/3.13.5/CompilerIdC/CMakeCCompilerId.c new file mode 100644 index 0000000..bfc6ebb --- /dev/null +++ b/CMakeFiles/3.13.5/CompilerIdC/CMakeCCompilerId.c @@ -0,0 +1,623 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif +#if defined(__CLASSIC_C__) +/* cv-qualifiers did not exist in K&R C */ +# define const +# define volatile +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) +# endif + + +#elif defined(__ibmxl__) || (defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800) +# define COMPILER_ID "XL" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) +# endif + + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 +# define COMPILER_ID "VisualAge" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) +# endif + + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__BCC__) +# define COMPILER_ID "Bruce" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__ARMCC_VERSION) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) +# define COMPILER_ID "SDCC" +# if defined(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) +# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) +# else + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) +# endif + +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) +# define COMPILER_ID "MIPSpro" +# if defined(_SGI_COMPILER_VERSION) + /* _SGI_COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) +# else + /* _COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__sgi) +# define COMPILER_ID "MIPSpro" + +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) +# define PLATFORM_ID "IRIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if !defined(__STDC__) +# if (defined(_MSC_VER) && !defined(__clang__)) \ + || (defined(__ibmxl__) || defined(__IBMC__)) +# define C_DIALECT "90" +# else +# define C_DIALECT +# endif +#elif __STDC_VERSION__ >= 201000L +# define C_DIALECT "11" +#elif __STDC_VERSION__ >= 199901L +# define C_DIALECT "99" +#else +# define C_DIALECT "90" +#endif +const char* info_language_dialect_default = + "INFO" ":" "dialect_default[" C_DIALECT "]"; + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +# if defined(__CLASSIC_C__) +int main(argc, argv) int argc; char *argv[]; +# else +int main(int argc, char* argv[]) +# endif +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} +#endif diff --git a/CMakeFiles/3.13.5/CompilerIdC/a.out b/CMakeFiles/3.13.5/CompilerIdC/a.out new file mode 100755 index 0000000..815c769 Binary files /dev/null and b/CMakeFiles/3.13.5/CompilerIdC/a.out differ diff --git a/CMakeFiles/3.13.5/CompilerIdCXX/CMakeCXXCompilerId.cpp b/CMakeFiles/3.13.5/CompilerIdCXX/CMakeCXXCompilerId.cpp new file mode 100644 index 0000000..b728b63 --- /dev/null +++ b/CMakeFiles/3.13.5/CompilerIdCXX/CMakeCXXCompilerId.cpp @@ -0,0 +1,602 @@ +/* This source file must have a .cpp extension so that all C++ compilers + recognize the extension without flags. Borland does not know .cxx for + example. */ +#ifndef __cplusplus +# error "A C compiler has been selected for C++." +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__COMO__) +# define COMPILER_ID "Comeau" + /* __COMO_VERSION__ = VRR */ +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) + +#elif defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_CC) +# define COMPILER_ID "SunPro" +# if __SUNPRO_CC >= 0x5100 + /* __SUNPRO_CC = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# endif + +#elif defined(__HP_aCC) +# define COMPILER_ID "HP" + /* __HP_aCC = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) + +#elif defined(__DECCXX) +# define COMPILER_ID "Compaq" + /* __DECCXX_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) + +#elif defined(__IBMCPP__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) +# endif + + +#elif defined(__ibmxl__) || (defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800) +# define COMPILER_ID "XL" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) +# endif + + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 +# define COMPILER_ID "VisualAge" +# if defined(__ibmxl__) +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) +# else + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) +# endif + + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) || defined(__GNUG__) +# define COMPILER_ID "GNU" +# if defined(__GNUC__) +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# else +# define COMPILER_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__ARMCC_VERSION) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) +# define COMPILER_ID "MIPSpro" +# if defined(_SGI_COMPILER_VERSION) + /* _SGI_COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) +# else + /* _COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__sgi) +# define COMPILER_ID "MIPSpro" + +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) +# define PLATFORM_ID "IRIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if defined(_MSC_VER) && defined(_MSVC_LANG) +#define CXX_STD _MSVC_LANG +#else +#define CXX_STD __cplusplus +#endif + +const char* info_language_dialect_default = "INFO" ":" "dialect_default[" +#if CXX_STD > 201703L + "20" +#elif CXX_STD >= 201703L + "17" +#elif CXX_STD >= 201402L + "14" +#elif CXX_STD >= 201103L + "11" +#else + "98" +#endif +"]"; + +/*--------------------------------------------------------------------------*/ + +int main(int argc, char* argv[]) +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} diff --git a/CMakeFiles/3.13.5/CompilerIdCXX/a.out b/CMakeFiles/3.13.5/CompilerIdCXX/a.out new file mode 100755 index 0000000..37dc7e6 Binary files /dev/null and b/CMakeFiles/3.13.5/CompilerIdCXX/a.out differ diff --git a/CMakeFiles/CMakeDirectoryInformation.cmake b/CMakeFiles/CMakeDirectoryInformation.cmake new file mode 100644 index 0000000..326fe68 --- /dev/null +++ b/CMakeFiles/CMakeDirectoryInformation.cmake @@ -0,0 +1,16 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +# Relative path conversion top directories. +set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/root/huobi") +set(CMAKE_RELATIVE_PATH_TOP_BINARY "/root/huobi") + +# Force unix paths in dependencies. +set(CMAKE_FORCE_UNIX_PATHS 1) + + +# The C and CXX include file regular expressions for this directory. +set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") +set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") +set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) +set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) diff --git a/CMakeFiles/CMakeError.log b/CMakeFiles/CMakeError.log new file mode 100644 index 0000000..d15d12e --- /dev/null +++ b/CMakeFiles/CMakeError.log @@ -0,0 +1,72 @@ +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: +Build flags: -Wall;-std=c++11 +Id flags: + +The output was: +No such file or directory + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: +Build flags: -Wall;-std=c++11 +Id flags: -c + +The output was: +No such file or directory + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: +Build flags: -Wall;-std=c++11 +Id flags: --c++ + +The output was: +No such file or directory + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: +Build flags: -Wall;-std=c++11 +Id flags: --ec++ + +The output was: +No such file or directory + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: +Build flags: +Id flags: + +The output was: +No such file or directory + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: +Build flags: +Id flags: -c + +The output was: +No such file or directory + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: +Build flags: +Id flags: --c++ + +The output was: +No such file or directory + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. +Compiler: +Build flags: +Id flags: --ec++ + +The output was: +No such file or directory + + diff --git a/CMakeFiles/CMakeOutput.log b/CMakeFiles/CMakeOutput.log new file mode 100644 index 0000000..82051ca --- /dev/null +++ b/CMakeFiles/CMakeOutput.log @@ -0,0 +1,521 @@ +The system is: Linux - 3.10.0-957.el7.x86_64 - x86_64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: /usr/bin/gcc +Build flags: -Wall;-std=c99 +Id flags: + +The output was: +0 + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" + +The C compiler identification is GNU, found in "/root/huobi/CMakeFiles/3.13.5/CompilerIdC/a.out" + +Determining if the C compiler works passed with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_58947/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_58947.dir/build.make CMakeFiles/cmTC_58947.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_58947.dir/testCCompiler.c.o +/usr/bin/gcc -Wall -std=c99 -o CMakeFiles/cmTC_58947.dir/testCCompiler.c.o -c /root/huobi/CMakeFiles/CMakeTmp/testCCompiler.c +Linking C executable cmTC_58947 +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_58947.dir/link.txt --verbose=1 +/usr/bin/gcc -Wall -std=c99 -rdynamic CMakeFiles/cmTC_58947.dir/testCCompiler.c.o -o cmTC_58947 +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_afee3/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_afee3.dir/build.make CMakeFiles/cmTC_afee3.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o +/usr/bin/gcc -Wall -std=c99 -o CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake3/Modules/CMakeCCompilerABI.c +Linking C executable cmTC_afee3 +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_afee3.dir/link.txt --verbose=1 +/usr/bin/gcc -Wall -std=c99 -v -rdynamic CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o -o cmTC_afee3 +Using built-in specs. +COLLECT_GCC=/usr/bin/gcc +COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper +Target: x86_64-redhat-linux +Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux +Thread model: posix +gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) +COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-Wall' '-std=c99' '-v' '-rdynamic' '-o' 'cmTC_afee3' '-mtune=generic' '-march=x86-64' + /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_afee3 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /root/huobi/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command:"/usr/bin/gmake" "cmTC_afee3/fast"] + ignore line: [/usr/bin/gmake -f CMakeFiles/cmTC_afee3.dir/build.make CMakeFiles/cmTC_afee3.dir/build] + ignore line: [gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp'] + ignore line: [Building C object CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o] + ignore line: [/usr/bin/gcc -Wall -std=c99 -o CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake3/Modules/CMakeCCompilerABI.c] + ignore line: [Linking C executable cmTC_afee3] + ignore line: [/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_afee3.dir/link.txt --verbose=1] + ignore line: [/usr/bin/gcc -Wall -std=c99 -v -rdynamic CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o -o cmTC_afee3 ] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/gcc] + ignore line: [COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper] + ignore line: [Target: x86_64-redhat-linux] + ignore line: [Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux] + ignore line: [Thread model: posix] + ignore line: [gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ] + ignore line: [COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.8.5/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-Wall' '-std=c99' '-v' '-rdynamic' '-o' 'cmTC_afee3' '-mtune=generic' '-march=x86-64'] + link line: [ /usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2 --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_afee3 /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o] + arg [/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/collect2] ==> ignore + arg [--build-id] ==> ignore + arg [--no-add-needed] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [-m] ==> ignore + arg [elf_x86_64] ==> ignore + arg [-export-dynamic] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore + arg [-o] ==> ignore + arg [cmTC_afee3] ==> ignore + arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crt1.o] ==> ignore + arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o] ==> ignore + arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbegin.o] ==> ignore + arg [-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5] + arg [-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64] + arg [-L/lib/../lib64] ==> dir [/lib/../lib64] + arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64] + arg [-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..] ==> dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..] + arg [CMakeFiles/cmTC_afee3.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [-lgcc] ==> lib [gcc] + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--no-as-needed] ==> ignore + arg [-lc] ==> lib [c] + arg [-lgcc] ==> lib [gcc] + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--no-as-needed] ==> ignore + arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtend.o] ==> ignore + arg [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o] ==> ignore + collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5] ==> [/usr/lib/gcc/x86_64-redhat-linux/4.8.5] + collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64] ==> [/usr/lib64] + collapse library dir [/lib/../lib64] ==> [/lib64] + collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64] + collapse library dir [/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../..] ==> [/usr/lib] + implicit libs: [gcc;gcc_s;c;gcc;gcc_s] + implicit dirs: [/usr/lib/gcc/x86_64-redhat-linux/4.8.5;/usr/lib64;/lib64;/usr/lib] + implicit fwks: [] + + + + +Detecting C [-std=c11] compiler features compiled with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_809f8/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_809f8.dir/build.make CMakeFiles/cmTC_809f8.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_809f8.dir/feature_tests.c.o +/usr/bin/gcc -Wall -std=c99 -std=c11 -o CMakeFiles/cmTC_809f8.dir/feature_tests.c.o -c /root/huobi/CMakeFiles/feature_tests.c +Linking C executable cmTC_809f8 +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_809f8.dir/link.txt --verbose=1 +/usr/bin/gcc -Wall -std=c99 -rdynamic CMakeFiles/cmTC_809f8.dir/feature_tests.c.o -o cmTC_809f8 +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:1c_restrict + Feature record: C_FEATURE:1c_static_assert + Feature record: C_FEATURE:1c_variadic_macros + + +Detecting C [-std=c99] compiler features compiled with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_6df6c/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_6df6c.dir/build.make CMakeFiles/cmTC_6df6c.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_6df6c.dir/feature_tests.c.o +/usr/bin/gcc -Wall -std=c99 -std=c99 -o CMakeFiles/cmTC_6df6c.dir/feature_tests.c.o -c /root/huobi/CMakeFiles/feature_tests.c +Linking C executable cmTC_6df6c +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_6df6c.dir/link.txt --verbose=1 +/usr/bin/gcc -Wall -std=c99 -rdynamic CMakeFiles/cmTC_6df6c.dir/feature_tests.c.o -o cmTC_6df6c +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:1c_restrict + Feature record: C_FEATURE:0c_static_assert + Feature record: C_FEATURE:1c_variadic_macros + + +Detecting C [-std=c90] compiler features compiled with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_a30cd/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_a30cd.dir/build.make CMakeFiles/cmTC_a30cd.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building C object CMakeFiles/cmTC_a30cd.dir/feature_tests.c.o +/usr/bin/gcc -Wall -std=c99 -std=c90 -o CMakeFiles/cmTC_a30cd.dir/feature_tests.c.o -c /root/huobi/CMakeFiles/feature_tests.c +Linking C executable cmTC_a30cd +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_a30cd.dir/link.txt --verbose=1 +/usr/bin/gcc -Wall -std=c99 -rdynamic CMakeFiles/cmTC_a30cd.dir/feature_tests.c.o -o cmTC_a30cd +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:0c_restrict + Feature record: C_FEATURE:0c_static_assert + Feature record: C_FEATURE:0c_variadic_macros +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. +Compiler: /opt/rh/devtoolset-3/root/usr/bin/g++ +Build flags: -Wall;-std=c++11 +Id flags: + +The output was: +0 + + +Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" + +The CXX compiler identification is GNU, found in "/root/huobi/CMakeFiles/3.13.5/CompilerIdCXX/a.out" + +Determining if the CXX compiler works passed with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_ee9a6/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_ee9a6.dir/build.make CMakeFiles/cmTC_ee9a6.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_ee9a6.dir/testCXXCompiler.cxx.o +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -o CMakeFiles/cmTC_ee9a6.dir/testCXXCompiler.cxx.o -c /root/huobi/CMakeFiles/CMakeTmp/testCXXCompiler.cxx +Linking CXX executable cmTC_ee9a6 +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_ee9a6.dir/link.txt --verbose=1 +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -rdynamic CMakeFiles/cmTC_ee9a6.dir/testCXXCompiler.cxx.o -o cmTC_ee9a6 +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + +Detecting CXX compiler ABI info compiled with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_43f5a/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_43f5a.dir/build.make CMakeFiles/cmTC_43f5a.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -o CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp +Linking CXX executable cmTC_43f5a +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_43f5a.dir/link.txt --verbose=1 +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -v -rdynamic CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_43f5a +Using built-in specs. +COLLECT_GCC=/opt/rh/devtoolset-3/root/usr/bin/g++ +COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper +Target: x86_64-redhat-linux +Configured with: ../configure --prefix=/opt/rh/devtoolset-3/root/usr --mandir=/opt/rh/devtoolset-3/root/usr/share/man --infodir=/opt/rh/devtoolset-3/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux +Thread model: posix +gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC) +COMPILER_PATH=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/:/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/:/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/:/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/:/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/ +LIBRARY_PATH=/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/:/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-Wall' '-std=c++11' '-v' '-rdynamic' '-o' 'cmTC_43f5a' '-shared-libgcc' '-mtune=generic' '-march=x86-64' + /opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/collect2 -plugin /opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/liblto_plugin.so -plugin-opt=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper -plugin-opt=-fresolution=/tmp/ccO7amBr.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_43f5a /lib/../lib64/crt1.o /lib/../lib64/crti.o /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/crtbegin.o -L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2 -L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../.. CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/crtend.o /lib/../lib64/crtn.o +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + +Parsed CXX implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /root/huobi/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command:"/usr/bin/gmake" "cmTC_43f5a/fast"] + ignore line: [/usr/bin/gmake -f CMakeFiles/cmTC_43f5a.dir/build.make CMakeFiles/cmTC_43f5a.dir/build] + ignore line: [gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp'] + ignore line: [Building CXX object CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o] + ignore line: [/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -o CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake3/Modules/CMakeCXXCompilerABI.cpp] + ignore line: [Linking CXX executable cmTC_43f5a] + ignore line: [/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_43f5a.dir/link.txt --verbose=1] + ignore line: [/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -v -rdynamic CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_43f5a ] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/opt/rh/devtoolset-3/root/usr/bin/g++] + ignore line: [COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper] + ignore line: [Target: x86_64-redhat-linux] + ignore line: [Configured with: ../configure --prefix=/opt/rh/devtoolset-3/root/usr --mandir=/opt/rh/devtoolset-3/root/usr/share/man --infodir=/opt/rh/devtoolset-3/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux] + ignore line: [Thread model: posix] + ignore line: [gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC) ] + ignore line: [COMPILER_PATH=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/:/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/:/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/:/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/:/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/] + ignore line: [LIBRARY_PATH=/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/:/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-Wall' '-std=c++11' '-v' '-rdynamic' '-o' 'cmTC_43f5a' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] + link line: [ /opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/collect2 -plugin /opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/liblto_plugin.so -plugin-opt=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper -plugin-opt=-fresolution=/tmp/ccO7amBr.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o cmTC_43f5a /lib/../lib64/crt1.o /lib/../lib64/crti.o /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/crtbegin.o -L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2 -L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../.. CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/crtend.o /lib/../lib64/crtn.o] + arg [/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/collect2] ==> ignore + arg [-plugin] ==> ignore + arg [/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/liblto_plugin.so] ==> ignore + arg [-plugin-opt=/opt/rh/devtoolset-3/root/usr/libexec/gcc/x86_64-redhat-linux/4.9.2/lto-wrapper] ==> ignore + arg [-plugin-opt=-fresolution=/tmp/ccO7amBr.res] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [--build-id] ==> ignore + arg [--no-add-needed] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [-m] ==> ignore + arg [elf_x86_64] ==> ignore + arg [-export-dynamic] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore + arg [-o] ==> ignore + arg [cmTC_43f5a] ==> ignore + arg [/lib/../lib64/crt1.o] ==> ignore + arg [/lib/../lib64/crti.o] ==> ignore + arg [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/crtbegin.o] ==> ignore + arg [-L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2] ==> dir [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2] + arg [-L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64] ==> dir [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64] + arg [-L/lib/../lib64] ==> dir [/lib/../lib64] + arg [-L/usr/lib/../lib64] ==> dir [/usr/lib/../lib64] + arg [-L/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../..] ==> dir [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../..] + arg [CMakeFiles/cmTC_43f5a.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore + arg [-lstdc++] ==> lib [stdc++] + arg [-lm] ==> lib [m] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [-lc] ==> lib [c] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/crtend.o] ==> ignore + arg [/lib/../lib64/crtn.o] ==> ignore + collapse library dir [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2] ==> [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2] + collapse library dir [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../../../lib64] ==> [/opt/rh/devtoolset-3/root/usr/lib64] + collapse library dir [/lib/../lib64] ==> [/lib64] + collapse library dir [/usr/lib/../lib64] ==> [/usr/lib64] + collapse library dir [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2/../../..] ==> [/opt/rh/devtoolset-3/root/usr/lib] + implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc] + implicit dirs: [/opt/rh/devtoolset-3/root/usr/lib/gcc/x86_64-redhat-linux/4.9.2;/opt/rh/devtoolset-3/root/usr/lib64;/lib64;/usr/lib64;/opt/rh/devtoolset-3/root/usr/lib] + implicit fwks: [] + + + + +Detecting CXX [-std=c++14] compiler features compiled with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_5980c/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_5980c.dir/build.make CMakeFiles/cmTC_5980c.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_5980c.dir/feature_tests.cxx.o +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -std=c++14 -o CMakeFiles/cmTC_5980c.dir/feature_tests.cxx.o -c /root/huobi/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_5980c +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_5980c.dir/link.txt --verbose=1 +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -rdynamic CMakeFiles/cmTC_5980c.dir/feature_tests.cxx.o -o cmTC_5980c +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + + Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers + Feature record: CXX_FEATURE:1cxx_alias_templates + Feature record: CXX_FEATURE:1cxx_alignas + Feature record: CXX_FEATURE:1cxx_alignof + Feature record: CXX_FEATURE:1cxx_attributes + Feature record: CXX_FEATURE:1cxx_attribute_deprecated + Feature record: CXX_FEATURE:1cxx_auto_type + Feature record: CXX_FEATURE:1cxx_binary_literals + Feature record: CXX_FEATURE:1cxx_constexpr + Feature record: CXX_FEATURE:1cxx_contextual_conversions + Feature record: CXX_FEATURE:1cxx_decltype + Feature record: CXX_FEATURE:1cxx_decltype_auto + Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types + Feature record: CXX_FEATURE:1cxx_default_function_template_args + Feature record: CXX_FEATURE:1cxx_defaulted_functions + Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers + Feature record: CXX_FEATURE:1cxx_delegating_constructors + Feature record: CXX_FEATURE:1cxx_deleted_functions + Feature record: CXX_FEATURE:1cxx_digit_separators + Feature record: CXX_FEATURE:1cxx_enum_forward_declarations + Feature record: CXX_FEATURE:1cxx_explicit_conversions + Feature record: CXX_FEATURE:1cxx_extended_friend_declarations + Feature record: CXX_FEATURE:1cxx_extern_templates + Feature record: CXX_FEATURE:1cxx_final + Feature record: CXX_FEATURE:1cxx_func_identifier + Feature record: CXX_FEATURE:1cxx_generalized_initializers + Feature record: CXX_FEATURE:1cxx_generic_lambdas + Feature record: CXX_FEATURE:1cxx_inheriting_constructors + Feature record: CXX_FEATURE:1cxx_inline_namespaces + Feature record: CXX_FEATURE:1cxx_lambdas + Feature record: CXX_FEATURE:1cxx_lambda_init_captures + Feature record: CXX_FEATURE:1cxx_local_type_template_args + Feature record: CXX_FEATURE:1cxx_long_long_type + Feature record: CXX_FEATURE:1cxx_noexcept + Feature record: CXX_FEATURE:1cxx_nonstatic_member_init + Feature record: CXX_FEATURE:1cxx_nullptr + Feature record: CXX_FEATURE:1cxx_override + Feature record: CXX_FEATURE:1cxx_range_for + Feature record: CXX_FEATURE:1cxx_raw_string_literals + Feature record: CXX_FEATURE:1cxx_reference_qualified_functions + Feature record: CXX_FEATURE:0cxx_relaxed_constexpr + Feature record: CXX_FEATURE:1cxx_return_type_deduction + Feature record: CXX_FEATURE:1cxx_right_angle_brackets + Feature record: CXX_FEATURE:1cxx_rvalue_references + Feature record: CXX_FEATURE:1cxx_sizeof_member + Feature record: CXX_FEATURE:1cxx_static_assert + Feature record: CXX_FEATURE:1cxx_strong_enums + Feature record: CXX_FEATURE:1cxx_template_template_parameters + Feature record: CXX_FEATURE:1cxx_thread_local + Feature record: CXX_FEATURE:1cxx_trailing_return_types + Feature record: CXX_FEATURE:1cxx_unicode_literals + Feature record: CXX_FEATURE:1cxx_uniform_initialization + Feature record: CXX_FEATURE:1cxx_unrestricted_unions + Feature record: CXX_FEATURE:1cxx_user_literals + Feature record: CXX_FEATURE:0cxx_variable_templates + Feature record: CXX_FEATURE:1cxx_variadic_macros + Feature record: CXX_FEATURE:1cxx_variadic_templates + + +Detecting CXX [-std=c++11] compiler features compiled with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_fb6f6/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_fb6f6.dir/build.make CMakeFiles/cmTC_fb6f6.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_fb6f6.dir/feature_tests.cxx.o +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -std=c++11 -o CMakeFiles/cmTC_fb6f6.dir/feature_tests.cxx.o -c /root/huobi/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_fb6f6 +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_fb6f6.dir/link.txt --verbose=1 +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -rdynamic CMakeFiles/cmTC_fb6f6.dir/feature_tests.cxx.o -o cmTC_fb6f6 +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + + Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers + Feature record: CXX_FEATURE:1cxx_alias_templates + Feature record: CXX_FEATURE:1cxx_alignas + Feature record: CXX_FEATURE:1cxx_alignof + Feature record: CXX_FEATURE:1cxx_attributes + Feature record: CXX_FEATURE:0cxx_attribute_deprecated + Feature record: CXX_FEATURE:1cxx_auto_type + Feature record: CXX_FEATURE:0cxx_binary_literals + Feature record: CXX_FEATURE:1cxx_constexpr + Feature record: CXX_FEATURE:0cxx_contextual_conversions + Feature record: CXX_FEATURE:1cxx_decltype + Feature record: CXX_FEATURE:0cxx_decltype_auto + Feature record: CXX_FEATURE:1cxx_decltype_incomplete_return_types + Feature record: CXX_FEATURE:1cxx_default_function_template_args + Feature record: CXX_FEATURE:1cxx_defaulted_functions + Feature record: CXX_FEATURE:1cxx_defaulted_move_initializers + Feature record: CXX_FEATURE:1cxx_delegating_constructors + Feature record: CXX_FEATURE:1cxx_deleted_functions + Feature record: CXX_FEATURE:0cxx_digit_separators + Feature record: CXX_FEATURE:1cxx_enum_forward_declarations + Feature record: CXX_FEATURE:1cxx_explicit_conversions + Feature record: CXX_FEATURE:1cxx_extended_friend_declarations + Feature record: CXX_FEATURE:1cxx_extern_templates + Feature record: CXX_FEATURE:1cxx_final + Feature record: CXX_FEATURE:1cxx_func_identifier + Feature record: CXX_FEATURE:1cxx_generalized_initializers + Feature record: CXX_FEATURE:0cxx_generic_lambdas + Feature record: CXX_FEATURE:1cxx_inheriting_constructors + Feature record: CXX_FEATURE:1cxx_inline_namespaces + Feature record: CXX_FEATURE:1cxx_lambdas + Feature record: CXX_FEATURE:0cxx_lambda_init_captures + Feature record: CXX_FEATURE:1cxx_local_type_template_args + Feature record: CXX_FEATURE:1cxx_long_long_type + Feature record: CXX_FEATURE:1cxx_noexcept + Feature record: CXX_FEATURE:1cxx_nonstatic_member_init + Feature record: CXX_FEATURE:1cxx_nullptr + Feature record: CXX_FEATURE:1cxx_override + Feature record: CXX_FEATURE:1cxx_range_for + Feature record: CXX_FEATURE:1cxx_raw_string_literals + Feature record: CXX_FEATURE:1cxx_reference_qualified_functions + Feature record: CXX_FEATURE:0cxx_relaxed_constexpr + Feature record: CXX_FEATURE:0cxx_return_type_deduction + Feature record: CXX_FEATURE:1cxx_right_angle_brackets + Feature record: CXX_FEATURE:1cxx_rvalue_references + Feature record: CXX_FEATURE:1cxx_sizeof_member + Feature record: CXX_FEATURE:1cxx_static_assert + Feature record: CXX_FEATURE:1cxx_strong_enums + Feature record: CXX_FEATURE:1cxx_template_template_parameters + Feature record: CXX_FEATURE:1cxx_thread_local + Feature record: CXX_FEATURE:1cxx_trailing_return_types + Feature record: CXX_FEATURE:1cxx_unicode_literals + Feature record: CXX_FEATURE:1cxx_uniform_initialization + Feature record: CXX_FEATURE:1cxx_unrestricted_unions + Feature record: CXX_FEATURE:1cxx_user_literals + Feature record: CXX_FEATURE:0cxx_variable_templates + Feature record: CXX_FEATURE:1cxx_variadic_macros + Feature record: CXX_FEATURE:1cxx_variadic_templates + + +Detecting CXX [-std=c++98] compiler features compiled with the following output: +Change Dir: /root/huobi/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/gmake" "cmTC_9b617/fast" +/usr/bin/gmake -f CMakeFiles/cmTC_9b617.dir/build.make CMakeFiles/cmTC_9b617.dir/build +gmake[1]: Entering directory `/root/huobi/CMakeFiles/CMakeTmp' +Building CXX object CMakeFiles/cmTC_9b617.dir/feature_tests.cxx.o +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -std=c++98 -o CMakeFiles/cmTC_9b617.dir/feature_tests.cxx.o -c /root/huobi/CMakeFiles/feature_tests.cxx +Linking CXX executable cmTC_9b617 +/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_9b617.dir/link.txt --verbose=1 +/opt/rh/devtoolset-3/root/usr/bin/g++ -Wall -std=c++11 -rdynamic CMakeFiles/cmTC_9b617.dir/feature_tests.cxx.o -o cmTC_9b617 +gmake[1]: Leaving directory `/root/huobi/CMakeFiles/CMakeTmp' + + + Feature record: CXX_FEATURE:0cxx_aggregate_default_initializers + Feature record: CXX_FEATURE:0cxx_alias_templates + Feature record: CXX_FEATURE:0cxx_alignas + Feature record: CXX_FEATURE:0cxx_alignof + Feature record: CXX_FEATURE:0cxx_attributes + Feature record: CXX_FEATURE:0cxx_attribute_deprecated + Feature record: CXX_FEATURE:0cxx_auto_type + Feature record: CXX_FEATURE:0cxx_binary_literals + Feature record: CXX_FEATURE:0cxx_constexpr + Feature record: CXX_FEATURE:0cxx_contextual_conversions + Feature record: CXX_FEATURE:0cxx_decltype + Feature record: CXX_FEATURE:0cxx_decltype_auto + Feature record: CXX_FEATURE:0cxx_decltype_incomplete_return_types + Feature record: CXX_FEATURE:0cxx_default_function_template_args + Feature record: CXX_FEATURE:0cxx_defaulted_functions + Feature record: CXX_FEATURE:0cxx_defaulted_move_initializers + Feature record: CXX_FEATURE:0cxx_delegating_constructors + Feature record: CXX_FEATURE:0cxx_deleted_functions + Feature record: CXX_FEATURE:0cxx_digit_separators + Feature record: CXX_FEATURE:0cxx_enum_forward_declarations + Feature record: CXX_FEATURE:0cxx_explicit_conversions + Feature record: CXX_FEATURE:0cxx_extended_friend_declarations + Feature record: CXX_FEATURE:0cxx_extern_templates + Feature record: CXX_FEATURE:0cxx_final + Feature record: CXX_FEATURE:0cxx_func_identifier + Feature record: CXX_FEATURE:0cxx_generalized_initializers + Feature record: CXX_FEATURE:0cxx_generic_lambdas + Feature record: CXX_FEATURE:0cxx_inheriting_constructors + Feature record: CXX_FEATURE:0cxx_inline_namespaces + Feature record: CXX_FEATURE:0cxx_lambdas + Feature record: CXX_FEATURE:0cxx_lambda_init_captures + Feature record: CXX_FEATURE:0cxx_local_type_template_args + Feature record: CXX_FEATURE:0cxx_long_long_type + Feature record: CXX_FEATURE:0cxx_noexcept + Feature record: CXX_FEATURE:0cxx_nonstatic_member_init + Feature record: CXX_FEATURE:0cxx_nullptr + Feature record: CXX_FEATURE:0cxx_override + Feature record: CXX_FEATURE:0cxx_range_for + Feature record: CXX_FEATURE:0cxx_raw_string_literals + Feature record: CXX_FEATURE:0cxx_reference_qualified_functions + Feature record: CXX_FEATURE:0cxx_relaxed_constexpr + Feature record: CXX_FEATURE:0cxx_return_type_deduction + Feature record: CXX_FEATURE:0cxx_right_angle_brackets + Feature record: CXX_FEATURE:0cxx_rvalue_references + Feature record: CXX_FEATURE:0cxx_sizeof_member + Feature record: CXX_FEATURE:0cxx_static_assert + Feature record: CXX_FEATURE:0cxx_strong_enums + Feature record: CXX_FEATURE:1cxx_template_template_parameters + Feature record: CXX_FEATURE:0cxx_thread_local + Feature record: CXX_FEATURE:0cxx_trailing_return_types + Feature record: CXX_FEATURE:0cxx_unicode_literals + Feature record: CXX_FEATURE:0cxx_uniform_initialization + Feature record: CXX_FEATURE:0cxx_unrestricted_unions + Feature record: CXX_FEATURE:0cxx_user_literals + Feature record: CXX_FEATURE:0cxx_variable_templates + Feature record: CXX_FEATURE:0cxx_variadic_macros + Feature record: CXX_FEATURE:0cxx_variadic_templates diff --git a/CMakeFiles/HuobiClient.dir/DependInfo.cmake b/CMakeFiles/HuobiClient.dir/DependInfo.cmake new file mode 100644 index 0000000..6b5aeee --- /dev/null +++ b/CMakeFiles/HuobiClient.dir/DependInfo.cmake @@ -0,0 +1,45 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/root/huobi/src/AccountsInfoMap.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o" + "/root/huobi/src/ClientCreator.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o" + "/root/huobi/src/Enums.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/Enums.cpp.o" + "/root/huobi/src/HuobiApiException.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o" + "/root/huobi/src/InputChecker.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o" + "/root/huobi/src/Logger.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/Logger.cpp.o" + "/root/huobi/src/RestApiImpl.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o" + "/root/huobi/src/SubscriptionClientImpl.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o" + "/root/huobi/src/SyncClientImpl.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o" + "/root/huobi/src/Utils/JsonDocument.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o" + "/root/huobi/src/Utils/JsonWrapper.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o" + "/root/huobi/src/Utils/base64.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o" + "/root/huobi/src/Utils/gzip.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o" + "/root/huobi/src/WebSocketApiImpl.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o" + "/root/huobi/src/WebSocketConnection.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o" + "/root/huobi/src/WebSocketWatchDog.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o" + "/root/huobi/src/WsRequestClientImpl.cpp" "/root/huobi/CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o" + ) +set(CMAKE_CXX_COMPILER_ID "GNU") + +# Preprocessor definitions for this target. +set(CMAKE_TARGET_DEFINITIONS_CXX + "OPENSSL_VERSION_1_0" + ) + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "." + "./include" + "/usr/local/include/decnumber" + "/usr/local/include" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/CMakeFiles/HuobiClient.dir/build.make b/CMakeFiles/HuobiClient.dir/build.make new file mode 100644 index 0000000..61b483c --- /dev/null +++ b/CMakeFiles/HuobiClient.dir/build.make @@ -0,0 +1,339 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake3 + +# The command to remove a file. +RM = /usr/bin/cmake3 -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /root/huobi + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /root/huobi + +# Include any dependencies generated for this target. +include CMakeFiles/HuobiClient.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/HuobiClient.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/HuobiClient.dir/flags.make + +CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o: src/AccountsInfoMap.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o -c /root/huobi/src/AccountsInfoMap.cpp + +CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/AccountsInfoMap.cpp > CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.i + +CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/AccountsInfoMap.cpp -o CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.s + +CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o: src/ClientCreator.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o -c /root/huobi/src/ClientCreator.cpp + +CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/ClientCreator.cpp > CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.i + +CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/ClientCreator.cpp -o CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.s + +CMakeFiles/HuobiClient.dir/src/Enums.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/Enums.cpp.o: src/Enums.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object CMakeFiles/HuobiClient.dir/src/Enums.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/Enums.cpp.o -c /root/huobi/src/Enums.cpp + +CMakeFiles/HuobiClient.dir/src/Enums.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/Enums.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/Enums.cpp > CMakeFiles/HuobiClient.dir/src/Enums.cpp.i + +CMakeFiles/HuobiClient.dir/src/Enums.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/Enums.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/Enums.cpp -o CMakeFiles/HuobiClient.dir/src/Enums.cpp.s + +CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o: src/HuobiApiException.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building CXX object CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o -c /root/huobi/src/HuobiApiException.cpp + +CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/HuobiApiException.cpp > CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.i + +CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/HuobiApiException.cpp -o CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.s + +CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o: src/InputChecker.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building CXX object CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o -c /root/huobi/src/InputChecker.cpp + +CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/InputChecker.cpp > CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.i + +CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/InputChecker.cpp -o CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.s + +CMakeFiles/HuobiClient.dir/src/Logger.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/Logger.cpp.o: src/Logger.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building CXX object CMakeFiles/HuobiClient.dir/src/Logger.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/Logger.cpp.o -c /root/huobi/src/Logger.cpp + +CMakeFiles/HuobiClient.dir/src/Logger.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/Logger.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/Logger.cpp > CMakeFiles/HuobiClient.dir/src/Logger.cpp.i + +CMakeFiles/HuobiClient.dir/src/Logger.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/Logger.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/Logger.cpp -o CMakeFiles/HuobiClient.dir/src/Logger.cpp.s + +CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o: src/RestApiImpl.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Building CXX object CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o -c /root/huobi/src/RestApiImpl.cpp + +CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/RestApiImpl.cpp > CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.i + +CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/RestApiImpl.cpp -o CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.s + +CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o: src/SubscriptionClientImpl.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_8) "Building CXX object CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o -c /root/huobi/src/SubscriptionClientImpl.cpp + +CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/SubscriptionClientImpl.cpp > CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.i + +CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/SubscriptionClientImpl.cpp -o CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.s + +CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o: src/SyncClientImpl.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_9) "Building CXX object CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o -c /root/huobi/src/SyncClientImpl.cpp + +CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/SyncClientImpl.cpp > CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.i + +CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/SyncClientImpl.cpp -o CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.s + +CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o: src/WebSocketApiImpl.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_10) "Building CXX object CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o -c /root/huobi/src/WebSocketApiImpl.cpp + +CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/WebSocketApiImpl.cpp > CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.i + +CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/WebSocketApiImpl.cpp -o CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.s + +CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o: src/WebSocketConnection.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_11) "Building CXX object CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o -c /root/huobi/src/WebSocketConnection.cpp + +CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/WebSocketConnection.cpp > CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.i + +CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/WebSocketConnection.cpp -o CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.s + +CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o: src/WebSocketWatchDog.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_12) "Building CXX object CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o -c /root/huobi/src/WebSocketWatchDog.cpp + +CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/WebSocketWatchDog.cpp > CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.i + +CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/WebSocketWatchDog.cpp -o CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.s + +CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o: src/WsRequestClientImpl.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_13) "Building CXX object CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o -c /root/huobi/src/WsRequestClientImpl.cpp + +CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/WsRequestClientImpl.cpp > CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.i + +CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/WsRequestClientImpl.cpp -o CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.s + +CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o: src/Utils/JsonDocument.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_14) "Building CXX object CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o -c /root/huobi/src/Utils/JsonDocument.cpp + +CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/Utils/JsonDocument.cpp > CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.i + +CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/Utils/JsonDocument.cpp -o CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.s + +CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o: src/Utils/JsonWrapper.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_15) "Building CXX object CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o -c /root/huobi/src/Utils/JsonWrapper.cpp + +CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/Utils/JsonWrapper.cpp > CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.i + +CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/Utils/JsonWrapper.cpp -o CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.s + +CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o: src/Utils/base64.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_16) "Building CXX object CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o -c /root/huobi/src/Utils/base64.cpp + +CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/Utils/base64.cpp > CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.i + +CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/Utils/base64.cpp -o CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.s + +CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o: CMakeFiles/HuobiClient.dir/flags.make +CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o: src/Utils/gzip.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_17) "Building CXX object CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o -c /root/huobi/src/Utils/gzip.cpp + +CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.i" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/huobi/src/Utils/gzip.cpp > CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.i + +CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.s" + /opt/rh/devtoolset-3/root/usr/bin/g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/huobi/src/Utils/gzip.cpp -o CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.s + +# Object files for target HuobiClient +HuobiClient_OBJECTS = \ +"CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/Enums.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/Logger.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o" \ +"CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o" + +# External object files for target HuobiClient +HuobiClient_EXTERNAL_OBJECTS = + +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/Enums.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/Logger.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o +libHuobiClient.a: CMakeFiles/HuobiClient.dir/build.make +libHuobiClient.a: CMakeFiles/HuobiClient.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/root/huobi/CMakeFiles --progress-num=$(CMAKE_PROGRESS_18) "Linking CXX static library libHuobiClient.a" + $(CMAKE_COMMAND) -P CMakeFiles/HuobiClient.dir/cmake_clean_target.cmake + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/HuobiClient.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/HuobiClient.dir/build: libHuobiClient.a + +.PHONY : CMakeFiles/HuobiClient.dir/build + +CMakeFiles/HuobiClient.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/HuobiClient.dir/cmake_clean.cmake +.PHONY : CMakeFiles/HuobiClient.dir/clean + +CMakeFiles/HuobiClient.dir/depend: + cd /root/huobi && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /root/huobi /root/huobi /root/huobi /root/huobi /root/huobi/CMakeFiles/HuobiClient.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/HuobiClient.dir/depend + diff --git a/CMakeFiles/HuobiClient.dir/cmake_clean.cmake b/CMakeFiles/HuobiClient.dir/cmake_clean.cmake new file mode 100644 index 0000000..441fc1f --- /dev/null +++ b/CMakeFiles/HuobiClient.dir/cmake_clean.cmake @@ -0,0 +1,26 @@ +file(REMOVE_RECURSE + "CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o" + "CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o" + "CMakeFiles/HuobiClient.dir/src/Enums.cpp.o" + "CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o" + "CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o" + "CMakeFiles/HuobiClient.dir/src/Logger.cpp.o" + "CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o" + "CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o" + "CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o" + "CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o" + "CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o" + "CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o" + "CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o" + "CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o" + "CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o" + "CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o" + "CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o" + "libHuobiClient.pdb" + "libHuobiClient.a" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/HuobiClient.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/CMakeFiles/HuobiClient.dir/cmake_clean_target.cmake b/CMakeFiles/HuobiClient.dir/cmake_clean_target.cmake new file mode 100644 index 0000000..d727ece --- /dev/null +++ b/CMakeFiles/HuobiClient.dir/cmake_clean_target.cmake @@ -0,0 +1,3 @@ +file(REMOVE_RECURSE + "libHuobiClient.a" +) diff --git a/CMakeFiles/HuobiClient.dir/depend.make b/CMakeFiles/HuobiClient.dir/depend.make new file mode 100644 index 0000000..e24e6fa --- /dev/null +++ b/CMakeFiles/HuobiClient.dir/depend.make @@ -0,0 +1,2 @@ +# Empty dependencies file for HuobiClient. +# This may be replaced when dependencies are built. diff --git a/CMakeFiles/HuobiClient.dir/flags.make b/CMakeFiles/HuobiClient.dir/flags.make new file mode 100644 index 0000000..5c9e9d9 --- /dev/null +++ b/CMakeFiles/HuobiClient.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +# compile CXX with /opt/rh/devtoolset-3/root/usr/bin/g++ +CXX_FLAGS = -Wall -std=c++11 -O3 -DNDEBUG -std=c++11 + +CXX_DEFINES = -DOPENSSL_VERSION_1_0 + +CXX_INCLUDES = -I/root/huobi -I/root/huobi/./include -I/usr/local/include/decnumber -I/usr/local/include + diff --git a/CMakeFiles/HuobiClient.dir/link.txt b/CMakeFiles/HuobiClient.dir/link.txt new file mode 100644 index 0000000..93c0c6a --- /dev/null +++ b/CMakeFiles/HuobiClient.dir/link.txt @@ -0,0 +1,2 @@ +/usr/bin/ar qc libHuobiClient.a CMakeFiles/HuobiClient.dir/src/AccountsInfoMap.cpp.o CMakeFiles/HuobiClient.dir/src/ClientCreator.cpp.o CMakeFiles/HuobiClient.dir/src/Enums.cpp.o CMakeFiles/HuobiClient.dir/src/HuobiApiException.cpp.o CMakeFiles/HuobiClient.dir/src/InputChecker.cpp.o CMakeFiles/HuobiClient.dir/src/Logger.cpp.o CMakeFiles/HuobiClient.dir/src/RestApiImpl.cpp.o CMakeFiles/HuobiClient.dir/src/SubscriptionClientImpl.cpp.o CMakeFiles/HuobiClient.dir/src/SyncClientImpl.cpp.o CMakeFiles/HuobiClient.dir/src/WebSocketApiImpl.cpp.o CMakeFiles/HuobiClient.dir/src/WebSocketConnection.cpp.o CMakeFiles/HuobiClient.dir/src/WebSocketWatchDog.cpp.o CMakeFiles/HuobiClient.dir/src/WsRequestClientImpl.cpp.o CMakeFiles/HuobiClient.dir/src/Utils/JsonDocument.cpp.o CMakeFiles/HuobiClient.dir/src/Utils/JsonWrapper.cpp.o CMakeFiles/HuobiClient.dir/src/Utils/base64.cpp.o CMakeFiles/HuobiClient.dir/src/Utils/gzip.cpp.o +/usr/bin/ranlib libHuobiClient.a diff --git a/CMakeFiles/HuobiClient.dir/progress.make b/CMakeFiles/HuobiClient.dir/progress.make new file mode 100644 index 0000000..4f47425 --- /dev/null +++ b/CMakeFiles/HuobiClient.dir/progress.make @@ -0,0 +1,19 @@ +CMAKE_PROGRESS_1 = 1 +CMAKE_PROGRESS_2 = 2 +CMAKE_PROGRESS_3 = 3 +CMAKE_PROGRESS_4 = 4 +CMAKE_PROGRESS_5 = 5 +CMAKE_PROGRESS_6 = 6 +CMAKE_PROGRESS_7 = 7 +CMAKE_PROGRESS_8 = 8 +CMAKE_PROGRESS_9 = 9 +CMAKE_PROGRESS_10 = 10 +CMAKE_PROGRESS_11 = 11 +CMAKE_PROGRESS_12 = 12 +CMAKE_PROGRESS_13 = 13 +CMAKE_PROGRESS_14 = 14 +CMAKE_PROGRESS_15 = 15 +CMAKE_PROGRESS_16 = 16 +CMAKE_PROGRESS_17 = 17 +CMAKE_PROGRESS_18 = 18 + diff --git a/CMakeFiles/Makefile.cmake b/CMakeFiles/Makefile.cmake new file mode 100644 index 0000000..4718498 --- /dev/null +++ b/CMakeFiles/Makefile.cmake @@ -0,0 +1,49 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +# The generator used is: +set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") + +# The top level Makefile was generated from the following files: +set(CMAKE_MAKEFILE_DEPENDS + "CMakeCache.txt" + "CMakeFiles/3.13.5/CMakeCCompiler.cmake" + "CMakeFiles/3.13.5/CMakeCXXCompiler.cmake" + "CMakeFiles/3.13.5/CMakeSystem.cmake" + "CMakeLists.txt" + "config.h.in" + "/usr/share/cmake3/Modules/CMakeCInformation.cmake" + "/usr/share/cmake3/Modules/CMakeCXXInformation.cmake" + "/usr/share/cmake3/Modules/CMakeCommonLanguageInclude.cmake" + "/usr/share/cmake3/Modules/CMakeGenericSystem.cmake" + "/usr/share/cmake3/Modules/CMakeInitializeConfigs.cmake" + "/usr/share/cmake3/Modules/CMakeLanguageInformation.cmake" + "/usr/share/cmake3/Modules/CMakeSystemSpecificInformation.cmake" + "/usr/share/cmake3/Modules/CMakeSystemSpecificInitialize.cmake" + "/usr/share/cmake3/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + "/usr/share/cmake3/Modules/Compiler/GNU-C.cmake" + "/usr/share/cmake3/Modules/Compiler/GNU-CXX.cmake" + "/usr/share/cmake3/Modules/Compiler/GNU.cmake" + "/usr/share/cmake3/Modules/Platform/Linux-GNU-C.cmake" + "/usr/share/cmake3/Modules/Platform/Linux-GNU-CXX.cmake" + "/usr/share/cmake3/Modules/Platform/Linux-GNU.cmake" + "/usr/share/cmake3/Modules/Platform/Linux.cmake" + "/usr/share/cmake3/Modules/Platform/UnixPaths.cmake" + ) + +# The corresponding makefile is: +set(CMAKE_MAKEFILE_OUTPUTS + "Makefile" + "CMakeFiles/cmake.check_cache" + ) + +# Byproducts of CMake generate step: +set(CMAKE_MAKEFILE_PRODUCTS + "config.h" + "CMakeFiles/CMakeDirectoryInformation.cmake" + ) + +# Dependency information for all targets: +set(CMAKE_DEPEND_INFO_FILES + "CMakeFiles/HuobiClient.dir/DependInfo.cmake" + ) diff --git a/CMakeFiles/Makefile2 b/CMakeFiles/Makefile2 new file mode 100644 index 0000000..fca8e17 --- /dev/null +++ b/CMakeFiles/Makefile2 @@ -0,0 +1,113 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +# Default target executed when no arguments are given to make. +default_target: all + +.PHONY : default_target + +# The main recursive all target +all: + +.PHONY : all + +# The main recursive preinstall target +preinstall: + +.PHONY : preinstall + +# The main recursive clean target +clean: + +.PHONY : clean + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake3 + +# The command to remove a file. +RM = /usr/bin/cmake3 -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /root/huobi + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /root/huobi + +#============================================================================= +# Target rules for target CMakeFiles/HuobiClient.dir + +# All Build rule for target. +CMakeFiles/HuobiClient.dir/all: + $(MAKE) -f CMakeFiles/HuobiClient.dir/build.make CMakeFiles/HuobiClient.dir/depend + $(MAKE) -f CMakeFiles/HuobiClient.dir/build.make CMakeFiles/HuobiClient.dir/build + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/root/huobi/CMakeFiles --progress-num=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 "Built target HuobiClient" +.PHONY : CMakeFiles/HuobiClient.dir/all + +# Include target in all. +all: CMakeFiles/HuobiClient.dir/all + +.PHONY : all + +# Build rule for subdir invocation for target. +CMakeFiles/HuobiClient.dir/rule: cmake_check_build_system + $(CMAKE_COMMAND) -E cmake_progress_start /root/huobi/CMakeFiles 18 + $(MAKE) -f CMakeFiles/Makefile2 CMakeFiles/HuobiClient.dir/all + $(CMAKE_COMMAND) -E cmake_progress_start /root/huobi/CMakeFiles 0 +.PHONY : CMakeFiles/HuobiClient.dir/rule + +# Convenience name for target. +HuobiClient: CMakeFiles/HuobiClient.dir/rule + +.PHONY : HuobiClient + +# clean rule for target. +CMakeFiles/HuobiClient.dir/clean: + $(MAKE) -f CMakeFiles/HuobiClient.dir/build.make CMakeFiles/HuobiClient.dir/clean +.PHONY : CMakeFiles/HuobiClient.dir/clean + +# clean rule for target. +clean: CMakeFiles/HuobiClient.dir/clean + +.PHONY : clean + +#============================================================================= +# Special targets to cleanup operation of make. + +# Special rule to run CMake to check the build system integrity. +# No rule that depends on this can have commands that come from listfiles +# because they might be regenerated. +cmake_check_build_system: + $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 +.PHONY : cmake_check_build_system + diff --git a/CMakeFiles/TargetDirectories.txt b/CMakeFiles/TargetDirectories.txt new file mode 100644 index 0000000..731a51f --- /dev/null +++ b/CMakeFiles/TargetDirectories.txt @@ -0,0 +1,7 @@ +/root/huobi/CMakeFiles/install/strip.dir +/root/huobi/CMakeFiles/install/local.dir +/root/huobi/CMakeFiles/install.dir +/root/huobi/CMakeFiles/list_install_components.dir +/root/huobi/CMakeFiles/rebuild_cache.dir +/root/huobi/CMakeFiles/edit_cache.dir +/root/huobi/CMakeFiles/HuobiClient.dir diff --git a/CMakeFiles/cmake.check_cache b/CMakeFiles/cmake.check_cache new file mode 100644 index 0000000..3dccd73 --- /dev/null +++ b/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/CMakeFiles/feature_tests.bin b/CMakeFiles/feature_tests.bin new file mode 100755 index 0000000..0d6b7df Binary files /dev/null and b/CMakeFiles/feature_tests.bin differ diff --git a/CMakeFiles/feature_tests.c b/CMakeFiles/feature_tests.c new file mode 100644 index 0000000..83e86dd --- /dev/null +++ b/CMakeFiles/feature_tests.c @@ -0,0 +1,34 @@ + + const char features[] = {"\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 +"1" +#else +"0" +#endif +"c_function_prototypes\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_restrict\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L +"1" +#else +"0" +#endif +"c_static_assert\n" +"C_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_variadic_macros\n" + +}; + +int main(int argc, char** argv) { (void)argv; return features[argc]; } diff --git a/CMakeFiles/feature_tests.cxx b/CMakeFiles/feature_tests.cxx new file mode 100644 index 0000000..b93418c --- /dev/null +++ b/CMakeFiles/feature_tests.cxx @@ -0,0 +1,405 @@ + + const char features[] = {"\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L +"1" +#else +"0" +#endif +"cxx_aggregate_default_initializers\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_alias_templates\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_alignas\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_alignof\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_attributes\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_attribute_deprecated\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_auto_type\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_binary_literals\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_constexpr\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_contextual_conversions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_decltype\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_decltype_auto\n" +"CXX_FEATURE:" +#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_decltype_incomplete_return_types\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_default_function_template_args\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_defaulted_functions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_defaulted_move_initializers\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_delegating_constructors\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_deleted_functions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_digit_separators\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_enum_forward_declarations\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_explicit_conversions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_extended_friend_declarations\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_extern_templates\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_final\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_func_identifier\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_generalized_initializers\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_generic_lambdas\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_inheriting_constructors\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_inline_namespaces\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_lambdas\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_lambda_init_captures\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_local_type_template_args\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_long_long_type\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_noexcept\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_nonstatic_member_init\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_nullptr\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_override\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_range_for\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_raw_string_literals\n" +"CXX_FEATURE:" +#if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_reference_qualified_functions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L +"1" +#else +"0" +#endif +"cxx_relaxed_constexpr\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L +"1" +#else +"0" +#endif +"cxx_return_type_deduction\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_right_angle_brackets\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_rvalue_references\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_sizeof_member\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_static_assert\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_strong_enums\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus +"1" +#else +"0" +#endif +"cxx_template_template_parameters\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_thread_local\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_trailing_return_types\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_unicode_literals\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_uniform_initialization\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_unrestricted_unions\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L +"1" +#else +"0" +#endif +"cxx_user_literals\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L +"1" +#else +"0" +#endif +"cxx_variable_templates\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_variadic_macros\n" +"CXX_FEATURE:" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) +"1" +#else +"0" +#endif +"cxx_variadic_templates\n" + +}; + +int main(int argc, char** argv) { (void)argv; return features[argc]; } diff --git a/CMakeFiles/progress.marks b/CMakeFiles/progress.marks new file mode 100644 index 0000000..3c03207 --- /dev/null +++ b/CMakeFiles/progress.marks @@ -0,0 +1 @@ +18 diff --git a/config.h b/config.h new file mode 100644 index 0000000..a65fb7a --- /dev/null +++ b/config.h @@ -0,0 +1 @@ +#define CURRENT_VERSION 1.0.7 diff --git a/examples/RequestMarketDepthMBPEvent/CMakeLists.txt b/examples/RequestMarketDepthMBPEvent/CMakeLists.txt new file mode 100644 index 0000000..4bc66bb --- /dev/null +++ b/examples/RequestMarketDepthMBPEvent/CMakeLists.txt @@ -0,0 +1,132 @@ +cmake_minimum_required(VERSION 2.8) + +#设置编译器 +IF (CMAKE_COMPILER_TYPE MATCHES "GCC") + SET(CMAKE_C_COMPILER "gcc") + SET(CMAKE_CXX_COMPILER "g++") +ELSEIF (CMAKE_COMPILER_TYPE MATCHES "CLANG") + SET(CMAKE_C_COMPILER "clang") + SET(CMAKE_CXX_COMPILER "clang++") +ENDIF () + +SET(CMAKE_C_FLAGS "-Wall -std=c99") +SET(CMAKE_C_FLAGS_DEBUG "-g") +SET(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG") +SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG") +SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") + +SET(CMAKE_CXX_FLAGS "-Wall -std=c++11") +SET(CMAKE_CXX_FLAGS_DEBUG "-g") +SET(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG") +SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") +SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") + + +#判断操作系统 +IF (WIN32) + MESSAGE(STATUS "Now is windows") +ELSEIF (APPLE) + MESSAGE(STATUS "Now is Apple systens.") +ELSEIF (UNIX) + MESSAGE(STATUS "Now is UNIX-like OS's. Including aPPLE os x and CygWin") +ENDIF () + +if (UNIX AND NOT APPLE) + set(platform x64) + set(LINUX TRUE) +endif () + +if (APPLE) +endif () + + + +if (LINUX) + message(STATUS "当前操作系统: Linux") +endif () + +if (APPLE) + message(STATUS "当前操作系统: MacOS") +endif () + +MESSAGE(STATUS "operation system is ${CMAKE_SYSTEM}") + +PROJECT(RequestMarketDepthMBPEvent) + + +AUX_SOURCE_DIRECTORY(. DIR_SRCS) +ADD_EXECUTABLE(${PROJECT_NAME} ${DIR_SRCS}) + +IF (CMAKE_BUILD_TYPE MATCHES "Release") + SET(CMAKE_BUILD_POSTFIX ${CMAKE_BUILD_TYPE}) +ELSEIF(CMAKE_BUILD_TYPE MATCHES "Debug") + SET(CMAKE_BUILD_POSTFIX ${CMAKE_BUILD_TYPE}) +ELSE() + MESSAGE(FATAL_ERROR "The CMAKE_BUILD_TYPE only supports Release or Debug") +ENDIF() + + +find_library(LIBHUOBICLIENT_PATH HuobiClient) +IF(NOT LIBHUOBICLIENT_PATH) +message(${HUOBI_CLIENT_DIR}/lib/${CMAKE_BUILD_POSTFIX}) +MESSAGE(FATAL_ERROR "HuobiClient not found") +ENDIF(NOT LIBHUOBICLIENT_PATH) +MESSAGE(STATUS ${LIBHUOBICLIENT_PATH} " found") + + +find_library(LIBWEBSOCKET_PATH websockets) +IF(NOT LIBWEBSOCKET_PATH) +MESSAGE(FATAL_ERROR "libwebsockets not found") +ENDIF(NOT LIBWEBSOCKET_PATH) +MESSAGE(STATUS ${LIBWEBSOCKET_PATH} " found") + +find_library(LIBSSL_PATH ssl) +IF(NOT LIBSSL_PATH) +MESSAGE(FATAL_ERROR "libssl not found") +ENDIF(NOT LIBSSL_PATH) +MESSAGE(STATUS ${LIBSSL_PATH} " found") + +find_library(LIBCRYPTO_PATH crypto) +IF(NOT LIBCRYPTO_PATH) +MESSAGE(FATAL_ERROR "libcrypto not found") +ENDIF(NOT LIBCRYPTO_PATH) +MESSAGE(STATUS ${LIBCRYPTO_PATH} " found") + +find_library(LIBCURL_PATH curl) +IF(NOT LIBCURL_PATH) +MESSAGE(FATAL_ERROR "curl not found") +ENDIF(NOT LIBCURL_PATH) +MESSAGE(STATUS ${LIBCURL_PATH} " found") + +find_library(LIBZ_PATH z) +IF(NOT LIBZ_PATH) +MESSAGE(FATAL_ERROR "z not found") +ENDIF(NOT LIBZ_PATH) +MESSAGE(STATUS ${LIBZ_PATH} " found") + +find_library(LIBPTHREAD_PATH pthread) +IF(NOT LIBPTHREAD_PATH) + MESSAGE(FATAL_ERROR "pthread not found") +ENDIF(NOT LIBPTHREAD_PATH) +MESSAGE(STATUS ${LIBPTHREAD_PATH} " found") + +find_library(LIBDECNUMBER_PATH decnumber) +IF(NOT LIBDECNUMBER_PATH) +MESSAGE(FATAL_ERROR "decnumber not found") +ENDIF(NOT LIBDECNUMBER_PATH) +MESSAGE(STATUS ${LIBDECNUMBER_PATH} " found") + +FIND_PATH( + LIBDECNUMBER_INCLUDE_DIR + decNumber.h + /usr/include/decnumber/ + /usr/local/include/decnumber/ +) +include_directories(${LIBDECNUMBER_INCLUDE_DIR}) +include_directories(/usr/local/include) + +add_definitions(-std=c++11) + +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIBHUOBICLIENT_PATH} ${LIBDECNUMBER_PATH} ${LIBSSL_PATH} ${LIBCRYPTO_PATH} ${LIBWEBSOCKET_PATH} ${LIBCURL_PATH} ${LIBZ_PATH} ${LIBPTHREAD_PATH}) + + diff --git a/examples/RequestMarketDepthMBPEvent/main.cpp b/examples/RequestMarketDepthMBPEvent/main.cpp new file mode 100644 index 0000000..4d23199 --- /dev/null +++ b/examples/RequestMarketDepthMBPEvent/main.cpp @@ -0,0 +1,27 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +#include "Huobi/HuobiClient.h" +#include + +using namespace Huobi; +using namespace std; +/** + * Huobi support incremental push! + * By the way, we only support 150 level for now, please stay tuned supporting other levels in the future ! + */ +int main(int argc, char** argv) { + WsRequestClient* client = createWsRequestClient(); + client->requestMarketDepthMBPEvent("btcusdt", MBPLevel::LEVEL150, [](MarketDepthMBPEvent event) { + cout << "prevSeqNum: " << event.prevSeqNum << endl; + cout << "seqNum: " << event.seqNum << endl; + for (map::iterator it = event.asks.begin(); it != event.asks.end(); ++it) + cout << "ask: " << it->first << " => " << it->second << '\n'; + for (map::iterator it = event.bids.begin(); it != event.bids.end(); ++it) + cout << "bid: " << it->first << " => " << it->second << '\n'; + }); + +} \ No newline at end of file diff --git a/examples/SubscribeMarketDepthMBP/CMakeLists.txt b/examples/SubscribeMarketDepthMBP/CMakeLists.txt new file mode 100644 index 0000000..4441c36 --- /dev/null +++ b/examples/SubscribeMarketDepthMBP/CMakeLists.txt @@ -0,0 +1,131 @@ +cmake_minimum_required(VERSION 2.8) + +#设置编译器 +IF (CMAKE_COMPILER_TYPE MATCHES "GCC") + SET(CMAKE_C_COMPILER "gcc") + SET(CMAKE_CXX_COMPILER "g++") +ELSEIF (CMAKE_COMPILER_TYPE MATCHES "CLANG") + SET(CMAKE_C_COMPILER "clang") + SET(CMAKE_CXX_COMPILER "clang++") +ENDIF () + +SET(CMAKE_C_FLAGS "-Wall -std=c99") +SET(CMAKE_C_FLAGS_DEBUG "-g") +SET(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG") +SET(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG") +SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") + +SET(CMAKE_CXX_FLAGS "-Wall -std=c++11") +SET(CMAKE_CXX_FLAGS_DEBUG "-g") +SET(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG") +SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") +SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") + + +#判断操作系统 +IF (WIN32) + MESSAGE(STATUS "Now is windows") +ELSEIF (APPLE) + MESSAGE(STATUS "Now is Apple systens.") +ELSEIF (UNIX) + MESSAGE(STATUS "Now is UNIX-like OS's. Including aPPLE os x and CygWin") +ENDIF () + +if (UNIX AND NOT APPLE) + set(platform x64) + set(LINUX TRUE) +endif () + +if (APPLE) +endif () + + + +if (LINUX) + message(STATUS "当前操作系统: Linux") +endif () + +if (APPLE) + message(STATUS "当前操作系统: MacOS") +endif () + +MESSAGE(STATUS "operation system is ${CMAKE_SYSTEM}") + +PROJECT(SubscribeMarketDepthMBP) + +AUX_SOURCE_DIRECTORY(. DIR_SRCS) +ADD_EXECUTABLE(${PROJECT_NAME} ${DIR_SRCS}) + +IF (CMAKE_BUILD_TYPE MATCHES "Release") + SET(CMAKE_BUILD_POSTFIX ${CMAKE_BUILD_TYPE}) +ELSEIF(CMAKE_BUILD_TYPE MATCHES "Debug") + SET(CMAKE_BUILD_POSTFIX ${CMAKE_BUILD_TYPE}) +ELSE() + MESSAGE(FATAL_ERROR "The CMAKE_BUILD_TYPE only supports Release or Debug") +ENDIF() + + +find_library(LIBHUOBICLIENT_PATH HuobiClient) +IF(NOT LIBHUOBICLIENT_PATH) +message(${HUOBI_CLIENT_DIR}/lib/${CMAKE_BUILD_POSTFIX}) +MESSAGE(FATAL_ERROR "HuobiClient not found") +ENDIF(NOT LIBHUOBICLIENT_PATH) +MESSAGE(STATUS ${LIBHUOBICLIENT_PATH} " found") + + +find_library(LIBWEBSOCKET_PATH websockets) +IF(NOT LIBWEBSOCKET_PATH) +MESSAGE(FATAL_ERROR "libwebsockets not found") +ENDIF(NOT LIBWEBSOCKET_PATH) +MESSAGE(STATUS ${LIBWEBSOCKET_PATH} " found") + +find_library(LIBSSL_PATH ssl) +IF(NOT LIBSSL_PATH) +MESSAGE(FATAL_ERROR "libssl not found") +ENDIF(NOT LIBSSL_PATH) +MESSAGE(STATUS ${LIBSSL_PATH} " found") + +find_library(LIBCRYPTO_PATH crypto) +IF(NOT LIBCRYPTO_PATH) +MESSAGE(FATAL_ERROR "libcrypto not found") +ENDIF(NOT LIBCRYPTO_PATH) +MESSAGE(STATUS ${LIBCRYPTO_PATH} " found") + +find_library(LIBCURL_PATH curl) +IF(NOT LIBCURL_PATH) +MESSAGE(FATAL_ERROR "curl not found") +ENDIF(NOT LIBCURL_PATH) +MESSAGE(STATUS ${LIBCURL_PATH} " found") + +find_library(LIBZ_PATH z) +IF(NOT LIBZ_PATH) +MESSAGE(FATAL_ERROR "z not found") +ENDIF(NOT LIBZ_PATH) +MESSAGE(STATUS ${LIBZ_PATH} " found") + +find_library(LIBPTHREAD_PATH pthread) +IF(NOT LIBPTHREAD_PATH) + MESSAGE(FATAL_ERROR "pthread not found") +ENDIF(NOT LIBPTHREAD_PATH) +MESSAGE(STATUS ${LIBPTHREAD_PATH} " found") + +find_library(LIBDECNUMBER_PATH decnumber) +IF(NOT LIBDECNUMBER_PATH) +MESSAGE(FATAL_ERROR "decnumber not found") +ENDIF(NOT LIBDECNUMBER_PATH) +MESSAGE(STATUS ${LIBDECNUMBER_PATH} " found") + +FIND_PATH( + LIBDECNUMBER_INCLUDE_DIR + decNumber.h + /usr/include/decnumber/ + /usr/local/include/decnumber/ +) +include_directories(${LIBDECNUMBER_INCLUDE_DIR}) +include_directories(/usr/local/include) + +add_definitions(-std=c++11) + +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIBHUOBICLIENT_PATH} ${LIBDECNUMBER_PATH} ${LIBSSL_PATH} ${LIBCRYPTO_PATH} ${LIBWEBSOCKET_PATH} ${LIBCURL_PATH} ${LIBZ_PATH} ${LIBPTHREAD_PATH}) + + diff --git a/examples/SubscribeMarketDepthMBP/main.cpp b/examples/SubscribeMarketDepthMBP/main.cpp new file mode 100644 index 0000000..825a71f --- /dev/null +++ b/examples/SubscribeMarketDepthMBP/main.cpp @@ -0,0 +1,142 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +/** + * Huobi support incremental push! + * By the way, we only support 150 level for now, please stay tuned supporting other levels in the future ! + */ + +#include +#include +#include + +#include "Huobi/HuobiClient.h" + +using namespace Huobi; +using namespace std; + + +MarketDepthMBPEvent fullData; +list changes; + +void subMarketDepthMBPEvent() { + + SubscriptionClient* client = createSubscriptionClient(); + client->subscribeMarketDepthMBP("btcusdt", MBPLevel::LEVEL150, [](MarketDepthMBPEvent event) { + changes.push_back(event); + }); + client->startService(); + +} + +void fun() { + + while (!changes.size()) { + + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + + list::iterator ite = changes.begin(); + list::iterator eraseIte = changes.begin(); + int i = 0; + while (1) { + + if ((*ite).prevSeqNum == fullData.seqNum) { + while (eraseIte != ite) { + eraseIte = changes.erase(eraseIte); + } + break; + + } + ite++; + i++; + if (i == 20 || ite == changes.end()) { + i = 0; + ite = changes.begin(); + } + + } + + vector nums; + while (1) { + + while (!changes.size()) { + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + + + for (std::map::iterator it = (*ite).asks.begin(); it != (*ite).asks.end(); ++it) { + + if (it->second == Decimal("0.0") || it->second == Decimal("0E-18")) + fullData.asks.erase(it->first); + else + fullData.asks[it->first] = it->second; + } + + for (std::map::iterator it = (*ite).bids.begin(); it != (*ite).bids.end(); ++it) { + + if (it->second == Decimal("0.0") || it->second == Decimal("0E-18")) + fullData.bids.erase(it->first); + else + fullData.bids[it->first] = it->second; + + } + + + // the full data + + fullData.seqNum = (*ite).seqNum; + fullData.prevSeqNum = (*ite).prevSeqNum; + + cout << "prevSeqNum: " << fullData.prevSeqNum << endl; + cout << "seqNum: " << fullData.seqNum << endl; + + for (map::iterator it = fullData.asks.begin(); it != fullData.asks.end(); ++it) + cout << "ask: " << it->first << " => " << it->second << '\n'; + for (map::iterator it = fullData.bids.begin(); it != fullData.bids.end(); ++it) + cout << "bid: " << it->first << " => " << it->second << '\n'; + + ite++; + + while (ite == changes.end()) { + std::this_thread::sleep_for(std::chrono::milliseconds(100)); + } + + + } + +} + +int main(int argc, char** argv) { + + // Simple demo for using incremental push to get full data. You should transform the demo yourself. + + + std::thread t1(subMarketDepthMBPEvent); + t1.detach(); + + WsRequestClient* client = createWsRequestClient(); + client->requestMarketDepthMBPEvent("btcusdt", MBPLevel::LEVEL150, [](MarketDepthMBPEvent event) { + + fullData = event; + for (map::iterator it = fullData.asks.begin(); it != fullData.asks.end(); ++it) + cout << "ask: " << it->first << " => " << it->second << '\n'; + for (map::iterator it = fullData.bids.begin(); it != fullData.bids.end(); ++it) + cout << "bid: " << it->first << " => " << it->second << '\n'; + + }); + + + std::thread t(fun); + t.detach(); + + while (1); + + +} + + + diff --git a/examples/SubscribePriceDepth/main.cpp b/examples/SubscribePriceDepth/main.cpp index 7c57d2e..ff4c380 100644 --- a/examples/SubscribePriceDepth/main.cpp +++ b/examples/SubscribePriceDepth/main.cpp @@ -22,4 +22,3 @@ int main(int argc, char** argv) { client->startService(); } - diff --git a/include/Huobi/Enums.h b/include/Huobi/Enums.h index ca1c93e..3781ce9 100644 --- a/include/Huobi/Enums.h +++ b/include/Huobi/Enums.h @@ -426,8 +426,15 @@ public: \ static CrossMarginAccountState fl_end; static CrossMarginAccountState fl_negative; static CrossMarginAccountState SDK_NOTSUPPORT; + }; - + class MBPLevel : public BaseEnumClass { + DEFINE_ENUM_CLASS(MBPLevel); + public: + static MBPLevel LEVEL5; + static MBPLevel LEVEL10; + static MBPLevel LEVEL20; + static MBPLevel LEVEL150; }; } diff --git a/include/Huobi/Loan.h b/include/Huobi/Loan.h index 5bad913..cb0917f 100644 --- a/include/Huobi/Loan.h +++ b/include/Huobi/Loan.h @@ -89,8 +89,7 @@ namespace Huobi { std::string deductCurrency; Decimal deductAmount; Decimal deductRate; - Decimal hourInterestRate; - Decimal dayInterestRate; + }; } diff --git a/include/Huobi/MarketDepthMBPEvent.h b/include/Huobi/MarketDepthMBPEvent.h new file mode 100644 index 0000000..962474d --- /dev/null +++ b/include/Huobi/MarketDepthMBPEvent.h @@ -0,0 +1,32 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ + +/* + * File: MarketDepthMBPEvent.h + * Author: yuanxueqi + * + * Created on 2019年11月26日, 上午11:15 + */ + +#ifndef MARKETDEPTHMBPEVENT_H +#define MARKETDEPTHMBPEVENT_H + +#include "Decimal.h" + +namespace Huobi { + + struct MarketDepthMBPEvent { + long seqNum = 0; + long prevSeqNum = 0; + std::map bids; + std::map asks; + }; +} + + + +#endif /* MARKETDEPTHMBPEVENT_H */ + diff --git a/include/Huobi/SubscriptionClient.h b/include/Huobi/SubscriptionClient.h index 7a5074e..74e893a 100644 --- a/include/Huobi/SubscriptionClient.h +++ b/include/Huobi/SubscriptionClient.h @@ -13,6 +13,7 @@ #include "Huobi/TradeStatisticsEvent.h" #include "Huobi/AccountListEvent.h" #include "Huobi/MarketBBOEvent.h" +#include "Huobi/MarketDepthMBPEvent.h" #include "SubscriptionOptions.h" @@ -136,13 +137,13 @@ namespace Huobi { * * \param symbols The symbols, like "btcusdt". Use comma to separate multi symbols, like * "btcusdt,ethusdt". - * \param step The aggregation depth type,step0,step1,etc. + * \param step The aggregation depth type,step0,step1,etc. * \param callback The implementation is required. onReceive will be called if receive server's * update. * \param errorHandler The error handler will be called if subscription failed or error happen * between client and Huobi server. */ - + virtual void subscribePriceDepthEvent( const char* symbols, DepthStep step, @@ -159,12 +160,18 @@ namespace Huobi { * update. * \param errorHandler The error handler will be called if subscription failed or error happen * between client and Huobi server. - */ + */ virtual void subscribeMarketBBOEvent( - const char* symbols, + const char* symbols, const std::function& callback, const std::function& errorHandler = std::function()) = 0; + virtual void subscribeMarketDepthMBP( + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler = std::function()) = 0; + /* * start sub,must excute after sub-function. diff --git a/include/Huobi/WsRequestClient.h b/include/Huobi/WsRequestClient.h index 9dffb3e..463b3fd 100644 --- a/include/Huobi/WsRequestClient.h +++ b/include/Huobi/WsRequestClient.h @@ -292,6 +292,22 @@ namespace Huobi { long orderId, const std::function& callback, const std::function& errorHandler = std::function()) = 0; + + + virtual void requestMarketDepthMBPEvent( + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler = std::function()) = 0; + + virtual void requestMarketDepthMBPEvent( + bool autoClose, + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler = std::function()) = 0; + + }; WsRequestClient* createWsRequestClient(); WsRequestClient* createWsRequestClient(const char* apiKey, const char* secretKey); diff --git a/src/Enums.cpp b/src/Enums.cpp index d680a55..1174d76 100644 --- a/src/Enums.cpp +++ b/src/Enums.cpp @@ -207,6 +207,10 @@ namespace Huobi { CrossMarginAccountState CrossMarginAccountState::fl_sys = CrossMarginAccountState("fl-sys"); CrossMarginAccountState CrossMarginAccountState::SDK_NOTSUPPORT = CrossMarginAccountState("sdk_not_support_for_now"); + MBPLevel MBPLevel::LEVEL5 = MBPLevel("5"); + MBPLevel MBPLevel::LEVEL10 = MBPLevel("10"); + MBPLevel MBPLevel::LEVEL20 = MBPLevel("20"); + MBPLevel MBPLevel::LEVEL150 = MBPLevel("150"); } diff --git a/src/Logger.cpp b/src/Logger.cpp index 7eded43..513831a 100644 --- a/src/Logger.cpp +++ b/src/Logger.cpp @@ -25,6 +25,7 @@ namespace Huobi { vfprintf(log_fp, buf, arg); fflush(log_fp); va_end(arg); + fclose(log_fp); return; } else { printf("open file failed!\n"); diff --git a/src/RestApiImpl.cpp b/src/RestApiImpl.cpp index 999e3d8..23a0536 100644 --- a/src/RestApiImpl.cpp +++ b/src/RestApiImpl.cpp @@ -18,7 +18,7 @@ namespace Huobi { UrlParamsBuilder builder; res = createRequestByGet("/v1/common/timestamp", builder); res->jsonParser = [this](JsonWrapper json) { - long value = TimeService::convertCSTInMillisecondToUTC(json.getLong("data")); + long value = json.getLong("data"); return value; }; @@ -51,8 +51,7 @@ namespace Huobi { for (int i = 0; i < data.size(); i++) { JsonWrapper item = data.getJsonObjectAt(i); Candlestick candlestick; - candlestick.timestamp = - TimeService::convertCSTInSecondToUTC(item.getLong("id")); + candlestick.timestamp = item.getLong("id"); candlestick.id = item.getLong("id"); candlestick.open = item.getDecimal("open"); candlestick.close = item.getDecimal("close"); @@ -90,8 +89,8 @@ namespace Huobi { trade.price = itemIn.getDecimal("price"); trade.amount = itemIn.getDecimal("amount"); trade.tradeId = itemIn.getString("id"); - trade.uniqueTradeId = item.getString("trade-id"); - trade.timestamp = TimeService::convertCSTInMillisecondToUTC(itemIn.getLong("ts")); + trade.uniqueTradeId = itemIn.getString("trade-id"); + trade.timestamp = itemIn.getLong("ts"); trade.direction = TradeDirection::lookup(itemIn.getString("direction")); trades.push_back(trade); } @@ -151,7 +150,7 @@ namespace Huobi { auto res = createRequestByGet("/market/detail/merged", builder); res->jsonParser = [this](const JsonWrapper & json) { BestQuote bestQuote; - bestQuote.timestamp = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + bestQuote.timestamp = json.getLong("ts"); JsonWrapper tick = json.getJsonObjectOrArray("tick"); JsonWrapper askArray = tick.getJsonObjectOrArray("ask"); bestQuote.askPrice = askArray.getDecimalAt(0); @@ -217,7 +216,7 @@ namespace Huobi { res->jsonParser = [this, size](const JsonWrapper & json) { PriceDepth price; JsonWrapper tick = json.getJsonObjectOrArray("tick"); - long ts = TimeService::convertCSTInMillisecondToUTC(tick.getLong("ts")); + long ts = tick.getLong("ts"); JsonWrapper bids = tick.getJsonObjectOrArray("bids"); JsonWrapper asks = tick.getJsonObjectOrArray("asks"); std::vector bidList; @@ -272,10 +271,8 @@ namespace Huobi { withdraw.addressTag = item.getString("address-tag"); withdraw.fee = item.getDecimal("fee"); withdraw.withdrawState = WithdrawState::lookup(item.getString("state")); - withdraw.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); - withdraw.updatedTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("updated-at")); + withdraw.createdTimestamp = item.getLong("created-at"); + withdraw.updatedTimestamp = item.getLong("updated-at"); withdraw.chain = item.getString("chain"); withdraws.push_back(withdraw); } @@ -310,10 +307,8 @@ namespace Huobi { deposit.addressTag = item.getString("address-tag"); deposit.fee = item.getDecimal("fee"); deposit.depositState = DepositState::lookup(item.getString("state")); - deposit.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); - deposit.updatedTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("updated-at")); + deposit.createdTimestamp = item.getLong("created-at"); + deposit.updatedTimestamp = item.getLong("updated-at"); deposit.chain = item.getString("chain"); lstdeposit.push_back(deposit); } @@ -330,8 +325,7 @@ namespace Huobi { auto res = createRequestByGet("/market/detail", builder); res->jsonParser = [this](const JsonWrapper & json) { TradeStatistics tradeStatistics; - tradeStatistics.timestamp = - TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + tradeStatistics.timestamp = json.getLong("ts"); JsonWrapper tick = json.getJsonObjectOrArray("tick"); tradeStatistics.amount = tick.getDecimal("amount"); tradeStatistics.open = tick.getDecimal("open"); @@ -436,18 +430,15 @@ namespace Huobi { loan.state = LoanOrderStates::lookup(item.getString("state")); loan.accountType = AccountsInfoMap::getAccount(accessKey, item.getLong("account-id")).type; loan.userId = item.getLong("user-id"); - loan.accruedTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("accrued-at")); - loan.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); + loan.accruedTimestamp = item.getLong("accrued-at"); + loan.createdTimestamp = item.getLong("created-at"); loan.accountId = item.getLong("account-id"); loan.paidPoint = item.getDecimal("paid-point"); loan.paidCoin = item.getDecimal("paid-coin"); loan.deductCurrency = item.getString("deduct-currency"); loan.deductAmount = item.getDecimal("deduct-amount"); loan.deductRate = item.getDecimal("deduct-rate"); - loan.hourInterestRate = item.getDecimal("hour-interest-rate"); - loan.dayInterestRate = item.getDecimal("hour-interest-rate"); + loans.push_back(loan); } return loans; @@ -484,8 +475,7 @@ namespace Huobi { order.amount = item.getDecimal("amount"); order.accountType = AccountsInfoMap::getAccount(accessKey, item.getLong("account-id")).type; - order.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); + order.createdTimestamp = item.getLong("created-at"); order.type = OrderType::lookup(item.getString("type")); order.filledAmount = item.getDecimal("filled-amount"); order.filledCashAmount = item.getDecimal("filled-cash-amount"); @@ -602,11 +592,9 @@ namespace Huobi { order.orderId = data.getLong("id"); order.accountType = AccountsInfoMap::getAccount(accessKey, data.getLong("account-id")).type; order.amount = data.getDecimal("amount"); - order.canceledTimestamp = TimeService::convertCSTInMillisecondToUTC(data.getLong("canceled-at")); - order.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(data.getLong("created-at")); - order.finishedTimestamp = - TimeService::convertCSTInMillisecondToUTC(data.getLong("finished-at")); + order.canceledTimestamp = data.getLong("canceled-at"); + order.createdTimestamp = data.getLong("created-at"); + order.finishedTimestamp = data.getLong("finished-at"); order.filledAmount = data.getDecimal("field-amount"); order.filledCashAmount = data.getDecimal("field-cash-amount"); order.filledFees = data.getDecimal("field-fees"); @@ -635,8 +623,7 @@ namespace Huobi { JsonWrapper item = data.getJsonObjectAt(i); MatchResult matchResult; matchResult.id = (item.getLong("id")); - matchResult.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); + matchResult.createdTimestamp = item.getLong("created-at"); matchResult.filledAmount = item.getDecimal("filled-amount"); matchResult.filledFeeds = item.getDecimal("filled-fees"); matchResult.matchId = item.getLong("match-id"); @@ -677,9 +664,8 @@ namespace Huobi { for (int i = 0; i < data.size(); i++) { JsonWrapper item = data.getJsonObjectAt(i); MatchResult matchResult; - matchResult.id = (item.getLong("id")); - matchResult.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); + matchResult.id = item.getLong("id"); + matchResult.createdTimestamp = item.getLong("created-at"); matchResult.filledAmount = item.getDecimal("filled-amount"); matchResult.filledFeeds = item.getDecimal("filled-fees"); matchResult.matchId = item.getLong("match-id"); @@ -780,15 +766,12 @@ namespace Huobi { order.accountType = AccountsInfoMap::getAccount(accessKey, item.getLong("account-id")).type; order.amount = item.getDecimal("amount"); - order.canceledTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLongOrDefault("canceled-at", 0)); - order.finishedTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLongOrDefault("finished-at", 0)); + order.canceledTimestamp = item.getLongOrDefault("canceled-at", 0); + order.finishedTimestamp = item.getLongOrDefault("finished-at", 0); order.orderId = item.getLong("id"); order.symbol = item.getString("symbol"); order.price = item.getDecimal("price"); - order.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); + order.createdTimestamp = item.getLong("created-at"); order.type = OrderType::lookup(item.getString("type")); order.filledAmount = item.getDecimal("field-amount"); order.filledCashAmount = item.getDecimal("field-cash-amount"); @@ -994,7 +977,7 @@ namespace Huobi { for (int i = 0; i < data.size(); i++) { JsonWrapper item = data.getJsonObjectAt(i); Candlestick candlestick; - candlestick.timestamp = TimeService::convertCSTInSecondToUTC(item.getLong("id")); + candlestick.timestamp = item.getLong("id"); candlestick.id = item.getLong("id"); candlestick.open = item.getDecimal("open"); candlestick.close = item.getDecimal("close"); @@ -1072,11 +1055,9 @@ namespace Huobi { order.orderId = data.getLong("id"); order.accountType = AccountsInfoMap::getAccount(accessKey, data.getLong("account-id")).type; order.amount = data.getDecimal("amount"); - order.canceledTimestamp = TimeService::convertCSTInMillisecondToUTC(data.getLong("canceled-at")); - order.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(data.getLong("created-at")); - order.finishedTimestamp = - TimeService::convertCSTInMillisecondToUTC(data.getLong("finished-at")); + order.canceledTimestamp = data.getLong("canceled-at"); + order.createdTimestamp = data.getLong("created-at"); + order.finishedTimestamp = data.getLong("finished-at"); order.filledAmount = data.getDecimal("field-amount"); order.filledCashAmount = data.getDecimal("field-cash-amount"); order.filledFees = data.getDecimal("field-fees"); @@ -1155,15 +1136,12 @@ namespace Huobi { order.accountType = AccountsInfoMap::getAccount(accessKey, item.getLong("account-id")).type; order.amount = item.getDecimal("amount"); - order.canceledTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLongOrDefault("canceled-at", 0)); - order.finishedTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLongOrDefault("finished-at", 0)); + order.canceledTimestamp = item.getLongOrDefault("canceled-at", 0); + order.finishedTimestamp = item.getLongOrDefault("finished-at", 0); order.orderId = item.getLong("id"); order.symbol = item.getString("symbol"); order.price = item.getDecimal("price"); - order.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); + order.createdTimestamp = item.getLong("created-at"); order.type = OrderType::lookup(item.getString("type")); order.filledAmount = item.getDecimal("field-amount"); order.filledCashAmount = item.getDecimal("field-cash-amount"); @@ -1174,7 +1152,7 @@ namespace Huobi { if (item.containKey("operator")) { order.stopOrderOperator = StopOrderOperator::lookup(item.getString("operator")); } - order.nextTime = TimeService::convertCSTInMillisecondToUTC(item.getLongOrDefault("next-time", 0)); + order.nextTime = item.getLongOrDefault("next-time", 0); orderList.push_back(order); } return orderList; @@ -1197,7 +1175,7 @@ namespace Huobi { trade.amount = item.getDecimal("amount"); trade.tradeId = item.getString("id"); trade.uniqueTradeId = item.getString("trade-id"); - trade.timestamp = TimeService::convertCSTInMillisecondToUTC(item.getLong("ts")); + trade.timestamp = item.getLong("ts"); trade.direction = TradeDirection::lookup(item.getString("direction")); return trade; }; diff --git a/src/RestApiInvoke.h b/src/RestApiInvoke.h index 14151e1..a90bbe7 100644 --- a/src/RestApiInvoke.h +++ b/src/RestApiInvoke.h @@ -98,8 +98,8 @@ namespace Huobi { curl_easy_setopt(pCurl, CURLOPT_WRITEFUNCTION, &writeFun); // !数据回调函数 curl_easy_setopt(pCurl, CURLOPT_WRITEDATA, &sBuffer); // !数据回调函数的参,一般为Buffer或文件fd if (request->method == "POST") { - //TODO: body需要转成utf-8 - curl_easy_setopt(pCurl, CURLOPT_POSTFIELDS, request->getPostBody().c_str()); + curl_easy_setopt(pCurl, CURLOPT_POSTFIELDSIZE, request->getPostBody().size()); + curl_easy_setopt(pCurl, CURLOPT_COPYPOSTFIELDS, request->getPostBody().c_str()); } curl_easy_perform(pCurl); if (code != CURLE_OK) { @@ -115,7 +115,7 @@ namespace Huobi { curl_easy_cleanup(pCurl); curl_global_cleanup(); - RestApiInvoke::checkResponse(json); + RestApiInvoke::checkResponse(json); T val = (ptr->jsonParser)(json); return val; diff --git a/src/SubscriptionClientImpl.cpp b/src/SubscriptionClientImpl.cpp index 117b833..dec825c 100644 --- a/src/SubscriptionClientImpl.cpp +++ b/src/SubscriptionClientImpl.cpp @@ -45,7 +45,7 @@ namespace Huobi { lwsl_user("afer canceled.....\n"); connection->disconnect(); - return 1; + return -1; //case LWS_CALLBACK_WSI_DESTROY: case LWS_CALLBACK_CLIENT_CONNECTION_ERROR: connection->disconnect(); @@ -59,7 +59,7 @@ namespace Huobi { return 0; } - static const struct lws_protocols protocols[] = { + static const struct lws_protocols protocols[] = { { "example-protocol", event_cb, @@ -68,9 +68,9 @@ namespace Huobi { }, { NULL, NULL, 0, 0} }; - static struct lws_context* context = nullptr; + - static void init_context() { + void SubscriptionClientImpl::init_context() { if (context == nullptr) { int logs = LLL_ERR | LLL_WARN ; @@ -125,6 +125,7 @@ namespace Huobi { } lwsl_user("enter_event_loop END\n"); lws_context_destroy(context); + } void SubscriptionClientImpl::createConnection(WebSocketRequest* request) { @@ -218,6 +219,14 @@ namespace Huobi { } + void SubscriptionClientImpl::subscribeMarketDepthMBP( + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler) { + createConnection(impl->subscribeMarketDepthMBP(parseSymbols(symbols), level, callback, errorHandler)); + } + WebSocketRequest* SubscriptionClientImpl::requestCandlestickEvent( bool autoClose, const char* symbols, @@ -304,9 +313,20 @@ namespace Huobi { WebSocketRequest* req = impl->requestOrdertDetailEvent(autoClose, orderId, callback, errorHandler); createConnection(req); return req; + } + WebSocketRequest * SubscriptionClientImpl::requestMarketDepthMBPEvent( + bool autoClose, + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler) { + WebSocketRequest* req = impl->requestMarketDepthMBPEvent(autoClose, parseSymbols(symbols), level, callback, errorHandler); + createConnection(req); + return req; } + } diff --git a/src/SubscriptionClientImpl.h b/src/SubscriptionClientImpl.h index 0a28be7..d24cb52 100644 --- a/src/SubscriptionClientImpl.h +++ b/src/SubscriptionClientImpl.h @@ -29,10 +29,14 @@ namespace Huobi { // std::string host = "api.huobi.pro"; std::string host = "api.huobi.so"; WebSocketWatchDog* dog = nullptr; + + struct lws_context* context = nullptr; public: void startService() override; void startReq(WebSocketRequest* webSocketRequest); + void init_context(); + SubscriptionClientImpl() { apiKey = ""; secretKey = ""; @@ -120,6 +124,13 @@ namespace Huobi { const std::function& callback, const std::function& errorHandler = std::function()) override; + void subscribeMarketDepthMBP( + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler = std::function()) override; + + WebSocketRequest* requestCandlestickEvent( bool autoClose, const char* symbols, @@ -165,6 +176,15 @@ namespace Huobi { const std::function& callback, const std::function& errorHandler); + WebSocketRequest* requestMarketDepthMBPEvent( + bool autoClose, + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler); + + + private: std::list parseSymbols(const char* symbols); }; diff --git a/src/Utils/Channels.h b/src/Utils/Channels.h index d727536..12d5d6f 100644 --- a/src/Utils/Channels.h +++ b/src/Utils/Channels.h @@ -14,11 +14,7 @@ namespace Huobi { static std::string klineChannel( const std::string& symbol, const CandlestickInterval& interval) { - // JsonWriter writer; - // writer.put("sub", "market." + symbol + ".kline." + interval.getValue()); - // writer.put("id", std::to_string(TimeService::getCurrentTimeStamp())); - // std::cout<accessKey, data.getLong("account-id")).type; order.amount = data.getDecimal("order-amount"); order.price = data.getDecimal("order-price"); - order.createdTimestamp = TimeService::convertCSTInMillisecondToUTC(data.getLong("created-at")); + order.createdTimestamp = (data.getLong("created-at")); order.type = OrderType::lookup(data.getString("order-type")); order.filledAmount = data.getDecimal("filled-amount"); order.filledCashAmount = data.getDecimal("filled-cash-amount"); @@ -246,7 +248,7 @@ namespace Huobi { AccountEvent accountEvent; JsonWrapper data = json.getJsonObjectOrArray("data"); accountEvent.changeType = AccountChangeType::lookup(data.getString("event")); - accountEvent.timestamp = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + accountEvent.timestamp = json.getLong("ts"); JsonWrapper listArray = data.getJsonObjectOrArray("list"); for (int i = 0; i < listArray.size(); i++) { JsonWrapper itemInList = listArray.getJsonObjectAt(i); @@ -285,7 +287,7 @@ namespace Huobi { ChannelParser parser = ChannelParser(json.getString("topic")); OrderUpdateEvent orderUpdateEvent; orderUpdateEvent.symbol = parser.getSymbol(); - orderUpdateEvent.timestamp = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + orderUpdateEvent.timestamp = json.getLong("ts"); JsonWrapper data = json.getJsonObjectOrArray("data"); Order order; order.orderId = data.getLong("order-id"); @@ -317,7 +319,6 @@ namespace Huobi { req->connectionHandler = [symbols](WebSocketConnection * connection) { for (std::string symbol : symbols) { connection->send(Channels::marketBBOChannel(Channels::OP_SUB, symbol)); - std::this_thread::sleep_for(std::chrono::milliseconds(1)); } }; @@ -325,7 +326,7 @@ namespace Huobi { ChannelParser parser = ChannelParser(json.getString("ch")); MarketBBOEvent event; event.symbol = parser.getSymbol(); - long ts = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + long ts = json.getLong("ts"); event.timestamp = ts; JsonWrapper tick = json.getJsonObjectOrArray("tick"); BestQuote bbo; @@ -333,7 +334,7 @@ namespace Huobi { bbo.askPrice = tick.getDecimal("ask"); bbo.bidAmount = tick.getDecimal("bidSize"); bbo.bidPrice = tick.getDecimal("bid"); - bbo.timestamp = TimeService::convertCSTInMillisecondToUTC(tick.getLong("quoteTime")); + bbo.timestamp = (tick.getLong("quoteTime")); event.bbo = bbo; return event; }; @@ -345,6 +346,47 @@ namespace Huobi { } + WebSocketRequest* WebSocketApiImpl::subscribeMarketDepthMBP( + const std::list& symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler) { + + InputChecker::checker()->checkCallback(callback); + auto req = new WebSocketRequestImpl(); + req->connectionHandler = [symbols, level](WebSocketConnection * connection) { + for (std::string symbol : symbols) { + connection->send(Channels::MarketDepthMBP(Channels::OP_SUB, symbol, level)); + std::this_thread::sleep_for(std::chrono::milliseconds(1)); + } + }; + req->JsonParser = [this](const JsonWrapper & json) { + + MarketDepthMBPEvent marketDepthMBPEvent; + JsonWrapper tick = json.getJsonObjectOrArray("tick"); + marketDepthMBPEvent.seqNum = tick.getLong("seqNum"); + marketDepthMBPEvent.prevSeqNum = tick.getLong("prevSeqNum"); + JsonWrapper bids = tick.getJsonObjectOrArray("bids"); + JsonWrapper asks = tick.getJsonObjectOrArray("asks"); + for (int i = 0; i < bids.size(); i++) { + JsonWrapper item = bids.getArrayAt(i); + Decimal price = item.getDecimalAt(0); + marketDepthMBPEvent.bids[price] = item.getDecimalAt(1); + } + for (int i = 0; i < asks.size(); i++) { + JsonWrapper item = asks.getArrayAt(i); + Decimal price = item.getDecimalAt(0); + marketDepthMBPEvent.asks[price] = item.getDecimalAt(1); + } + return marketDepthMBPEvent; + }; + req->isNeedSignature = false; + req->Callback = callback; + req->errorHandler = errorHandler; + return req; + + } + WebSocketRequest* WebSocketApiImpl::requestCandlestickEvent( bool autoClose, const std::list& symbols, @@ -376,7 +418,7 @@ namespace Huobi { candlestickEvent.symbol = parser.getSymbol(); candlestickEvent.interval = interval; Candlestick can; - can.timestamp = TimeService::convertCSTInSecondToUTC(item.getLong("id")); + can.timestamp = item.getLong("id"); can.id = item.getLong("id"); can.amount = item.getDecimal("amount"); can.close = item.getDecimal("close"); @@ -441,7 +483,7 @@ namespace Huobi { event.data = priceDepth; ChannelParser parser = ChannelParser(json.getString("rep")); event.symbol = parser.getSymbol(); - event.timestamp = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + event.timestamp = json.getLong("ts"); return event; }; req->isNeedSignature = false; @@ -479,13 +521,13 @@ namespace Huobi { trade.tradeId = item.getString("id"); trade.uniqueTradeId = item.getString("tradeId"); trade.direction = TradeDirection::lookup(item.getString("direction")); - trade.timestamp = TimeService::convertCSTInMillisecondToUTC(item.getLong("ts")); + trade.timestamp = item.getLong("ts"); tradeVec.push_back(trade); } event.tradeList = tradeVec; ChannelParser parser = ChannelParser(json.getString("rep")); event.symbol = parser.getSymbol(); - event.timestamp = TimeService::convertCSTInMillisecondToUTC(json.getLong("id")); + event.timestamp = json.getLong("id"); return event; }; @@ -514,7 +556,7 @@ namespace Huobi { req->JsonParser = [](const JsonWrapper & json) { TradeStatisticsEvent event; JsonWrapper data = json.getJsonObjectOrArray("data"); - long ts = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + long ts = json.getLong("ts"); TradeStatistics statistics; statistics.amount = data.getDecimal("amount"); statistics.open = data.getDecimal("open"); @@ -553,7 +595,7 @@ namespace Huobi { req->JsonParser = [](const JsonWrapper & json) { AccountListEvent event; JsonWrapper data = json.getJsonObjectOrArray("data"); - long ts = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + long ts = json.getLong("ts"); event.timestamp = ts; for (int i = 0; i < data.size(); i++) { JsonWrapper item = data.getJsonObjectAt(i); @@ -608,7 +650,7 @@ namespace Huobi { req->JsonParser = [this](const JsonWrapper & json) { OrderListEvent event; JsonWrapper data = json.getJsonObjectOrArray("data"); - long ts = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + long ts = json.getLong("ts"); event.timestamp = ts; for (int i = 0; i < data.size(); i++) { JsonWrapper item = data.getJsonObjectAt(i); @@ -618,9 +660,9 @@ namespace Huobi { order.price = item.getDecimal("price"); order.amount = item.getDecimal("amount"); order.accountType = - AccountsInfoMap::getAccount(this->accessKey, item.getLong("account-id")).type; + AccountsInfoMap::getAccount(this->accessKey, item.getLong("account-id")).type; order.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("created-at")); + (item.getLong("created-at")); order.type = OrderType::lookup(item.getString("type")); order.filledAmount = item.getDecimal("filled-amount"); order.filledCashAmount = item.getDecimal("filled-cash-amount"); @@ -628,8 +670,8 @@ namespace Huobi { order.source = OrderSource::lookup(item.getString("source")); order.state = OrderState::lookup(item.getString("state")); order.canceledTimestamp = - TimeService::convertCSTInMillisecondToUTC(item.getLong("canceled-at")); - event.orders.push_back(order); + (item.getLong("canceled-at")); + event.orders.push_back(order); } return event; }; @@ -656,7 +698,7 @@ namespace Huobi { req->JsonParser = [this](const JsonWrapper & json) { OrderDetailEvent event; JsonWrapper data = json.getJsonObjectOrArray("data"); - long ts = TimeService::convertCSTInMillisecondToUTC(json.getLong("ts")); + long ts = json.getLong("ts"); event.timestamp = ts; Order order; order.orderId = data.getLong("id"); @@ -666,7 +708,7 @@ namespace Huobi { order.accountType = AccountsInfoMap::getAccount(this->accessKey, data.getLong("account-id")).type; order.createdTimestamp = - TimeService::convertCSTInMillisecondToUTC(data.getLong("created-at")); + (data.getLong("created-at")); order.type = OrderType::lookup(data.getString("type")); order.filledAmount = data.getDecimal("filled-amount"); order.filledCashAmount = data.getDecimal("filled-cash-amount"); @@ -674,7 +716,7 @@ namespace Huobi { order.source = OrderSource::lookup(data.getString("source")); order.state = OrderState::lookup(data.getString("state")); order.canceledTimestamp = - TimeService::convertCSTInMillisecondToUTC(data.getLong("canceled-at")); + (data.getLong("canceled-at")); event.order = order; return event; }; @@ -682,6 +724,48 @@ namespace Huobi { req->Callback = callback; req->errorHandler = errorHandler; return req; + } + + WebSocketRequest* WebSocketApiImpl::requestMarketDepthMBPEvent( + bool autoClose, + const std::list& symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler) { + + InputChecker::checker() + ->checkCallback(callback); + auto req = new WebSocketRequestImpl (); + req->connectionHandler = [symbols, level](WebSocketConnection * connection) { + for (std::string symbol : symbols) { + connection->send(Channels::MarketDepthMBP(Channels::OP_REQ, symbol, level)); + } + }; + req->autoClose = autoClose; + req->time = symbols.size(); + req->JsonParser = [](const JsonWrapper & json) { + MarketDepthMBPEvent marketDepthMBPEvent; + JsonWrapper data = json.getJsonObjectOrArray("data"); + marketDepthMBPEvent.seqNum = data.getLong("seqNum"); + marketDepthMBPEvent.prevSeqNum = data.getLong("prevSeqNum"); + JsonWrapper bids = data.getJsonObjectOrArray("bids"); + JsonWrapper asks = data.getJsonObjectOrArray("asks"); + for (int i = 0; i < bids.size(); i++) { + JsonWrapper item = bids.getArrayAt(i); + Decimal price = item.getDecimalAt(0); + marketDepthMBPEvent.bids[price] = item.getDecimalAt(1); + } + for (int i = 0; i < asks.size(); i++) { + JsonWrapper item = asks.getArrayAt(i); + Decimal price = item.getDecimalAt(0); + marketDepthMBPEvent.asks[price] = item.getDecimalAt(1); + } + return marketDepthMBPEvent; + }; + req->isNeedSignature = false; + req->Callback = callback; + req->errorHandler = errorHandler; + return req; } diff --git a/src/WebSocketApiImpl.h b/src/WebSocketApiImpl.h index e8b0352..b1d1baf 100644 --- a/src/WebSocketApiImpl.h +++ b/src/WebSocketApiImpl.h @@ -15,6 +15,7 @@ #include "Huobi/OrderListEvent.h" #include "Huobi/OrderDetailEvent.h" #include "Huobi/MarketBBOEvent.h" +#include "Huobi/MarketDepthMBPEvent.h" #include "Huobi/Enums.h" namespace Huobi { @@ -75,13 +76,19 @@ namespace Huobi { const std::list& symbols, const std::function& callback, const std::function& errorHandler); - + WebSocketRequest* subscribeMarketBBOEvent( const std::list& symbols, const std::function& callback, const std::function& errorHandler); - WebSocketRequest* requestCandlestickEvent( + WebSocketRequest* subscribeMarketDepthMBP( + const std::list& symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler); + + WebSocketRequest * requestCandlestickEvent( bool autoClose, const std::list& symbols, CandlestickInterval interval, @@ -90,31 +97,31 @@ namespace Huobi { const std::function&) >& callback, const std::function& errorHandler); - WebSocketRequest* requestPriceDepthEvent( + WebSocketRequest * requestPriceDepthEvent( bool autoClose, const std::list& symbols, DepthStep step, const std::function& callback, const std::function& errorHandler); - WebSocketRequest* requestTradeEvent( + WebSocketRequest * requestTradeEvent( bool autoClose, const std::list& symbols, const std::function& callback, const std::function& errorHandler); - WebSocketRequest* request24HTradeStatistics( + WebSocketRequest * request24HTradeStatistics( bool autoClose, const std::list& symbols, const std::function& callback, const std::function& errorHandler); - WebSocketRequest* requestAccountList( + WebSocketRequest * requestAccountList( bool autoClose, const std::function& callback, const std::function& errorHandler); - WebSocketRequest* requestOrdertListEvent( + WebSocketRequest * requestOrdertListEvent( bool autoClose, long accountId, const std::list& symbols, @@ -128,12 +135,20 @@ namespace Huobi { const std::function& callback, const std::function& errorHandler); - WebSocketRequest* requestOrdertDetailEvent( + WebSocketRequest * requestOrdertDetailEvent( bool autoClose, long orderId, const std::function& callback, const std::function& errorHandler); + WebSocketRequest* requestMarketDepthMBPEvent( + bool autoClose, + const std::list& symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler); + + }; diff --git a/src/WebSocketConnection.cpp b/src/WebSocketConnection.cpp index 517a3ed..cfe6327 100644 --- a/src/WebSocketConnection.cpp +++ b/src/WebSocketConnection.cpp @@ -140,7 +140,7 @@ namespace Huobi { } void WebSocketConnection::onMessage(const char* message) { - lwsl_user("RX: %s \n", message); + lwsl_user("RX: %s \n", message); lastReceivedTime = TimeService::getCurrentTimeStamp(); JsonDocument doc; @@ -276,15 +276,19 @@ namespace Huobi { Logger::WriteLog("[Sub][%d] Disconnected", connectionId); connectStatus = ConnectionStatus::CLOSED; client = nullptr; - + // close(); } void WebSocketConnection::close() { Logger::WriteLog("[Sub][%d] Closing normally", connectionId); lwsl_user("Closing normally \n"); + lws_set_timeout(client, PENDING_TIMEOUT_KILLED_BY_PARENT, LWS_TO_KILL_ASYNC); + // lwsl_user("Closing normally 1\n"); lineStatus = LineStatus::LINE_IDEL; + //lwsl_user("Closing normally 2\n"); dog->onClosedNormally(this); + // lwsl_user("Closing normally 3\n"); } } diff --git a/src/WsRequestClientImpl.cpp b/src/WsRequestClientImpl.cpp index 0fb7323..14c542a 100644 --- a/src/WsRequestClientImpl.cpp +++ b/src/WsRequestClientImpl.cpp @@ -42,8 +42,8 @@ namespace Huobi { long endTime, const std::function&) >& callback, const std::function& errorHandler) { - WebSocketRequest* req = impl->requestCandlestickEvent(autoClose, symbols, interval, startTime, endTime, callback, errorHandler); - impl->startReq(req); + WebSocketRequest* req = impl->requestCandlestickEvent(autoClose, symbols, interval, startTime, endTime, callback, errorHandler); + } void WsRequestClientImpl::requestPriceDepthEvent( @@ -68,7 +68,7 @@ namespace Huobi { const char* symbols, const std::function& callback, const std::function& errorHandler) { - + requestPriceDepthEvent(true, symbols, DepthStep::step0, callback, errorHandler); } @@ -77,7 +77,7 @@ namespace Huobi { const char* symbols, const std::function& callback, const std::function& errorHandler) { - + requestPriceDepthEvent(autoClose, symbols, DepthStep::step0, callback, errorHandler); } @@ -85,9 +85,9 @@ namespace Huobi { const char* symbols, const std::function& callback, const std::function& errorHandler) { - - requestTradeEvent(true, symbols, callback, errorHandler); - + + requestTradeEvent(true, symbols, callback, errorHandler); + } void WsRequestClientImpl::requestTradeEvent( @@ -103,7 +103,7 @@ namespace Huobi { const char* symbols, const std::function& callback, const std::function& errorHandler) { - + request24HTradeStatistics(true, symbols, callback, errorHandler); } @@ -162,5 +162,22 @@ namespace Huobi { impl->startReq(request); } + void WsRequestClientImpl::requestMarketDepthMBPEvent( + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler) { + requestMarketDepthMBPEvent(true, symbols, level, callback, errorHandler); + } + + void WsRequestClientImpl::requestMarketDepthMBPEvent( + bool autoClose, + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler) { + WebSocketRequest* request = impl->requestMarketDepthMBPEvent(autoClose, symbols, level, callback, errorHandler); + impl->startReq(request); + } } \ No newline at end of file diff --git a/src/WsRequestClientImpl.h b/src/WsRequestClientImpl.h index 4705d5e..be5828e 100644 --- a/src/WsRequestClientImpl.h +++ b/src/WsRequestClientImpl.h @@ -164,6 +164,18 @@ namespace Huobi { const std::function& callback, const std::function& errorHandler) override; + void requestMarketDepthMBPEvent( + bool autoClose, + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler) override; + + void requestMarketDepthMBPEvent( + const char* symbols, + MBPLevel level, + const std::function& callback, + const std::function& errorHandler) override; }; } diff --git a/unittest/TestApplyLoan.h b/unittest/TestApplyLoan.h index df3b21b..abbcb57 100644 --- a/unittest/TestApplyLoan.h +++ b/unittest/TestApplyLoan.h @@ -31,8 +31,7 @@ using namespace Huobi; TEST(TestApplyLoan, Request) { RestApiImpl* impl = new RestApiImpl("12345", "67890"); - - auto request = impl->applyLoan("btcusdt", "btc", Decimal("1.1")); + auto request = impl->applyLoan("btcusdt", "btc", Decimal("1.1")); ASSERT_TRUE(request->getUrl().find("/v1/margin/orders") != -1); ASSERT_EQ("POST", request->method); JsonDocument doc; @@ -43,11 +42,11 @@ TEST(TestApplyLoan, Request) { } TEST(TestApplyLoan, Result_Normal) { - std::string data = "{\n" - " \"status\": \"ok\",\n" - " \"data\": 1000\n" - "}"; - + std::string data = "{\n" + " \"status\": \"ok\",\n" + " \"data\": 1000\n" + "}"; + RestApiImpl* impl = new RestApiImpl("12345", "67890"); auto request = impl->applyLoan("btcusdt", "btc", Decimal("1.1")); JsonWrapper json = JsonDocument().parseFromString(data.c_str()); diff --git a/unittest/TestDecimal.h b/unittest/TestDecimal.h index bc32675..8ed90c2 100644 --- a/unittest/TestDecimal.h +++ b/unittest/TestDecimal.h @@ -76,8 +76,6 @@ TEST(TestDecimal, Div) { Decimal b("456.123"); ASSERT_EQ(Decimal("0.2706638340973816"), a / b); a /= b; - printf("!!!!!"); - printf(a.toString().c_str()); ASSERT_EQ(Decimal("0.2706638340973816"), a); } { diff --git a/unittest/TestGet24HTradeStatistics.h b/unittest/TestGet24HTradeStatistics.h index 6901145..cab669a 100644 --- a/unittest/TestGet24HTradeStatistics.h +++ b/unittest/TestGet24HTradeStatistics.h @@ -54,7 +54,7 @@ TEST(TestGet24HTradeStatistics, Result) { JsonWrapper json = JsonDocument().parseFromString(data); auto result = request->jsonParser(json); ASSERT_EQ(Decimal("224419.35108158883"), result.amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550224944129l), result.timestamp); + ASSERT_EQ(1550224944129, result.timestamp); ASSERT_EQ(Decimal("121.97"), result.close); ASSERT_EQ(Decimal("123.42"), result.high); ASSERT_EQ(Decimal("120.25"), result.low); diff --git a/unittest/TestGetCandlestick.h b/unittest/TestGetCandlestick.h index 17c1d78..ee3dec4 100644 --- a/unittest/TestGetCandlestick.h +++ b/unittest/TestGetCandlestick.h @@ -78,7 +78,7 @@ TEST(TestGetCandlestick, result) { JsonWrapper json = JsonDocument().parseFromString(data.c_str()); auto candlestickList = request->jsonParser(json); ASSERT_EQ(2, candlestickList.size()); - ASSERT_EQ(1550131200000, candlestickList[0].timestamp); + ASSERT_EQ(1550160000, candlestickList[0].timestamp); ASSERT_EQ(Decimal(3600.77), candlestickList[0].open); ASSERT_EQ(Decimal(3602.38), candlestickList[0].close); ASSERT_EQ(Decimal(3575), candlestickList[0].low); diff --git a/unittest/TestGetCurrentUserAllAccounts.h b/unittest/TestGetCurrentUserAllAccounts.h index 45baafc..12a6d4b 100644 --- a/unittest/TestGetCurrentUserAllAccounts.h +++ b/unittest/TestGetCurrentUserAllAccounts.h @@ -59,7 +59,6 @@ TEST(TestGetCurrentUserAllAccounts, Result) { ASSERT_EQ("eos", subAccounts[0].currency); ASSERT_EQ("btc", subAccounts[1].currency); ASSERT_EQ("usdt", subAccounts[2].currency); - printf(subAccounts[0].balance.toString().c_str()); ASSERT_EQ(Decimal("1954559.8095"), subAccounts[0].balance); ASSERT_EQ(Decimal("0"), subAccounts[1].balance); ASSERT_EQ(Decimal("2925209.4113"), subAccounts[2].balance); diff --git a/unittest/TestGetDepositHistory.h b/unittest/TestGetDepositHistory.h index 5ba4079..4ebc5c9 100644 --- a/unittest/TestGetDepositHistory.h +++ b/unittest/TestGetDepositHistory.h @@ -54,6 +54,7 @@ TEST(TestGetDepositHistory, Result) { " \"address-tag\": \"100040\",\n" " \"fee\": 345,\n" " \"state\": \"confirmed\",\n" + " \"chain\": \"btc\",\n" " \"created-at\": 1510912472199,\n" " \"updated-at\": 1511145876575\n" " }\n" @@ -71,8 +72,8 @@ TEST(TestGetDepositHistory, Result) { auto withdrawDepositList = request->jsonParser(json); ASSERT_EQ(Decimal("345"), withdrawDepositList[0].fee); ASSERT_EQ(1171l, withdrawDepositList[0].id); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1510912472199l), withdrawDepositList[0].createdTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1511145876575l), withdrawDepositList[0].updatedTimestamp); + ASSERT_EQ(1510912472199, withdrawDepositList[0].createdTimestamp); + ASSERT_EQ(1511145876575, withdrawDepositList[0].updatedTimestamp); ASSERT_EQ(Decimal("7.457467"), withdrawDepositList[0].amount); ASSERT_EQ("rae93V8d2mdoUQHwBDBdM4NHCMehRJAsbm", withdrawDepositList[0].address); ASSERT_EQ("100040", withdrawDepositList[0].addressTag); diff --git a/unittest/TestGetETFCandlestick.h b/unittest/TestGetETFCandlestick.h index 44b7da6..4d14cbe 100644 --- a/unittest/TestGetETFCandlestick.h +++ b/unittest/TestGetETFCandlestick.h @@ -72,7 +72,7 @@ TEST(TestGetETFCandlestick, Result) { JsonWrapper json = JsonDocument().parseFromString(data); auto candlestickList = request->jsonParser(json); ASSERT_EQ(1, candlestickList.size()); - ASSERT_EQ(TimeService::convertCSTInSecondToUTC(1499184000l), candlestickList[0].timestamp); + ASSERT_EQ(1499184000, candlestickList[0].timestamp); ASSERT_EQ(Decimal("0.7694"), candlestickList[0].high); ASSERT_EQ(Decimal("0.769"), candlestickList[0].low); ASSERT_EQ(Decimal("0.7794"), candlestickList[0].open); diff --git a/unittest/TestGetExchangeTimestamp.h b/unittest/TestGetExchangeTimestamp.h index 36e2acd..a87ca39 100644 --- a/unittest/TestGetExchangeTimestamp.h +++ b/unittest/TestGetExchangeTimestamp.h @@ -36,7 +36,7 @@ TEST(TestGetExchangeTimestamp, test) { ASSERT_TRUE(request->getUrl().find("/v1/common/timestamp")); JsonWrapper json = JsonDocument().parseFromString(data); auto result = request->jsonParser(json); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1494900087029l), result); + ASSERT_EQ(1494900087029, result); } #endif /* TESTGETEXCHANGETIMESTAMP_H */ diff --git a/unittest/TestGetHistoricalTrade.h b/unittest/TestGetHistoricalTrade.h index 6ac1c07..ff0c287 100644 --- a/unittest/TestGetHistoricalTrade.h +++ b/unittest/TestGetHistoricalTrade.h @@ -46,45 +46,48 @@ TEST(TestGetHistoricalTrade, InvaildSymbol) { TEST(TestGetHistoricalTrade, Result) { std::string data = "{\n" - " \"status\": \"ok\",\n" - " \"ch\": \"market.ethusdt.trade.detail\",\n" - " \"ts\": 1550222502992,\n" - " \"data\": [\n" - " {\n" - " \"id\": 100416958491,\n" - " \"ts\": 1550222502562,\n" - " \"data\": [\n" - " {\n" - " \"amount\": 0.007100000000000000,\n" - " \"ts\": 1550222502562,\n" - " \"id\": 10041695849124569905216,\n" - " \"price\": 122.180000000000000000,\n" - " \"direction\": \"sell\"\n" - " }\n" - " ]\n" - " },\n" - " {\n" - " \"id\": 100416958394,\n" - " \"ts\": 1550222501237,\n" - " \"data\": [\n" - " {\n" - " \"amount\": 0.489300000000000000,\n" - " \"ts\": 1550222501237,\n" - " \"id\": 10041695839424569907865,\n" - " \"price\": 122.160000000000000000,\n" - " \"direction\": \"sell\"\n" - " },\n" - " {\n" - " \"amount\": 0.735400000000000000,\n" - " \"ts\": 1551233842487,\n" - " \"id\": 10041773949425560687111,\n" - " \"price\": 3804.000000000000000000,\n" - " \"direction\": \"buy\"\n" - " }" - " ]\n" - " }\n" - " ]\n" - "}"; + " \"status\": \"ok\",\n" + " \"ch\": \"market.ethusdt.trade.detail\",\n" + " \"ts\": 1550222502992,\n" + " \"data\": [\n" + " {\n" + " \"id\": 100416958491,\n" + " \"ts\": 1550222502562,\n" + " \"data\": [\n" + " {\n" + " \"amount\": 0.007100000000000000,\n" + " \"ts\": 1550222502562,\n" + " \"id\": 10041695849124569905216,\n" + " \"trade-id\": 10041695849124569905216,\n" + " \"price\": 122.180000000000000000,\n" + " \"direction\": \"sell\"\n" + " }\n" + " ]\n" + " },\n" + " {\n" + " \"id\": 100416958394,\n" + " \"ts\": 1550222501237,\n" + " \"data\": [\n" + " {\n" + " \"amount\": 0.489300000000000000,\n" + " \"ts\": 1550222501237,\n" + " \"id\": 10041695839424569907865,\n" + " \"trade-id\": 10041695849124569905216,\n" + " \"price\": 122.160000000000000000,\n" + " \"direction\": \"sell\"\n" + " },\n" + " {\n" + " \"amount\": 0.735400000000000000,\n" + " \"ts\": 1551233842487,\n" + " \"id\": 10041773949425560687111,\n" + " \"trade-id\": 10041695849124569905216,\n" + " \"price\": 3804.000000000000000000,\n" + " \"direction\": \"buy\"\n" + " }" + " ]\n" + " }\n" + " ]\n" + "}"; RestApiImpl* impl = new RestApiImpl(); auto request = impl->getHistoricalTrade("btcusdt", "hh", 2); JsonWrapper json = JsonDocument().parseFromString(data); @@ -92,7 +95,7 @@ TEST(TestGetHistoricalTrade, Result) { ASSERT_EQ(3, tradeList.size()); ASSERT_EQ(Decimal("122.18"), tradeList[0].price); ASSERT_EQ(Decimal("0.0071"), tradeList[0].amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550222502562), tradeList[0].timestamp); + ASSERT_EQ(1550222502562, tradeList[0].timestamp); ASSERT_EQ("10041695849124569905216", tradeList[0].tradeId); ASSERT_EQ(TradeDirection::sell, tradeList[0].direction); } diff --git a/unittest/TestGetHistoryOrders.h b/unittest/TestGetHistoryOrders.h index d1ad8cc..38286a8 100644 --- a/unittest/TestGetHistoryOrders.h +++ b/unittest/TestGetHistoryOrders.h @@ -99,11 +99,11 @@ TEST(TestGetHistoryOrders, result) { auto orders = request->jsonParser(json); ASSERT_EQ(2, orders.size()); - ASSERT_EQ(24965104183l, orders[0].orderId); + ASSERT_EQ(24965104183, orders[0].orderId); ASSERT_EQ(AccountType::spot, orders[0].accountType); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550630155568l),orders[0].canceledTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550630155647l),orders[0].finishedTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550630155350l),orders[0].createdTimestamp); + ASSERT_EQ(1550630155568,orders[0].canceledTimestamp); + ASSERT_EQ(1550630155647,orders[0].finishedTimestamp); + ASSERT_EQ(1550630155350,orders[0].createdTimestamp); ASSERT_EQ(Decimal("0.0888"), orders[0].filledAmount); ASSERT_EQ(Decimal("0.011"), orders[0].filledCashAmount); ASSERT_EQ(Decimal("0.03445"), orders[0].filledFees); diff --git a/unittest/TestGetLoanHistory.h b/unittest/TestGetLoanHistory.h index e3366e1..75a7cc1 100644 --- a/unittest/TestGetLoanHistory.h +++ b/unittest/TestGetLoanHistory.h @@ -56,39 +56,49 @@ TEST(TestGetLoanHistory, request2) { TEST(TestGetLoanHistory, result) { std::string data = "{\n" - "\t\"status\": \"ok\",\n" - "\t\"data\": [{\n" - "\t\t\t\"loan-balance\": \"0.100000000000000000\",\n" - "\t\t\t\"interest-balance\": \"0.000200000000000000\",\n" - "\t\t\t\"interest-rate\": \"0.002000000000000000\",\n" - "\t\t\t\"loan-amount\": \"0.110000000000000000\",\n" - "\t\t\t\"accrued-at\": 1511169724000,\n" - "\t\t\t\"interest-amount\": \"0.001200000000000000\",\n" - "\t\t\t\"symbol\": \"ethbtc\",\n" - "\t\t\t\"currency\": \"btc\",\n" - "\t\t\t\"id\": 390,\n" - "\t\t\t\"state\": \"accrual\",\n" - "\t\t\t\"account-id\": 12345,\n" - "\t\t\t\"user-id\": 119910,\n" - "\t\t\t\"created-at\": 1511169724530\n" - "\t\t},\n" - "\t\t{\n" - "\t\t\t\"loan-balance\": \"1.100000000000000000\",\n" - "\t\t\t\"interest-balance\": \"1.000200000000000000\",\n" - "\t\t\t\"interest-rate\": \"1.002000000000000000\",\n" - "\t\t\t\"loan-amount\": \"1.110000000000000000\",\n" - "\t\t\t\"accrued-at\": 1511169724531,\n" - "\t\t\t\"interest-amount\": \"1.001200000000000000\",\n" - "\t\t\t\"symbol\": \"ethbtc\",\n" - "\t\t\t\"currency\": \"btc\",\n" - "\t\t\t\"id\": 391,\n" - "\t\t\t\"state\": \"accrual\",\n" - "\t\t\t\"account-id\": 45678,\n" - "\t\t\t\"user-id\": 119911,\n" - "\t\t\t\"created-at\": 1511169724531\n" - "\t\t}\n" - "\t]\n" - "}"; + "\t\"status\": \"ok\",\n" + "\t\"data\": [{\n" + "\t\t\t\"loan-balance\": \"0.100000000000000000\",\n" + "\t\t\t\"interest-balance\": \"0.000200000000000000\",\n" + "\t\t\t\"interest-rate\": \"0.002000000000000000\",\n" + "\t\t\t\"loan-amount\": \"0.110000000000000000\",\n" + "\t\t\t\"accrued-at\": 1511169724000,\n" + "\t\t\t\"interest-amount\": \"0.001200000000000000\",\n" + "\t\t\t\"symbol\": \"ethbtc\",\n" + "\t\t\t\"currency\": \"btc\",\n" + "\t\t\t\"id\": 390,\n" + "\t\t\t\"state\": \"accrual\",\n" + "\t\t\t\"account-id\": 12345,\n" + "\t\t\t\"user-id\": 119910,\n" + "\t\t\t\"paid-point\": \"0.100000000000000000\",\n" + "\t\t\t\"paid-coin\": \"0.100000000000000000\",\n" + "\t\t\t\"deduct-currency\": \"ht\",\n" + "\t\t\t\"deduct-amount\": \"0.100000000000000000\",\n" + "\t\t\t\"deduct-rate\": \"0.100000000000000000\",\n" + "\t\t\t\"created-at\": 1511169724530\n" + "\t\t},\n" + "\t\t{\n" + "\t\t\t\"loan-balance\": \"1.100000000000000000\",\n" + "\t\t\t\"interest-balance\": \"1.000200000000000000\",\n" + "\t\t\t\"interest-rate\": \"1.002000000000000000\",\n" + "\t\t\t\"loan-amount\": \"1.110000000000000000\",\n" + "\t\t\t\"accrued-at\": 1511169724531,\n" + "\t\t\t\"interest-amount\": \"1.001200000000000000\",\n" + "\t\t\t\"symbol\": \"ethbtc\",\n" + "\t\t\t\"currency\": \"btc\",\n" + "\t\t\t\"id\": 391,\n" + "\t\t\t\"state\": \"accrual\",\n" + "\t\t\t\"account-id\": 45678,\n" + "\t\t\t\"user-id\": 119911,\n" + "\t\t\t\"paid-point\": \"0.100000000000000000\",\n" + "\t\t\t\"paid-coin\": \"0.100000000000000000\",\n" + "\t\t\t\"deduct-currency\": \"ht\",\n" + "\t\t\t\"deduct-amount\": \"0.100000000000000000\",\n" + "\t\t\t\"deduct-rate\": \"0.100000000000000000\",\n" + "\t\t\t\"created-at\": 1511169724531\n" + "\t\t}\n" + "\t]\n" + "}"; RestApiImpl* impl = new RestApiImpl("12345", "67890"); LoanOrderRequest req = LoanOrderRequest("btcusdt"); @@ -107,8 +117,8 @@ TEST(TestGetLoanHistory, result) { ASSERT_EQ(LoanOrderStates::accrual, loan[0].state); ASSERT_EQ(AccountType::spot, loan[0].accountType); ASSERT_EQ(119910L, loan[0].userId); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1511169724000l), loan[0].accruedTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1511169724530l), loan[0].createdTimestamp); + ASSERT_EQ(1511169724000, loan[0].accruedTimestamp); + ASSERT_EQ(1511169724530, loan[0].createdTimestamp); ASSERT_EQ(Decimal("1.1"), loan[1].loanBalance); ASSERT_EQ(Decimal("1.0002"), loan[1].interestBalance); @@ -120,8 +130,8 @@ TEST(TestGetLoanHistory, result) { ASSERT_EQ(LoanOrderStates::accrual, loan[1].state); ASSERT_EQ(AccountType::margin, loan[1].accountType); ASSERT_EQ(119911L, loan[1].userId); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1511169724531l), loan[1].accruedTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1511169724531l), loan[1].createdTimestamp); + ASSERT_EQ(1511169724531, loan[1].accruedTimestamp); + ASSERT_EQ(1511169724531, loan[1].createdTimestamp); } #endif /* TESTGETLOANHISTORY_H */ diff --git a/unittest/TestGetMarketTrade.h b/unittest/TestGetMarketTrade.h index f030469..075d1e8 100644 --- a/unittest/TestGetMarketTrade.h +++ b/unittest/TestGetMarketTrade.h @@ -51,6 +51,7 @@ TEST(TestGetMarketTrade, Result) { " \"amount\": 0.149500000000000000,\n" " \"ts\": 1568773104358,\n" " \"id\": 10217902064148516568498,\n" + " \"trade-id\": 10217902064148516568498,\n" " \"price\": 212.230000000000000000,\n" " \"direction\": \"sell\"\n" " }\n" @@ -63,9 +64,9 @@ TEST(TestGetMarketTrade, Result) { auto trade = request->jsonParser(json); ASSERT_EQ(Decimal("212.23"), trade.price); ASSERT_EQ(Decimal("0.1495"), trade.amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1568773104358), trade.timestamp); + ASSERT_EQ(1568773104358, trade.timestamp); ASSERT_EQ("10217902064148516568498", trade.tradeId); - ASSERT_EQ(TradeDirection::sell, trade.direction); + ASSERT_EQ(TradeDirection::sell, trade.direction); } #endif /* TESTGETMARKETTRADE_H */ diff --git a/unittest/TestGetMatchResult.h b/unittest/TestGetMatchResult.h index 3c362fe..7a80298 100644 --- a/unittest/TestGetMatchResult.h +++ b/unittest/TestGetMatchResult.h @@ -27,7 +27,6 @@ using namespace Huobi; TEST(TestGetMatchResult, request) { RestApiImpl* impl = new RestApiImpl("12345", "67890"); auto request = impl->getMatchResults("htbtc", 24966984923l); - printf(request->getUrl().c_str()); ASSERT_TRUE(request->getUrl().find("/v1/order/orders/24966984923/matchresults") != -1); ASSERT_EQ("GET", request->method); ASSERT_TRUE(request->getUrl().find("Signature") != -1); @@ -82,10 +81,10 @@ TEST(TestGetMatchResult, result) { auto request = impl->getMatchResults("htbtc", 24966984923l); JsonWrapper json = JsonDocument().parseFromString(data); auto matchResults = request->jsonParser(json); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550632074577l), matchResults[0].createdTimestamp); - ASSERT_EQ(4191225853l, matchResults[0].id); - ASSERT_EQ(100047251154l, matchResults[0].matchId); - ASSERT_EQ(24966984923l, matchResults[0].orderId); + ASSERT_EQ(1550632074577, matchResults[0].createdTimestamp); + ASSERT_EQ(4191225853, matchResults[0].id); + ASSERT_EQ(100047251154, matchResults[0].matchId); + ASSERT_EQ(24966984923, matchResults[0].orderId); ASSERT_EQ(Decimal("1"), matchResults[0].filledAmount); ASSERT_EQ(Decimal("0.00000061508"), matchResults[0].filledFeeds); ASSERT_EQ(Decimal("0.00030754"), matchResults[0].price); diff --git a/unittest/TestGetMatchResults.h b/unittest/TestGetMatchResults.h index 7e9a9f6..4b7b352 100644 --- a/unittest/TestGetMatchResults.h +++ b/unittest/TestGetMatchResults.h @@ -92,7 +92,7 @@ TEST(TestGetMatchResults, result) { auto request = impl->getMatchResults(req); JsonWrapper json = JsonDocument().parseFromString(data); auto matchResults = request->jsonParser(json); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550632074577), matchResults[1].createdTimestamp); + ASSERT_EQ(1550632074577, matchResults[1].createdTimestamp); ASSERT_EQ(4191225853L, matchResults[1].id); ASSERT_EQ(100047251154l, matchResults[1].matchId); ASSERT_EQ(24966984923l, matchResults[1].orderId); diff --git a/unittest/TestGetOrderByClientOrderId.h b/unittest/TestGetOrderByClientOrderId.h index 2d9c61f..0d66e37 100644 --- a/unittest/TestGetOrderByClientOrderId.h +++ b/unittest/TestGetOrderByClientOrderId.h @@ -58,9 +58,9 @@ TEST(TestGetOrderByClientOrderId, result) { ASSERT_EQ(59378l, order.orderId); ASSERT_EQ(AccountType::spot, order.accountType); ASSERT_EQ(Decimal("10.1000000000"), order.amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1494901162595l), order.createdTimestamp); + ASSERT_EQ(1494901162595l, order.createdTimestamp); ASSERT_EQ(0l, order.canceledTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1494901400468l), order.finishedTimestamp); + ASSERT_EQ(1494901400468l, order.finishedTimestamp); ASSERT_EQ(Decimal("10.1000000000"), order.filledAmount); ASSERT_EQ(Decimal("1011.0100000000"), order.filledCashAmount); ASSERT_EQ(Decimal("0.0202000000"), order.filledFees); diff --git a/unittest/TestGetOrderHistory.h b/unittest/TestGetOrderHistory.h index ebc3d83..31e8f1d 100644 --- a/unittest/TestGetOrderHistory.h +++ b/unittest/TestGetOrderHistory.h @@ -83,9 +83,9 @@ TEST(TestGetOrderHistory, result) { ASSERT_EQ(2, orders.size()); ASSERT_EQ(24965104183l, orders[0].orderId); ASSERT_EQ(AccountType::spot, orders[0].accountType); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550630155568l), orders[0].canceledTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550630155647l), orders[0].finishedTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550630155350l), orders[0].createdTimestamp); + ASSERT_EQ(1550630155568l, orders[0].canceledTimestamp); + ASSERT_EQ(1550630155647l, orders[0].finishedTimestamp); + ASSERT_EQ(1550630155350l, orders[0].createdTimestamp); ASSERT_EQ(Decimal("0.0888"), orders[0].filledAmount); ASSERT_EQ(Decimal("0.011"), orders[0].filledCashAmount); ASSERT_EQ(Decimal("0.03445"), orders[0].filledFees); diff --git a/unittest/TestGetWithdrawHistory.h b/unittest/TestGetWithdrawHistory.h index baa012d..2b1f7d2 100644 --- a/unittest/TestGetWithdrawHistory.h +++ b/unittest/TestGetWithdrawHistory.h @@ -64,6 +64,7 @@ TEST(TestGetWithdrawHistory, Result_Normal) { " \"address-tag\": \"100040\",\n" " \"fee\": 345,\n" " \"state\": \"confirmed\",\n" + " \"chain\": \"btc\",\n" " \"created-at\": 1510912472199,\n" " \"updated-at\": 1511145876575\n" " }\n" @@ -79,8 +80,8 @@ TEST(TestGetWithdrawHistory, Result_Normal) { auto withdrawList = request->jsonParser(json); ASSERT_EQ(Decimal("345"), withdrawList[0].fee); ASSERT_EQ(1171l, withdrawList[0].id); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1510912472199l), withdrawList[0].createdTimestamp); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1511145876575l), withdrawList[0].updatedTimestamp); + ASSERT_EQ(1510912472199l, withdrawList[0].createdTimestamp); + ASSERT_EQ(1511145876575l, withdrawList[0].updatedTimestamp); ASSERT_EQ(Decimal("7.457467"), withdrawList[0].amount); ASSERT_EQ("rae93V8d2mdoUQHwBDBdM4NHCMehRJAsbm", withdrawList[0].address); ASSERT_EQ("100040", withdrawList[0].addressTag); diff --git a/unittest/TestRequest24HTradeStatistics.h b/unittest/TestRequest24HTradeStatistics.h index 8293f89..7ab451e 100644 --- a/unittest/TestRequest24HTradeStatistics.h +++ b/unittest/TestRequest24HTradeStatistics.h @@ -63,7 +63,7 @@ TEST(TestRequest24HTradeStatistics, Receive_Normal) { JsonWrapper json = doc.parseFromString(data.c_str()); auto result = request->JsonParser(json); ASSERT_EQ(Decimal("224419.35108158883"), result.tradeStatistics.amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550224944129l), result.timestamp); + ASSERT_EQ(1550224944129, result.timestamp); ASSERT_EQ(Decimal("121.97"), result.tradeStatistics.close); ASSERT_EQ(Decimal("123.42"), result.tradeStatistics.high); ASSERT_EQ(Decimal("120.25"), result.tradeStatistics.low); diff --git a/unittest/TestRequestAccountList.h b/unittest/TestRequestAccountList.h index 16654e2..6b4c8bd 100644 --- a/unittest/TestRequestAccountList.h +++ b/unittest/TestRequestAccountList.h @@ -70,7 +70,7 @@ TEST(TestRequestAccountList, Receive_Normal) { JsonWrapper json = doc.parseFromString(data.c_str()); auto result = request->JsonParser(json); ASSERT_EQ(1, result.accounts.size()); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1569312000230l), result.timestamp); + ASSERT_EQ(1569312000230l, result.timestamp); ASSERT_EQ(AccountType::spot, result.accounts[0].type); ASSERT_EQ(AccountState::working, result.accounts[0].state); ASSERT_EQ(2, result.accounts[0].balances.size()); diff --git a/unittest/TestRequestCandlestickEvent.h b/unittest/TestRequestCandlestickEvent.h index 29ecc16..629473c 100644 --- a/unittest/TestRequestCandlestickEvent.h +++ b/unittest/TestRequestCandlestickEvent.h @@ -65,7 +65,7 @@ TEST(TestRequestCandlestickEvent, Receive_Normal) { JsonWrapper json = doc.parseFromString(data.c_str()); auto events = request->JsonParser(json); ASSERT_EQ("btcusdt", events[0].symbol); - ASSERT_EQ(TimeService::convertCSTInSecondToUTC(1569107700l), events[0].timestamp); + ASSERT_EQ(1569107700l, events[0].timestamp); //assertEquals(100359274519L, event.getData().getId()); ASSERT_EQ(720l, events[0].data.count); ASSERT_EQ(Decimal("430054.2200384556"), events[0].data.volume); diff --git a/unittest/TestRequestOrdertDetailEvent.h b/unittest/TestRequestOrdertDetailEvent.h index 21cc408..99c9f47 100644 --- a/unittest/TestRequestOrdertDetailEvent.h +++ b/unittest/TestRequestOrdertDetailEvent.h @@ -66,7 +66,7 @@ TEST(TestRequestOrdertDetailEvent, Receive_Normal) { JsonDocument doc; JsonWrapper json = doc.parseFromString(data.c_str()); auto result = request->JsonParser(json); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1569404819598l), result.timestamp); + ASSERT_EQ(1569404819598l, result.timestamp); ASSERT_EQ(Decimal("1"), result.order.amount); ASSERT_EQ(Decimal("3.7858"), result.order.price); diff --git a/unittest/TestRequestOrdertListEvent.h b/unittest/TestRequestOrdertListEvent.h index c256c16..cac3294 100644 --- a/unittest/TestRequestOrdertListEvent.h +++ b/unittest/TestRequestOrdertListEvent.h @@ -90,7 +90,7 @@ TEST(TestRequestOrdertListEvent, Receive_Normal) { JsonWrapper json = doc.parseFromString(data.c_str()); auto result = request->JsonParser(json); ASSERT_EQ(2, result.orders.size()); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1569397755035l), result.timestamp); + ASSERT_EQ(1569397755035l, result.timestamp); ASSERT_EQ(Decimal("1"), result.orders[0].amount); ASSERT_EQ(Decimal("3.7858"), result.orders[0].price); diff --git a/unittest/TestRequestPriceDepthEvent.h b/unittest/TestRequestPriceDepthEvent.h index 43ed22d..a0bca2d 100644 --- a/unittest/TestRequestPriceDepthEvent.h +++ b/unittest/TestRequestPriceDepthEvent.h @@ -62,7 +62,7 @@ TEST(TestRequestPriceDepthEvent, Receive_Normal) { JsonWrapper json = doc.parseFromString(data.c_str()); auto event = request->JsonParser(json); ASSERT_EQ("btcusdt", event.symbol); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550558788054l), event.timestamp); + ASSERT_EQ(1550558788054l, event.timestamp); ASSERT_EQ(3, event.data.bids.size()); ASSERT_EQ(2, event.data.asks.size()); ASSERT_EQ(Decimal("3891.94"), event.data.bids[0].price); diff --git a/unittest/TestRequestTradeEvent.h b/unittest/TestRequestTradeEvent.h index 96648c9..b059432 100644 --- a/unittest/TestRequestTradeEvent.h +++ b/unittest/TestRequestTradeEvent.h @@ -45,12 +45,14 @@ TEST(TestRequestTradeEvent, Receive_Normal) { "\t\t\t\"amount\": 0.001000000000000000,\n" "\t\t\t\"ts\": 1550558574684,\n" "\t\t\t\"id\": 10033544262424890651900,\n" + "\t\t\t\"tradeId\": 10033544262424890651183,\n" "\t\t\t\"price\": 3892.360000000000000000,\n" "\t\t\t\"direction\": \"sell\"\n" "\t\t}, {\n" "\t\t\t\"amount\": 0.051200000000000000,\n" "\t\t\t\"ts\": 1550558574684,\n" "\t\t\t\"id\": 10033544262424890651183,\n" + "\t\t\t\"tradeId\": 10033544262424890651183,\n" "\t\t\t\"price\": 3892.350000000000000000,\n" "\t\t\t\"direction\": \"buy\"\n" "\t\t}]\n" @@ -65,14 +67,14 @@ TEST(TestRequestTradeEvent, Receive_Normal) { auto event = request->JsonParser(json); ASSERT_EQ("btcusdt", event.symbol); ASSERT_EQ(2, event.tradeList.size()); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550558574702l), event.timestamp); + ASSERT_EQ(1550558574702l, event.timestamp); ASSERT_EQ(Decimal("0.001"), event.tradeList[0].amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550558574684l), event.tradeList[0].timestamp); + ASSERT_EQ(1550558574684l, event.tradeList[0].timestamp); ASSERT_EQ("10033544262424890651900", event.tradeList[0].tradeId); ASSERT_EQ(Decimal("3892.36"), event.tradeList[0].price); ASSERT_EQ(TradeDirection::sell, event.tradeList[0].direction); ASSERT_EQ(Decimal("0.0512"), event.tradeList[1].amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550558574684l), event.tradeList[1].timestamp); + ASSERT_EQ(1550558574684l, event.tradeList[1].timestamp); ASSERT_EQ("10033544262424890651183", event.tradeList[1].tradeId); ASSERT_EQ(Decimal("3892.35"), event.tradeList[1].price); ASSERT_EQ(TradeDirection::buy, event.tradeList[1].direction); diff --git a/unittest/TestSubTradeStatistics.h b/unittest/TestSubTradeStatistics.h index e8f99e9..57c0829 100644 --- a/unittest/TestSubTradeStatistics.h +++ b/unittest/TestSubTradeStatistics.h @@ -62,7 +62,8 @@ TEST(TestSubTradeStatistics, Receive_Normal) { JsonWrapper json = doc.parseFromString(data.c_str()); auto event = request->JsonParser(json); ASSERT_EQ("btcusdt", event.symbol); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550740513421l), event.timestamp); + printf("%ld\n",event.timestamp); + ASSERT_EQ(1550740513421, event.timestamp); //assertEquals(100359274519L, event.getData().getId()); ASSERT_EQ(204966l, event.tradeStatistics.count); ASSERT_EQ(Decimal("115320213.26007387"), event.tradeStatistics.volume); diff --git a/unittest/TestSubscribeAccountEvent.h b/unittest/TestSubscribeAccountEvent.h index 43543c2..ef8017e 100644 --- a/unittest/TestSubscribeAccountEvent.h +++ b/unittest/TestSubscribeAccountEvent.h @@ -55,7 +55,7 @@ TEST(TestSubscribeAccountEvent,Receive_Normal) { JsonDocument doc; JsonWrapper json = doc.parseFromString(data.c_str()); auto event = request->JsonParser(json); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550556381242l), event.timestamp); + ASSERT_EQ(1550556381242, event.timestamp); ASSERT_EQ(1, event.accountChangeList.size()); ASSERT_EQ(AccountChangeType::newOrder, event.changeType); ASSERT_EQ(AccountType::spot, event.accountChangeList[0].accountType); diff --git a/unittest/TestSubscribeMarketBBOEvent.h b/unittest/TestSubscribeMarketBBOEvent.h index 3542aa7..c5d81e2 100644 --- a/unittest/TestSubscribeMarketBBOEvent.h +++ b/unittest/TestSubscribeMarketBBOEvent.h @@ -62,7 +62,7 @@ TEST(TestSubscribeMarketBBOEvent, Receive_Normal) { auto event = request->JsonParser(json); ASSERT_EQ("btcusdt", event.symbol); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1569328928156l), event.timestamp); + ASSERT_EQ(1569328928156l, event.timestamp); ASSERT_EQ(Decimal("9696.6"), event.bbo.askPrice); ASSERT_EQ(Decimal("0.005"), event.bbo.askAmount); ASSERT_EQ(Decimal("0.0003"), event.bbo.bidAmount); diff --git a/unittest/TestSubscribeOrderUpdateEvent.h b/unittest/TestSubscribeOrderUpdateEvent.h index 491f28d..66173a6 100644 --- a/unittest/TestSubscribeOrderUpdateEvent.h +++ b/unittest/TestSubscribeOrderUpdateEvent.h @@ -28,7 +28,8 @@ TEST(TestSubscribeOrderUpdateEvent, request) { WebSocketApiImpl* impl = new WebSocketApiImpl(); std::list symbols; symbols.push_back("btcusdt"); - auto request = impl->subscribeOrderUpdateEvent(symbols,[](const OrderUpdateEvent&){}, nullptr); + auto request = impl->subscribeOrderUpdateEvent(symbols, [](const OrderUpdateEvent&) { + }, nullptr); MockWebsocketConnecttion* websocketConnection = new MockWebsocketConnecttion(request); request->connectionHandler(websocketConnection); std::string subscription = websocketConnection->pop(); @@ -38,45 +39,45 @@ TEST(TestSubscribeOrderUpdateEvent, request) { TEST(TestSubscribeOrderUpdateEvent, Receive_Normal) { std::string data = "{\n" - " \"op\": \"notify\",\n" - " \"topic\": \"orders.btcusdt\",\n" - " \"ts\": 1522856623232,\n" - " \"data\": {\n" - " \"seq-id\": 94984,\n" - " \"order-id\": 2039498445,\n" - " \"symbol\": \"btcusdt\",\n" - " \"account-id\": 12345,\n" - " \"order-amount\": \"5001.000000000000000000\",\n" - " \"order-price\": \"1.662100000000000000\",\n" - " \"created-at\": 1522858623622,\n" - " \"order-type\": \"buy-limit\",\n" - " \"order-source\": \"api\",\n" - " \"order-state\": \"filled\",\n" - " \"role\": \"taker|maker\",\n" - " \"price\": \"1.662100000000000000\",\n" - " \"filled-amount\": \"5000.000000000000000000\",\n" - " \"unfilled-amount\": \"2.000000000000000000\",\n" - " \"filled-cash-amount\": \"8301.357280000000000000\",\n" - " \"filled-fees\": \"8.000000000000000000\"\n" - " }\n" - "}"; + " \"op\": \"notify\",\n" + " \"topic\": \"orders.btcusdt\",\n" + " \"ts\": 1522856623232,\n" + " \"data\": {\n" + " \"seq-id\": 94984,\n" + " \"order-id\": 2039498445,\n" + " \"symbol\": \"btcusdt\",\n" + " \"account-id\": 12345,\n" + " \"order-amount\": \"5001.000000000000000000\",\n" + " \"order-price\": \"1.662100000000000000\",\n" + " \"created-at\": 1522858623622,\n" + " \"order-type\": \"buy-limit\",\n" + " \"order-source\": \"api\",\n" + " \"order-state\": \"filled\",\n" + " \"role\": \"taker|maker\",\n" + " \"price\": \"1.662100000000000000\",\n" + " \"filled-amount\": \"5000.000000000000000000\",\n" + " \"unfilled-amount\": \"2.000000000000000000\",\n" + " \"filled-cash-amount\": \"8301.357280000000000000\",\n" + " \"filled-fees\": \"8.000000000000000000\"\n" + " }\n" + "}"; SubscriptionOptions op; - WebSocketApiImpl* impl = new WebSocketApiImpl("12345","456"); + WebSocketApiImpl* impl = new WebSocketApiImpl("12345", "456"); std::list symbols; symbols.push_back("btcusdt"); - auto request = (WebSocketRequestImpl*)impl->subscribeOrderUpdateEvent(symbols,[](const OrderUpdateEvent&){}, nullptr); + auto request = (WebSocketRequestImpl*)impl->subscribeOrderUpdateEvent(symbols, [](const OrderUpdateEvent&) { + }, nullptr); JsonDocument doc; JsonWrapper json = doc.parseFromString(data.c_str()); auto event = request->JsonParser(json); ASSERT_EQ("btcusdt", event.symbol); - printf(event.data.price.toString().c_str()); ASSERT_EQ(Decimal("1.6621"), event.data.price); ASSERT_EQ(Decimal("5001"), event.data.amount); ASSERT_EQ(Decimal("5000"), event.data.filledAmount); ASSERT_EQ("btcusdt", event.data.symbol); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1522856623232l), event.timestamp); + ASSERT_EQ(1522856623232l, event.timestamp); ASSERT_EQ(AccountType::spot, event.data.accountType); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1522858623622l),event.data.createdTimestamp); + ASSERT_EQ(1522858623622l, event.data.createdTimestamp); ASSERT_EQ(2039498445l, event.data.orderId); ASSERT_EQ(OrderType::buy_limit, event.data.type); ASSERT_EQ(OrderSource::api, event.data.source); diff --git a/unittest/TestSubscribeOrderUpdateNewEvent.h b/unittest/TestSubscribeOrderUpdateNewEvent.h index 692e90b..3044c98 100644 --- a/unittest/TestSubscribeOrderUpdateNewEvent.h +++ b/unittest/TestSubscribeOrderUpdateNewEvent.h @@ -68,11 +68,10 @@ TEST(TestSubscribeOrderUpdateNewEvent, Receive_Normal) { JsonWrapper json = doc.parseFromString(data.c_str()); auto event = request->JsonParser(json); ASSERT_EQ("btcusdt", event.symbol); - printf(event.data.price.toString().c_str()); ASSERT_EQ(Decimal("1.6621"), event.data.price); ASSERT_EQ(Decimal("5000"), event.data.filledAmount); ASSERT_EQ("btcusdt", event.data.symbol); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1522856623232l), event.timestamp); + ASSERT_EQ(1522856623232l, event.timestamp); ASSERT_EQ(2039498445l, event.data.orderId); ASSERT_EQ(OrderType::buy_limit, event.data.type); ASSERT_EQ(Decimal("8301.35728"), event.data.filledCashAmount); diff --git a/unittest/TestSubscribePriceDepthEvent.h b/unittest/TestSubscribePriceDepthEvent.h index b2a0adc..961eb7a 100644 --- a/unittest/TestSubscribePriceDepthEvent.h +++ b/unittest/TestSubscribePriceDepthEvent.h @@ -63,7 +63,7 @@ TEST(TestSubscribePriceDepthEvent, Receive_Normal) { JsonWrapper json = doc.parseFromString(data.c_str()); auto event = request->JsonParser(json); ASSERT_EQ("btcusdt", event.symbol); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550558788054l), event.timestamp); + ASSERT_EQ(1550558788054l, event.timestamp); ASSERT_EQ(3, event.data.bids.size()); ASSERT_EQ(2, event.data.asks.size()); ASSERT_EQ(Decimal("3891.94"), event.data.bids[0].price); diff --git a/unittest/TestSubscribeTradeEvent.h b/unittest/TestSubscribeTradeEvent.h index 503622a..f66cda8 100644 --- a/unittest/TestSubscribeTradeEvent.h +++ b/unittest/TestSubscribeTradeEvent.h @@ -48,12 +48,14 @@ TEST(TestSubscribeTradeEvent, Receive_Normal) { "\t\t\t\"amount\": 0.001000000000000000,\n" "\t\t\t\"ts\": 1550558574684,\n" "\t\t\t\"id\": 10033544262424890651900,\n" + "\t\t\t\"tradeId\": 10033544262424890651900,\n" "\t\t\t\"price\": 3892.360000000000000000,\n" "\t\t\t\"direction\": \"sell\"\n" "\t\t}, {\n" "\t\t\t\"amount\": 0.051200000000000000,\n" "\t\t\t\"ts\": 1550558574684,\n" "\t\t\t\"id\": 10033544262424890651183,\n" + "\t\t\t\"tradeId\": 10033544262424890651900,\n" "\t\t\t\"price\": 3892.350000000000000000,\n" "\t\t\t\"direction\": \"buy\"\n" "\t\t}]\n" @@ -63,21 +65,21 @@ TEST(TestSubscribeTradeEvent, Receive_Normal) { WebSocketApiImpl* impl = new WebSocketApiImpl(); std::list symbols; symbols.push_back("btcusdt"); - auto request = (WebSocketRequestImpl*)impl->subscribeTradeEvent(symbols,[](const TradeEvent&){}, nullptr); + auto request = (WebSocketRequestImpl*)impl->subscribeTradeEvent(symbols, [](const TradeEvent&) { + }, nullptr); JsonDocument doc; JsonWrapper json = doc.parseFromString(data.c_str()); auto event = request->JsonParser(json); - ASSERT_EQ("btcusdt", event.symbol); ASSERT_EQ(2, event.tradeList.size()); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550558574702l), event.timestamp); + ASSERT_EQ(1550558574702l, event.timestamp); ASSERT_EQ(Decimal("0.001"), event.tradeList[0].amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550558574684l), event.tradeList[0].timestamp); + ASSERT_EQ(1550558574684l, event.tradeList[0].timestamp); ASSERT_EQ("10033544262424890651900", event.tradeList[0].tradeId); ASSERT_EQ(Decimal("3892.36"), event.tradeList[0].price); ASSERT_EQ(TradeDirection::sell, event.tradeList[0].direction); ASSERT_EQ(Decimal("0.0512"), event.tradeList[1].amount); - ASSERT_EQ(TimeService::convertCSTInMillisecondToUTC(1550558574684l), event.tradeList[1].timestamp); + ASSERT_EQ(1550558574684l, event.tradeList[1].timestamp); ASSERT_EQ("10033544262424890651183", event.tradeList[1].tradeId); ASSERT_EQ(Decimal("3892.35"), event.tradeList[1].price); ASSERT_EQ(TradeDirection::buy, event.tradeList[1].direction); diff --git a/unittest/TestWithdraw.h b/unittest/TestWithdraw.h index d80f04c..0c801d7 100644 --- a/unittest/TestWithdraw.h +++ b/unittest/TestWithdraw.h @@ -23,7 +23,7 @@ using namespace Huobi; TEST(TestWithdraw, request) { RestApiImpl* impl = new RestApiImpl("12345", "67890"); - WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0.05"), "eth"); + WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0.05"), "eth",Decimal("0.01")); auto request = impl->withdraw(withdrawRequest); ASSERT_EQ("POST", request->method); ASSERT_TRUE(request->getUrl().find("/v1/dw/withdraw/api/create") != -1); @@ -41,7 +41,7 @@ TEST(TestWithdraw, Result_Normal) { " \"data\": 700\n" "}"; RestApiImpl* impl = new RestApiImpl("12345", "67890"); - WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0.05"), "eth"); + WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0.05"), "eth", Decimal("0.01")); auto request = impl->withdraw(withdrawRequest); JsonWrapper json = JsonDocument().parseFromString(data.c_str()); auto result = request->jsonParser(json); @@ -49,25 +49,25 @@ TEST(TestWithdraw, Result_Normal) { } TEST(TestWithdraw, NullAdress) { - WithdrawRequest withdrawRequest("", Decimal("0.05"), "eth"); + WithdrawRequest withdrawRequest("", Decimal("0.05"), "eth",Decimal("0.01")); RestApiImpl* impl = new RestApiImpl("12345", "67890"); EXPECT_THROW(impl->withdraw(withdrawRequest), HuobiApiException); } TEST(TestWithdraw, NullAmount) { - WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0"), "eth"); + WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0"), "eth",Decimal("0.01")); RestApiImpl* impl = new RestApiImpl("12345", "67890"); EXPECT_THROW(impl->withdraw(withdrawRequest), HuobiApiException); } TEST(TestWithdraw, NullCurrency) { - WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0.05"), ""); + WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0.05"), "",Decimal("0.01")); RestApiImpl* impl = new RestApiImpl("12345", "67890"); EXPECT_THROW(impl->withdraw(withdrawRequest), HuobiApiException); } TEST(TestWithdraw, InvalidCurrency) { - WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0.05"), "?"); + WithdrawRequest withdrawRequest("0xde709f2102306220921060314715629080e2fb77", Decimal("0.05"), "?",Decimal("0.01")); RestApiImpl* impl = new RestApiImpl("12345", "67890"); EXPECT_THROW(impl->withdraw(withdrawRequest), HuobiApiException); }