1 /** 2 * Autogenerated by Thrift for src/module.thrift 3 * 4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 * @generated @nocommit 6 */ 7 #pragma once 8 9 #include <thrift/lib/cpp2/gen/module_data_h.h> 10 11 #include "thrift/compiler/test/fixtures/frozen-struct/gen-cpp2/module_types.h" 12 13 namespace apache { namespace thrift { 14 15 template <> struct TEnumDataStorage<::some::ns::EnumB> { 16 using type = ::some::ns::EnumB; 17 static constexpr const std::size_t size = 1; 18 static const std::array<type, size> values; 19 static const std::array<folly::StringPiece, size> names; 20 }; 21 22 template <> struct TStructDataStorage<::some::ns::ModuleA> { 23 static constexpr const std::size_t fields_size = 6; 24 static const std::array<folly::StringPiece, fields_size> fields_names; 25 static const std::array<int16_t, fields_size> fields_ids; 26 static const std::array<protocol::TType, fields_size> fields_types; 27 }; 28 29 template <> struct TStructDataStorage<::some::ns::ModuleB> { 30 static constexpr const std::size_t fields_size = 2; 31 static const std::array<folly::StringPiece, fields_size> fields_names; 32 static const std::array<int16_t, fields_size> fields_ids; 33 static const std::array<protocol::TType, fields_size> fields_types; 34 }; 35 36 }} // apache::thrift 37