Commit Graph

1699 Commits

Author SHA1 Message Date
Leonid Stryzhevskyi
02c9fbf8e9
Merge pull request #937 from oatpp/object_remapper
Object remapper
2024-05-09 18:48:11 -07:00
Leonid Stryzhevskyi
6765c3e591 mapping::Tree: better tests, improved attributes, improved interface of oatpp::Tree 2024-05-10 04:26:38 +03:00
Leonid Stryzhevskyi
917dd454ce mapping::ObjectRemapper: optimize and add test 2024-05-09 06:38:03 +03:00
Leonid Stryzhevskyi
07f4f93ad7 data::mapping: introduce ObjectRemapper 2024-05-09 06:10:02 +03:00
Leonid Stryzhevskyi
ad486b0f6a
Merge pull request #936 from oatpp/#879_data_tree
#879 data tree
2024-05-08 16:54:40 -07:00
Leonid Stryzhevskyi
0f85759730 tests: uncomment all 2024-05-09 02:15:12 +03:00
Leonid Stryzhevskyi
89c0a953c3 tests: add ObjectToTreeMapperTest 2024-05-09 02:13:20 +03:00
Leonid Stryzhevskyi
b9d78cce64 Tree: better mapping to/from object 2024-05-06 00:23:48 +03:00
Leonid Stryzhevskyi
a29c664581 mapping::Tree: introduce TreeChildrenOperator 2024-05-05 09:42:24 +03:00
Leonid Stryzhevskyi
0ee2e3325d add Tree object-wrapper 2024-05-05 02:46:48 +03:00
Leonid Stryzhevskyi
5460bd404d introduce oatpp::Tree - mapping-enabled wrapper over data::mapping::Tree. 2024-05-04 05:33:01 +03:00
Leonid Stryzhevskyi
8ae59cdba1 refactor: move oatpp/data/mapping/type/* --> oatpp/data/type/* 2024-05-04 04:09:07 +03:00
Leonid Stryzhevskyi
bdcad18ddb data::mapping::ObjectMapper: introduce MappingError 2024-05-03 06:25:47 +03:00
Leonid Stryzhevskyi
b890a15840 json::ObjectMapper: use mapping::Tree 2024-05-01 03:56:03 +03:00
Leonid Stryzhevskyi
77ca525d2c Tree: TreeMap - fix assignment operators 2024-05-01 02:44:48 +03:00
Leonid Stryzhevskyi
8137eba15e json::ObjectMapper: use mapping::Tree for Deserialization 2024-04-30 02:35:40 +03:00
Leonid Stryzhevskyi
87af860824 Fix incomplete type 2024-04-30 00:35:23 +03:00
Leonid Stryzhevskyi
249fc4f137 mapping::Tree: introduce attributes. Add PAIRS type 2024-04-29 02:48:51 +03:00
Leonid Stryzhevskyi
ad3136480a Refactor: move data::Tree to data::mapping::Tree 2024-04-29 00:56:29 +03:00
Leonid Stryzhevskyi
1d64355eef Tree: introduce ObjectToTreeMapper and TreeToObjectMapper. WIP 2024-04-28 06:11:20 +03:00
Leonid Stryzhevskyi
4a7795c221 data::Tree: map both ordered and random-accessed. dynamic casting 2024-04-26 06:33:14 +03:00
Leonid Stryzhevskyi
5461fb2f08 Introduce data::Tree::Node 2024-04-24 04:24:37 +03:00
Leonid Stryzhevskyi
14ca5e55c8
Merge pull request #932 from oatpp/restructure
Restructure
2024-04-22 19:18:52 -07:00
Leonid Stryzhevskyi
81d4efef50 move oatpp/core/parser/* --> oatpp/utils/parser* 2024-04-23 04:28:23 +03:00
Leonid Stryzhevskyi
31fb1412d3 move oatpp/core/data/* --> oatpp/data/* 2024-04-23 04:12:46 +03:00
Leonid Stryzhevskyi
477b5b1af9 move oatpp/core/provider/* --> oatpp/provider/* 2024-04-23 03:40:49 +03:00
Leonid Stryzhevskyi
36f298c8d4 move oatpp/core/concurrency/* to the root folder 2024-04-23 03:19:49 +03:00
Leonid Stryzhevskyi
acf598433d move oatpp/core/base/* --> oatpp/base/* 2024-04-23 02:56:25 +03:00
Leonid Stryzhevskyi
0f99dc37fb Do not use 'test' namespace in tests 2024-04-23 02:46:59 +03:00
Leonid Stryzhevskyi
4bfa3db6f5 move Environment.hpp to root folder 2024-04-23 02:41:04 +03:00
Leonid Stryzhevskyi
b263808a74 move Types.hpp and IODefinitions.hpp to root folder 2024-04-23 02:26:09 +03:00
Leonid Stryzhevskyi
52e3dd0ae6 move 'oatpp/core/async/*' --> 'oatpp/async/*' 2024-04-23 02:19:04 +03:00
Leonid Stryzhevskyi
f0ae36e086 move 'oatpp/core/macro/*' --> 'oatpp/macro/*' 2024-04-23 02:01:31 +03:00
Leonid Stryzhevskyi
ec1b0523ef move oatpp/core/utils --> oatpp/utils. move oatpp/algorithm/CRC --> oatpp/utils/CRC32 2024-04-23 01:45:17 +03:00
Leonid Stryzhevskyi
06232810f7 refactor json namespaces 2024-04-23 01:20:20 +03:00
Leonid Stryzhevskyi
60d879473a
Update README.md 2024-04-21 23:18:43 +03:00
Leonid Stryzhevskyi
17ef2a7f6c
Merge pull request #916 from oatpp/monitor_invalidate_all
network::monitor::ConnectionMonitor: invalidateAll() method
2024-02-05 05:51:38 +02:00
Leonid Stryzhevskyi
d95e763da1 network::monitor::ConnectionMonitor: invalidateAll() method 2024-02-05 05:43:04 +02:00
Leonid Stryzhevskyi
a85ee40b36
Merge pull request #915 from fhuberts/bugfix/894
Fix a potential crash, indicated by a compiler warning (#894)
2024-02-05 04:28:34 +02:00
Ferry Huberts
b338db70ee Fix a potential crash, indicated by a compiler warning (#894)
At this point in the code it == m_statCollectors.end() and therefore
it->first has no meaning and can not be used.

Building CXX object lib/oatpp/src/CMakeFiles/oatpp.dir/oatpp/web/protocol/CommunicationError.cpp.o In file included from /usr/include/c++/13/bits/shared_ptr.h:53,
                 from /usr/include/c++/13/memory:80,
                 from oatpp/src/oatpp/core/base/Countable.hpp:28,
                 from oatpp/src/oatpp/core/data/mapping/type/./Type.hpp:28,
                 from oatpp/src/oatpp/core/data/mapping/type/Object.hpp:28,
                 from oatpp/src/oatpp/core/Types.hpp:28,
                 from oatpp/src/oatpp/network/monitor/StatCollector.hpp:28,
                 from oatpp/src/oatpp/network/monitor/MetricsChecker.hpp:28,
                 from oatpp/src/oatpp/network/monitor/ConnectionMonitor.hpp:28,
                 from oatpp/src/oatpp/network/monitor/ConnectionMonitor.cpp:25:
In member function ‘std::__shared_ptr<_Tp, _Lp>::element_type* std::__shared_ptr<_Tp, _Lp>::get() const [with _Tp = std::__cxx11::basic_string<char>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’,
    inlined from ‘std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::element_type* std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::_M_get() const [with _Tp = std::__cxx11::basic_string<char>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; bool <anonymous> = false; bool <anonymous> = false]’ at /usr/include/c++/13/bits/shared_ptr_base.h:1363:69,
    inlined from ‘std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::element_type* std::__shared_ptr_access<_Tp, _Lp, <anonymous>, <anonymous> >::operator->() const [with _Tp = std::__cxx11::basic_string<char>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic; bool <anonymous> = false; bool <anonymous> = false]’ at /usr/include/c++/13/bits/shared_ptr_base.h:1357:15,
    inlined from ‘T* oatpp::data::mapping::type::ObjectWrapper<T, Clazz>::operator->() const [with T = std::__cxx11::basic_string<char>; Clazz = oatpp::data::mapping::type::__class::String]’ at oatpp/src/oatpp/core/data/mapping/type/./Type.hpp:223:28,
    inlined from ‘void oatpp::network::monitor::ConnectionMonitor::Monitor::freeConnectionStats(oatpp::network::monitor::ConnectionStats&)’ at oatpp/src/oatpp/network/monitor/ConnectionMonitor.cpp:189:7:
/usr/include/c++/13/bits/shared_ptr_base.h:1666:16: warning: array subscript 0 is outside array bounds of ‘std::aligned_storage<40, 8>::type [0]’ [-Warray-bounds=]
 1666 |       { return _M_ptr; }
      |                ^~~~~~
In member function ‘void oatpp::network::monitor::ConnectionMonitor::Monitor::freeConnectionStats(oatpp::network::monitor::ConnectionStats&)’:
cc1plus: note: source object is likely at address zero

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2024-02-04 22:25:59 +01:00
Leonid Stryzhevskyi
bc24a9c090
Merge pull request #909 from oatpp/fix_url_enconding_method_params
encoding::Url: fix method params
2024-01-15 04:28:18 +02:00
Leonid Stryzhevskyi
d22dfca9e8 encoding::Url: fix method params 2024-01-15 04:26:59 +02:00
Leonid Stryzhevskyi
a5fe65becc
Merge pull request #904 from linhaojun857/fix_902
Fix the bug of send "null" in request body causes seg-fault
2024-01-11 06:38:22 +02:00
linhaojun857
02a21de839 Add test 2023-12-16 15:34:08 +08:00
linhaojun857
df9ddc0313 fix the bug of send "null" in request body causes seg-fault on any endpoint w/ BODY_DTO 2023-12-16 10:35:15 +08:00
Leonid Stryzhevskyi
57e6a714d7
Merge pull request #896 from linhaojun857/add_test_sample
Add test sample for HttpRouter
2023-12-05 06:22:39 +02:00
linhaojun857
1137678bba Add test sample for HttpRouter 2023-11-26 23:49:20 +08:00
Leonid Stryzhevskyi
1d11558e2c
Merge pull request #895 from ffontaine/master
src/oatpp/core/base/Environment.hpp: include cstdarg
2023-11-25 08:44:46 +02:00
Leonid Stryzhevskyi
679b6e95f2
Merge pull request #893 from sodevel/fix/gcc46
Fix compilation on GCC 4.6
2023-11-25 08:42:06 +02:00
Fabrice Fontaine
b3e8930ccb src/oatpp/core/base/Environment.hpp: include cstdarg
Include cstdarg to fix the following build failure with uclibc-ng:

In file included from /home/autobuild/autobuild/instance-4/output-1/build/oatpp-1.3.0/src/oatpp/algorithm/CRC.hpp:28,
                 from /home/autobuild/autobuild/instance-4/output-1/build/oatpp-1.3.0/src/oatpp/algorithm/CRC.cpp:25:
/home/autobuild/autobuild/instance-4/output-1/build/oatpp-1.3.0/src/oatpp/core/base/Environment.hpp:359:93: error: 'va_list' has not been declared
  359 |   static void vlogFormatted(v_uint32 priority, const std::string& tag, const char* message, va_list args);
      |                                                                                             ^~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/bcdf7548ff752f936defd111d13c63245ea70cbe

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2023-11-23 22:45:56 +01:00