diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a5a49c0e..63d872a62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,9 @@ cmake_minimum_required(VERSION 3.10) + +set(CMAKE_C_COMPILER gcc-9) +set(CMAKE_CXX_COMPILER g++-9) +set(CMAKE_CXX_STANDARD 17) + project(yaLanTingLibs VERSION 0.2.9 DESCRIPTION "yaLanTingLibs" @@ -6,6 +11,13 @@ project(yaLanTingLibs LANGUAGES CXX ) +find_package(Protobuf REQUIRED) + +# 将插件目录添加到环境变量 +execute_process(COMMAND export PATH=$PATH:${CMAKE_BINARY_DIR}/output/bin/) + + + # load pack finder list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Find/) @@ -31,8 +43,5 @@ if(CMAKE_PROJECT_NAME STREQUAL "yaLanTingLibs") # if ylt is top-level project endif() -# set(CMAKE_C_COMPILER gcc-9) -# set(CMAKE_CXX_COMPILER g++-9) -list(APPEND CMAKE_PREFIX_PATH "/home/gsk/pro/CyberRT/install/") - -add_subdirectory(src/struct_pb/protoc-plugin) +# add_subdirectory(src/struct_pb/protoc-plugin) +add_subdirectory(src/example) diff --git a/src/struct_pb/protoc-plugin/example/CMakeLists.txt b/src/example/CMakeLists.txt similarity index 70% rename from src/struct_pb/protoc-plugin/example/CMakeLists.txt rename to src/example/CMakeLists.txt index 54729de24..eb263e63e 100644 --- a/src/struct_pb/protoc-plugin/example/CMakeLists.txt +++ b/src/example/CMakeLists.txt @@ -4,7 +4,9 @@ add_compile_options(-Wno-attributes) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/examples) -include(../cmake/struct_pb.cmake) + +set(protobuf_generate_PLUGIN "protoc-gen-struct_pb") +include(cmake/struct_pb.cmake) cmake_policy(SET CMP0075 NEW) find_package(PCL REQUIRED COMPONENTS common io) @@ -27,24 +29,8 @@ if (Protobuf_FOUND) pointcloud.proto image.proto ) - add_executable(struct_pb_tutorial tutorial.cpp zpointcloud.cpp zimage.cpp - ${PROTO_SRCS} - ${PROTO_HDRS}) - target_link_libraries(struct_pb_tutorial protobuf::libprotobuf - pcl_common pcl_io # pcl - opencv_imgcodecs opencv_core # opencv - ) - - - target_include_directories(struct_pb_tutorial PUBLIC - ${CMAKE_CURRENT_BINARY_DIR} - ${CMAKE_CURRENT_LIST_DIR} - ${PCL_INCLUDE_DIRS} - ${OPENCV_INCLUDE_DIRS} - ) - - target_protos_struct_pb(struct_pb_tutorial PRIVATE + protobuf_generate_struct_pb(PROTO_STRUCT_SRCS PROTO_STRUCT_HDRS # addressbook.proto base.proto imu.proto @@ -55,4 +41,22 @@ if (Protobuf_FOUND) # pointcloud.proto OPTION "namespace=inner_struct,converter_namespace=converter") + + add_executable(struct_pb_tutorial tutorial.cpp + ${PROTO_SRCS} + ${PROTO_HDRS} + ${PROTO_STRUCT_SRCS} + ${PROTO_STRUCT_HDRS} + ) + + target_link_libraries(struct_pb_tutorial protobuf::libprotobuf pcl_common) + + target_include_directories(struct_pb_tutorial PUBLIC + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_LIST_DIR} + ${PCL_INCLUDE_DIRS} + ) + + + endif() diff --git a/src/struct_pb/protoc-plugin/example/addressbook.proto b/src/example/addressbook.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/addressbook.proto rename to src/example/addressbook.proto diff --git a/src/struct_pb/protoc-plugin/example/base.proto b/src/example/base.proto similarity index 98% rename from src/struct_pb/protoc-plugin/example/base.proto rename to src/example/base.proto index e7f843ff9..98a5f1d3b 100644 --- a/src/struct_pb/protoc-plugin/example/base.proto +++ b/src/example/base.proto @@ -3,6 +3,9 @@ package inner_class; import "proto_to_struct.proto"; +// import "google/protobuf/descriptor.proto"; + + option(write_eigen_helper) = true; enum ZFrameType{ diff --git a/src/struct_pb/protoc-plugin/example/chasis.proto b/src/example/chasis.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/chasis.proto rename to src/example/chasis.proto diff --git a/src/struct_pb/protoc-plugin/cmake/struct_pb.cmake b/src/example/cmake/struct_pb.cmake similarity index 96% rename from src/struct_pb/protoc-plugin/cmake/struct_pb.cmake rename to src/example/cmake/struct_pb.cmake index 3a2a2c365..ce9935a76 100644 --- a/src/struct_pb/protoc-plugin/cmake/struct_pb.cmake +++ b/src/example/cmake/struct_pb.cmake @@ -36,6 +36,8 @@ function(protobuf_generate_modified) set(_opt "${opt},dllexport_decl=${protobuf_generate_EXPORT_MACRO}") endif() set(_opt "${_opt}:") + + if(protobuf_generate_PLUGIN) set(_plugin "--plugin=${protobuf_generate_PLUGIN}") endif() @@ -172,7 +174,9 @@ function(protobuf_generate_struct_pb SRCS HDRS) set(_outvar) protobuf_generate_modified(${_append_arg} ${_descriptors} LANGUAGE struct_pb EXPORT_MACRO ${protobuf_generate_struct_pb_EXPORT_MACRO} - PLUGIN $ + # PLUGIN $ + # PLUGIN "/home/gsk/pro/yalantinglibs/build/output/bin/protoc-gen-struct_pb" + PLUGIN "struct_pb" OUT_VAR _outvar ${_import_arg} PROTOS ${_proto_files} PROTOC_OPTION ${_opt} ) @@ -224,7 +228,9 @@ function(target_protos_struct_pb target) protobuf_generate_modified( TARGET ${target} LANGUAGE struct_pb EXPORT_MACRO ${target_protos_struct_pb_EXPORT_MACRO} - PLUGIN $ + # PLUGIN $ + # PLUGIN "/home/gsk/pro/yalantinglibs/build/output/bin/protoc-gen-struct_pb" + PLUGIN "struct_pb" ${_import_arg} PROTOS ${_proto_files} PROTOC_OPTION ${_opt} ) diff --git a/src/struct_pb/protoc-plugin/example/frozen/CMakeLists.txt b/src/example/frozen/CMakeLists.txt similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/CMakeLists.txt rename to src/example/frozen/CMakeLists.txt diff --git a/src/struct_pb/protoc-plugin/example/frozen/algorithm.h b/src/example/frozen/algorithm.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/algorithm.h rename to src/example/frozen/algorithm.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/algorithms.h b/src/example/frozen/bits/algorithms.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/algorithms.h rename to src/example/frozen/bits/algorithms.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/basic_types.h b/src/example/frozen/bits/basic_types.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/basic_types.h rename to src/example/frozen/bits/basic_types.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/constexpr_assert.h b/src/example/frozen/bits/constexpr_assert.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/constexpr_assert.h rename to src/example/frozen/bits/constexpr_assert.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/defines.h b/src/example/frozen/bits/defines.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/defines.h rename to src/example/frozen/bits/defines.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/elsa.h b/src/example/frozen/bits/elsa.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/elsa.h rename to src/example/frozen/bits/elsa.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/elsa_std.h b/src/example/frozen/bits/elsa_std.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/elsa_std.h rename to src/example/frozen/bits/elsa_std.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/exceptions.h b/src/example/frozen/bits/exceptions.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/exceptions.h rename to src/example/frozen/bits/exceptions.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/hash_string.h b/src/example/frozen/bits/hash_string.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/hash_string.h rename to src/example/frozen/bits/hash_string.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/pmh.h b/src/example/frozen/bits/pmh.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/pmh.h rename to src/example/frozen/bits/pmh.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/bits/version.h b/src/example/frozen/bits/version.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/bits/version.h rename to src/example/frozen/bits/version.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/map.h b/src/example/frozen/map.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/map.h rename to src/example/frozen/map.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/random.h b/src/example/frozen/random.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/random.h rename to src/example/frozen/random.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/set.h b/src/example/frozen/set.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/set.h rename to src/example/frozen/set.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/string.h b/src/example/frozen/string.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/string.h rename to src/example/frozen/string.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/unordered_map.h b/src/example/frozen/unordered_map.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/unordered_map.h rename to src/example/frozen/unordered_map.h diff --git a/src/struct_pb/protoc-plugin/example/frozen/unordered_set.h b/src/example/frozen/unordered_set.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/frozen/unordered_set.h rename to src/example/frozen/unordered_set.h diff --git a/src/struct_pb/protoc-plugin/example/gnss.proto b/src/example/gnss.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/gnss.proto rename to src/example/gnss.proto diff --git a/src/struct_pb/protoc-plugin/example/iguana/define.h b/src/example/iguana/define.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/define.h rename to src/example/iguana/define.h diff --git a/src/struct_pb/protoc-plugin/example/iguana/detail/charconv.h b/src/example/iguana/detail/charconv.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/detail/charconv.h rename to src/example/iguana/detail/charconv.h diff --git a/src/struct_pb/protoc-plugin/example/iguana/detail/dragonbox.h b/src/example/iguana/detail/dragonbox.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/detail/dragonbox.h rename to src/example/iguana/detail/dragonbox.h diff --git a/src/struct_pb/protoc-plugin/example/iguana/detail/dragonbox_to_chars.h b/src/example/iguana/detail/dragonbox_to_chars.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/detail/dragonbox_to_chars.h rename to src/example/iguana/detail/dragonbox_to_chars.h diff --git a/src/struct_pb/protoc-plugin/example/iguana/detail/fast_float.h b/src/example/iguana/detail/fast_float.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/detail/fast_float.h rename to src/example/iguana/detail/fast_float.h diff --git a/src/struct_pb/protoc-plugin/example/iguana/detail/itoa.hpp b/src/example/iguana/detail/itoa.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/detail/itoa.hpp rename to src/example/iguana/detail/itoa.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/detail/string_stream.hpp b/src/example/iguana/detail/string_stream.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/detail/string_stream.hpp rename to src/example/iguana/detail/string_stream.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/detail/traits.hpp b/src/example/iguana/detail/traits.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/detail/traits.hpp rename to src/example/iguana/detail/traits.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/detail/utf.hpp b/src/example/iguana/detail/utf.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/detail/utf.hpp rename to src/example/iguana/detail/utf.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/enum_reflection.hpp b/src/example/iguana/enum_reflection.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/enum_reflection.hpp rename to src/example/iguana/enum_reflection.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/error_code.h b/src/example/iguana/error_code.h similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/error_code.h rename to src/example/iguana/error_code.h diff --git a/src/struct_pb/protoc-plugin/example/iguana/json_reader.hpp b/src/example/iguana/json_reader.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/json_reader.hpp rename to src/example/iguana/json_reader.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/json_util.hpp b/src/example/iguana/json_util.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/json_util.hpp rename to src/example/iguana/json_util.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/json_writer.hpp b/src/example/iguana/json_writer.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/json_writer.hpp rename to src/example/iguana/json_writer.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/prettify.hpp b/src/example/iguana/prettify.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/prettify.hpp rename to src/example/iguana/prettify.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/reflection.hpp b/src/example/iguana/reflection.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/reflection.hpp rename to src/example/iguana/reflection.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/util.hpp b/src/example/iguana/util.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/util.hpp rename to src/example/iguana/util.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/value.hpp b/src/example/iguana/value.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/value.hpp rename to src/example/iguana/value.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/xml_reader.hpp b/src/example/iguana/xml_reader.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/xml_reader.hpp rename to src/example/iguana/xml_reader.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/xml_util.hpp b/src/example/iguana/xml_util.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/xml_util.hpp rename to src/example/iguana/xml_util.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/xml_writer.hpp b/src/example/iguana/xml_writer.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/xml_writer.hpp rename to src/example/iguana/xml_writer.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/yaml_reader.hpp b/src/example/iguana/yaml_reader.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/yaml_reader.hpp rename to src/example/iguana/yaml_reader.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/yaml_util.hpp b/src/example/iguana/yaml_util.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/yaml_util.hpp rename to src/example/iguana/yaml_util.hpp diff --git a/src/struct_pb/protoc-plugin/example/iguana/yaml_writer.hpp b/src/example/iguana/yaml_writer.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/iguana/yaml_writer.hpp rename to src/example/iguana/yaml_writer.hpp diff --git a/src/struct_pb/protoc-plugin/example/image.proto b/src/example/image.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/image.proto rename to src/example/image.proto diff --git a/src/struct_pb/protoc-plugin/example/imu.proto b/src/example/imu.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/imu.proto rename to src/example/imu.proto diff --git a/src/struct_pb/protoc-plugin/example/nlohmann/json.hpp b/src/example/nlohmann/json.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/nlohmann/json.hpp rename to src/example/nlohmann/json.hpp diff --git a/src/struct_pb/protoc-plugin/example/nlohmann/json_fwd.hpp b/src/example/nlohmann/json_fwd.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/nlohmann/json_fwd.hpp rename to src/example/nlohmann/json_fwd.hpp diff --git a/src/struct_pb/protoc-plugin/example/perception.proto b/src/example/perception.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/perception.proto rename to src/example/perception.proto diff --git a/src/struct_pb/protoc-plugin/example/pointcloud.proto b/src/example/pointcloud.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/pointcloud.proto rename to src/example/pointcloud.proto diff --git a/src/struct_pb/protoc-plugin/example/proto_to_struct.proto b/src/example/proto_to_struct.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/proto_to_struct.proto rename to src/example/proto_to_struct.proto diff --git a/src/struct_pb/protoc-plugin/example/state.proto b/src/example/state.proto similarity index 100% rename from src/struct_pb/protoc-plugin/example/state.proto rename to src/example/state.proto diff --git a/src/struct_pb/protoc-plugin/example/tutorial.cpp b/src/example/tutorial.cpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/tutorial.cpp rename to src/example/tutorial.cpp diff --git a/src/struct_pb/protoc-plugin/example/xyzit_points.hpp b/src/example/xyzit_points.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/xyzit_points.hpp rename to src/example/xyzit_points.hpp diff --git a/src/struct_pb/protoc-plugin/example/zimage.cpp b/src/example/zimage.cpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/zimage.cpp rename to src/example/zimage.cpp diff --git a/src/struct_pb/protoc-plugin/example/zimage.hpp b/src/example/zimage.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/zimage.hpp rename to src/example/zimage.hpp diff --git a/src/struct_pb/protoc-plugin/example/zpointcloud.cpp b/src/example/zpointcloud.cpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/zpointcloud.cpp rename to src/example/zpointcloud.cpp diff --git a/src/struct_pb/protoc-plugin/example/zpointcloud.hpp b/src/example/zpointcloud.hpp similarity index 100% rename from src/struct_pb/protoc-plugin/example/zpointcloud.hpp rename to src/example/zpointcloud.hpp diff --git a/src/struct_pb/protoc-plugin/CMakeLists.txt b/src/struct_pb/protoc-plugin/CMakeLists.txt index 167b01a38..5485fb5e3 100644 --- a/src/struct_pb/protoc-plugin/CMakeLists.txt +++ b/src/struct_pb/protoc-plugin/CMakeLists.txt @@ -1,17 +1,23 @@ cmake_minimum_required(VERSION 3.10) - -set(CMAKE_CXX_STANDARD 17) +# set(CMAKE_C_COMPILER gcc-9) +# set(CMAKE_CXX_COMPILER g++-9) +# set(CMAKE_CXX_STANDARD 17) project(protoc-gen-struct_pb) +# add_subdirectory(example) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/output/bin) find_package(Protobuf QUIET) if (Protobuf_FOUND) + file(GLOB SRCS "*.cpp" "*.cc" "*.h") - add_executable(protoc-gen-struct_pb ${SRCS}) + protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS proto_to_struct.proto) + + add_executable(protoc-gen-struct_pb ${SRCS} ${PROTO_SRCS} ${PROTO_HDRS}) + target_include_directories(protoc-gen-struct_pb PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(protoc-gen-struct_pb PUBLIC protobuf::libprotoc protobuf::libprotobuf) install( TARGETS protoc-gen-struct_pb @@ -25,5 +31,3 @@ else () "see https://alibaba.github.io/yalantinglibs/en/struct_pb/struct_pb_generating_your_struct.html" ) endif () - -add_subdirectory(example) \ No newline at end of file diff --git a/src/struct_pb/protoc-plugin/proto_to_struct.pb.cc b/src/struct_pb/protoc-plugin/proto_to_struct.pb.cc deleted file mode 100644 index 793e77367..000000000 --- a/src/struct_pb/protoc-plugin/proto_to_struct.pb.cc +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto_to_struct.proto - -#include "proto_to_struct.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -static constexpr ::PROTOBUF_NAMESPACE_ID::Metadata* file_level_metadata_proto_5fto_5fstruct_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_proto_5fto_5fstruct_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_proto_5fto_5fstruct_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_proto_5fto_5fstruct_2eproto::offsets[1] = {}; -static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr; - -const char descriptor_table_protodef_proto_5fto_5fstruct_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\025proto_to_struct.proto\032 google/protobuf" - "/descriptor.proto::\n\022write_eigen_helper\022" - "\034.google.protobuf.FileOptions\030\240\234\001 \001(\010:8\n" - "\020write_pcl_helper\022\034.google.protobuf.File" - "Options\030\241\234\001 \001(\010:9\n\016eigen_typename\022\037.goog" - "le.protobuf.MessageOptions\030\204\235\001 \001(\t:7\n\014pc" - "l_typename\022\037.google.protobuf.MessageOpti" - "ons\030\205\235\001 \001(\t:6\n\rinherits_from\022\035.google.pr" - "otobuf.FieldOptions\030\350\235\001 \001(\010:1\n\010fix_size\022" - "\035.google.protobuf.FieldOptions\030\351\235\001 \001(\005b\006" - "proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_proto_5fto_5fstruct_2eproto_deps[1] = { - &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_proto_5fto_5fstruct_2eproto_sccs[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_proto_5fto_5fstruct_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_5fto_5fstruct_2eproto = { - false, false, descriptor_table_protodef_proto_5fto_5fstruct_2eproto, "proto_to_struct.proto", 406, - &descriptor_table_proto_5fto_5fstruct_2eproto_once, descriptor_table_proto_5fto_5fstruct_2eproto_sccs, descriptor_table_proto_5fto_5fstruct_2eproto_deps, 0, 1, - schemas, file_default_instances, TableStruct_proto_5fto_5fstruct_2eproto::offsets, - file_level_metadata_proto_5fto_5fstruct_2eproto, 0, file_level_enum_descriptors_proto_5fto_5fstruct_2eproto, file_level_service_descriptors_proto_5fto_5fstruct_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_proto_5fto_5fstruct_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_proto_5fto_5fstruct_2eproto)), true); -::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FileOptions, - ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false > - write_eigen_helper(kWriteEigenHelperFieldNumber, false); -::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FileOptions, - ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false > - write_pcl_helper(kWritePclHelperFieldNumber, false); -const std::string eigen_typename_default(""); -::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, - ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > - eigen_typename(kEigenTypenameFieldNumber, eigen_typename_default); -const std::string pcl_typename_default(""); -::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, - ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > - pcl_typename(kPclTypenameFieldNumber, pcl_typename_default); -::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false > - inherits_from(kInheritsFromFieldNumber, false); -::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< ::PROTOBUF_NAMESPACE_ID::int32 >, 5, false > - fix_size(kFixSizeFieldNumber, 0); - -// @@protoc_insertion_point(namespace_scope) -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/src/struct_pb/protoc-plugin/proto_to_struct.pb.h b/src/struct_pb/protoc-plugin/proto_to_struct.pb.h deleted file mode 100644 index fa214d130..000000000 --- a/src/struct_pb/protoc-plugin/proto_to_struct.pb.h +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto_to_struct.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_5fto_5fstruct_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_5fto_5fstruct_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3014000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3014000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_5fto_5fstruct_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_5fto_5fstruct_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_proto_5fto_5fstruct_2eproto; -PROTOBUF_NAMESPACE_OPEN -PROTOBUF_NAMESPACE_CLOSE - -// =================================================================== - - -// =================================================================== - -static const int kWriteEigenHelperFieldNumber = 20000; -extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FileOptions, - ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false > - write_eigen_helper; -static const int kWritePclHelperFieldNumber = 20001; -extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FileOptions, - ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false > - write_pcl_helper; -static const int kEigenTypenameFieldNumber = 20100; -extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, - ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > - eigen_typename; -static const int kPclTypenameFieldNumber = 20101; -extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, - ::PROTOBUF_NAMESPACE_ID::internal::StringTypeTraits, 9, false > - pcl_typename; -static const int kInheritsFromFieldNumber = 20200; -extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< bool >, 8, false > - inherits_from; -static const int kFixSizeFieldNumber = 20201; -extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions, - ::PROTOBUF_NAMESPACE_ID::internal::PrimitiveTypeTraits< ::PROTOBUF_NAMESPACE_ID::int32 >, 5, false > - fix_size; - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_5fto_5fstruct_2eproto