diff --git a/.gitignore b/.gitignore index 67d41f1..b3ddd54 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ build/ .cache *.pb.cc -*.pb.h \ No newline at end of file +*.pb.h + diff --git a/include/SimCore/Messages/Protos/Control.pb.cc b/include/SimCore/Messages/Protos/Control.pb.cc deleted file mode 100644 index 087eba0..0000000 --- a/include/SimCore/Messages/Protos/Control.pb.cc +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Control.proto - -#include "Control.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - -namespace messages { -namespace control { -PROTOBUF_CONSTEXPR control::control( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.identifier_)*/nullptr - , /*decltype(_impl_.timestamp_)*/uint64_t{0u} - , /*decltype(_impl_.type_)*/0u} {} -struct controlDefaultTypeInternal { - PROTOBUF_CONSTEXPR controlDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~controlDefaultTypeInternal() {} - union { - control _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 controlDefaultTypeInternal _control_default_instance_; -} // namespace control -} // namespace messages -static ::_pb::Metadata file_level_metadata_Control_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Control_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Control_2eproto = nullptr; - -const uint32_t TableStruct_Control_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::control::control, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_.identifier_), - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_.type_), - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_.data_), - PROTOBUF_FIELD_OFFSET(::messages::control::control, _impl_.timestamp_), - ~0u, - ~0u, - ~0u, - 0, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 10, -1, sizeof(::messages::control::control)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::control::_control_default_instance_._instance, -}; - -const char descriptor_table_protodef_Control_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\rControl.proto\022\020messages.control\032\020Ident" - "ifier.proto\"{\n\007control\022.\n\nIdentifier\030\001 \001" - "(\0132\032.messages.track.Identifier\022\014\n\004type\030\002" - " \001(\r\022\014\n\004data\030\003 \001(\t\022\026\n\ttimestamp\030\004 \001(\004H\000\210" - "\001\001B\014\n\n_timestampb\006proto3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_Control_2eproto_deps[1] = { - &::descriptor_table_Identifier_2eproto, -}; -static ::_pbi::once_flag descriptor_table_Control_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_Control_2eproto = { - false, false, 184, descriptor_table_protodef_Control_2eproto, - "Control.proto", - &descriptor_table_Control_2eproto_once, descriptor_table_Control_2eproto_deps, 1, 1, - schemas, file_default_instances, TableStruct_Control_2eproto::offsets, - file_level_metadata_Control_2eproto, file_level_enum_descriptors_Control_2eproto, - file_level_service_descriptors_Control_2eproto, -}; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Control_2eproto_getter() { - return &descriptor_table_Control_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Control_2eproto(&descriptor_table_Control_2eproto); -namespace messages { -namespace control { - -// =================================================================== - -class control::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static const ::messages::track::Identifier& identifier(const control* msg); - static void set_has_timestamp(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::messages::track::Identifier& -control::_Internal::identifier(const control* msg) { - return *msg->_impl_.identifier_; -} -void control::clear_identifier() { - if (GetArenaForAllocation() == nullptr && _impl_.identifier_ != nullptr) { - delete _impl_.identifier_; - } - _impl_.identifier_ = nullptr; -} -control::control(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:messages.control.control) -} -control::control(const control& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - control* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.data_){} - , decltype(_impl_.identifier_){nullptr} - , decltype(_impl_.timestamp_){} - , decltype(_impl_.type_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.data_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.data_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_data().empty()) { - _this->_impl_.data_.Set(from._internal_data(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_identifier()) { - _this->_impl_.identifier_ = new ::messages::track::Identifier(*from._impl_.identifier_); - } - ::memcpy(&_impl_.timestamp_, &from._impl_.timestamp_, - static_cast(reinterpret_cast(&_impl_.type_) - - reinterpret_cast(&_impl_.timestamp_)) + sizeof(_impl_.type_)); - // @@protoc_insertion_point(copy_constructor:messages.control.control) -} - -inline void control::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.data_){} - , decltype(_impl_.identifier_){nullptr} - , decltype(_impl_.timestamp_){uint64_t{0u}} - , decltype(_impl_.type_){0u} - }; - _impl_.data_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.data_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -control::~control() { - // @@protoc_insertion_point(destructor:messages.control.control) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void control::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.data_.Destroy(); - if (this != internal_default_instance()) delete _impl_.identifier_; -} - -void control::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void control::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.control.control) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.data_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.identifier_ != nullptr) { - delete _impl_.identifier_; - } - _impl_.identifier_ = nullptr; - _impl_.timestamp_ = uint64_t{0u}; - _impl_.type_ = 0u; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* control::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .messages.track.Identifier Identifier = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_identifier(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // uint32 type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string data = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_data(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "messages.control.control.data")); - } else - goto handle_unusual; - continue; - // optional uint64 timestamp = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_timestamp(&has_bits); - _impl_.timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* control::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.control.control) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .messages.track.Identifier Identifier = 1; - if (this->_internal_has_identifier()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::identifier(this), - _Internal::identifier(this).GetCachedSize(), target, stream); - } - - // uint32 type = 2; - if (this->_internal_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_type(), target); - } - - // string data = 3; - if (!this->_internal_data().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_data().data(), static_cast(this->_internal_data().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "messages.control.control.data"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_data(), target); - } - - // optional uint64 timestamp = 4; - if (_internal_has_timestamp()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt64ToArray(4, this->_internal_timestamp(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.control.control) - return target; -} - -size_t control::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.control.control) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string data = 3; - if (!this->_internal_data().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_data()); - } - - // .messages.track.Identifier Identifier = 1; - if (this->_internal_has_identifier()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.identifier_); - } - - // optional uint64 timestamp = 4; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp()); - } - - // uint32 type = 2; - if (this->_internal_type() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData control::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - control::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*control::GetClassData() const { return &_class_data_; } - - -void control::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.control.control) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_data().empty()) { - _this->_internal_set_data(from._internal_data()); - } - if (from._internal_has_identifier()) { - _this->_internal_mutable_identifier()->::messages::track::Identifier::MergeFrom( - from._internal_identifier()); - } - if (from._internal_has_timestamp()) { - _this->_internal_set_timestamp(from._internal_timestamp()); - } - if (from._internal_type() != 0) { - _this->_internal_set_type(from._internal_type()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void control::CopyFrom(const control& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.control.control) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool control::IsInitialized() const { - return true; -} - -void control::InternalSwap(control* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.data_, lhs_arena, - &other->_impl_.data_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(control, _impl_.type_) - + sizeof(control::_impl_.type_) - - PROTOBUF_FIELD_OFFSET(control, _impl_.identifier_)>( - reinterpret_cast(&_impl_.identifier_), - reinterpret_cast(&other->_impl_.identifier_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata control::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_Control_2eproto_getter, &descriptor_table_Control_2eproto_once, - file_level_metadata_Control_2eproto[0]); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace control -} // namespace messages -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::messages::control::control* -Arena::CreateMaybeMessage< ::messages::control::control >(Arena* arena) { - return Arena::CreateMessageInternal< ::messages::control::control >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/include/SimCore/Messages/Protos/Control.pb.h b/include/SimCore/Messages/Protos/Control.pb.h deleted file mode 100644 index 1389676..0000000 --- a/include/SimCore/Messages/Protos/Control.pb.h +++ /dev/null @@ -1,467 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Control.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_Control_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Control_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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 -#include "Identifier.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_Control_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Control_2eproto { - static const uint32_t offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Control_2eproto; -namespace messages { -namespace control { -class control; -struct controlDefaultTypeInternal; -extern controlDefaultTypeInternal _control_default_instance_; -} // namespace control -} // namespace messages -PROTOBUF_NAMESPACE_OPEN -template<> ::messages::control::control* Arena::CreateMaybeMessage<::messages::control::control>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace messages { -namespace control { - -// =================================================================== - -class control final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.control.control) */ { - public: - inline control() : control(nullptr) {} - ~control() override; - explicit PROTOBUF_CONSTEXPR control(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - control(const control& from); - control(control&& from) noexcept - : control() { - *this = ::std::move(from); - } - - inline control& operator=(const control& from) { - CopyFrom(from); - return *this; - } - inline control& operator=(control&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const control& default_instance() { - return *internal_default_instance(); - } - static inline const control* internal_default_instance() { - return reinterpret_cast( - &_control_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(control& a, control& b) { - a.Swap(&b); - } - inline void Swap(control* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(control* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - control* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const control& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const control& from) { - control::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(control* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "messages.control.control"; - } - protected: - explicit control(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDataFieldNumber = 3, - kIdentifierFieldNumber = 1, - kTimestampFieldNumber = 4, - kTypeFieldNumber = 2, - }; - // string data = 3; - void clear_data(); - const std::string& data() const; - template - void set_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_data(); - PROTOBUF_NODISCARD std::string* release_data(); - void set_allocated_data(std::string* data); - private: - const std::string& _internal_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_data(const std::string& value); - std::string* _internal_mutable_data(); - public: - - // .messages.track.Identifier Identifier = 1; - bool has_identifier() const; - private: - bool _internal_has_identifier() const; - public: - void clear_identifier(); - const ::messages::track::Identifier& identifier() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_identifier(); - ::messages::track::Identifier* mutable_identifier(); - void set_allocated_identifier(::messages::track::Identifier* identifier); - private: - const ::messages::track::Identifier& _internal_identifier() const; - ::messages::track::Identifier* _internal_mutable_identifier(); - public: - void unsafe_arena_set_allocated_identifier( - ::messages::track::Identifier* identifier); - ::messages::track::Identifier* unsafe_arena_release_identifier(); - - // optional uint64 timestamp = 4; - bool has_timestamp() const; - private: - bool _internal_has_timestamp() const; - public: - void clear_timestamp(); - uint64_t timestamp() const; - void set_timestamp(uint64_t value); - private: - uint64_t _internal_timestamp() const; - void _internal_set_timestamp(uint64_t value); - public: - - // uint32 type = 2; - void clear_type(); - uint32_t type() const; - void set_type(uint32_t value); - private: - uint32_t _internal_type() const; - void _internal_set_type(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:messages.control.control) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_; - ::messages::track::Identifier* identifier_; - uint64_t timestamp_; - uint32_t type_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_Control_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// control - -// .messages.track.Identifier Identifier = 1; -inline bool control::_internal_has_identifier() const { - return this != internal_default_instance() && _impl_.identifier_ != nullptr; -} -inline bool control::has_identifier() const { - return _internal_has_identifier(); -} -inline const ::messages::track::Identifier& control::_internal_identifier() const { - const ::messages::track::Identifier* p = _impl_.identifier_; - return p != nullptr ? *p : reinterpret_cast( - ::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& control::identifier() const { - // @@protoc_insertion_point(field_get:messages.control.control.Identifier) - return _internal_identifier(); -} -inline void control::unsafe_arena_set_allocated_identifier( - ::messages::track::Identifier* identifier) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.identifier_); - } - _impl_.identifier_ = identifier; - if (identifier) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.control.control.Identifier) -} -inline ::messages::track::Identifier* control::release_identifier() { - - ::messages::track::Identifier* temp = _impl_.identifier_; - _impl_.identifier_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::messages::track::Identifier* control::unsafe_arena_release_identifier() { - // @@protoc_insertion_point(field_release:messages.control.control.Identifier) - - ::messages::track::Identifier* temp = _impl_.identifier_; - _impl_.identifier_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* control::_internal_mutable_identifier() { - - if (_impl_.identifier_ == nullptr) { - auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation()); - _impl_.identifier_ = p; - } - return _impl_.identifier_; -} -inline ::messages::track::Identifier* control::mutable_identifier() { - ::messages::track::Identifier* _msg = _internal_mutable_identifier(); - // @@protoc_insertion_point(field_mutable:messages.control.control.Identifier) - return _msg; -} -inline void control::set_allocated_identifier(::messages::track::Identifier* identifier) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.identifier_); - } - if (identifier) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(identifier)); - if (message_arena != submessage_arena) { - identifier = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, identifier, submessage_arena); - } - - } else { - - } - _impl_.identifier_ = identifier; - // @@protoc_insertion_point(field_set_allocated:messages.control.control.Identifier) -} - -// uint32 type = 2; -inline void control::clear_type() { - _impl_.type_ = 0u; -} -inline uint32_t control::_internal_type() const { - return _impl_.type_; -} -inline uint32_t control::type() const { - // @@protoc_insertion_point(field_get:messages.control.control.type) - return _internal_type(); -} -inline void control::_internal_set_type(uint32_t value) { - - _impl_.type_ = value; -} -inline void control::set_type(uint32_t value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:messages.control.control.type) -} - -// string data = 3; -inline void control::clear_data() { - _impl_.data_.ClearToEmpty(); -} -inline const std::string& control::data() const { - // @@protoc_insertion_point(field_get:messages.control.control.data) - return _internal_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void control::set_data(ArgT0&& arg0, ArgT... args) { - - _impl_.data_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:messages.control.control.data) -} -inline std::string* control::mutable_data() { - std::string* _s = _internal_mutable_data(); - // @@protoc_insertion_point(field_mutable:messages.control.control.data) - return _s; -} -inline const std::string& control::_internal_data() const { - return _impl_.data_.Get(); -} -inline void control::_internal_set_data(const std::string& value) { - - _impl_.data_.Set(value, GetArenaForAllocation()); -} -inline std::string* control::_internal_mutable_data() { - - return _impl_.data_.Mutable(GetArenaForAllocation()); -} -inline std::string* control::release_data() { - // @@protoc_insertion_point(field_release:messages.control.control.data) - return _impl_.data_.Release(); -} -inline void control::set_allocated_data(std::string* data) { - if (data != nullptr) { - - } else { - - } - _impl_.data_.SetAllocated(data, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.data_.IsDefault()) { - _impl_.data_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.control.control.data) -} - -// optional uint64 timestamp = 4; -inline bool control::_internal_has_timestamp() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool control::has_timestamp() const { - return _internal_has_timestamp(); -} -inline void control::clear_timestamp() { - _impl_.timestamp_ = uint64_t{0u}; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline uint64_t control::_internal_timestamp() const { - return _impl_.timestamp_; -} -inline uint64_t control::timestamp() const { - // @@protoc_insertion_point(field_get:messages.control.control.timestamp) - return _internal_timestamp(); -} -inline void control::_internal_set_timestamp(uint64_t value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.timestamp_ = value; -} -inline void control::set_timestamp(uint64_t value) { - _internal_set_timestamp(value); - // @@protoc_insertion_point(field_set:messages.control.control.timestamp) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace control -} // namespace messages - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Control_2eproto diff --git a/include/SimCore/Messages/Protos/GeocentricPosition.pb.cc b/include/SimCore/Messages/Protos/GeocentricPosition.pb.cc deleted file mode 100644 index 2b1e484..0000000 --- a/include/SimCore/Messages/Protos/GeocentricPosition.pb.cc +++ /dev/null @@ -1,370 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GeocentricPosition.proto - -#include "GeocentricPosition.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - -namespace messages { -namespace track { -PROTOBUF_CONSTEXPR EntityGeocentricPosition::EntityGeocentricPosition( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.x_)*/0 - , /*decltype(_impl_.y_)*/0 - , /*decltype(_impl_.z_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct EntityGeocentricPositionDefaultTypeInternal { - PROTOBUF_CONSTEXPR EntityGeocentricPositionDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EntityGeocentricPositionDefaultTypeInternal() {} - union { - EntityGeocentricPosition _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EntityGeocentricPositionDefaultTypeInternal _EntityGeocentricPosition_default_instance_; -} // namespace track -} // namespace messages -static ::_pb::Metadata file_level_metadata_GeocentricPosition_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_GeocentricPosition_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_GeocentricPosition_2eproto = nullptr; - -const uint32_t TableStruct_GeocentricPosition_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::messages::track::EntityGeocentricPosition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::messages::track::EntityGeocentricPosition, _impl_.x_), - PROTOBUF_FIELD_OFFSET(::messages::track::EntityGeocentricPosition, _impl_.y_), - PROTOBUF_FIELD_OFFSET(::messages::track::EntityGeocentricPosition, _impl_.z_), -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::messages::track::EntityGeocentricPosition)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::track::_EntityGeocentricPosition_default_instance_._instance, -}; - -const char descriptor_table_protodef_GeocentricPosition_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\030GeocentricPosition.proto\022\016messages.tra" - "ck\";\n\030EntityGeocentricPosition\022\t\n\001X\030\001 \001(" - "\001\022\t\n\001Y\030\002 \001(\001\022\t\n\001Z\030\003 \001(\001b\006proto3" - ; -static ::_pbi::once_flag descriptor_table_GeocentricPosition_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_GeocentricPosition_2eproto = { - false, false, 111, descriptor_table_protodef_GeocentricPosition_2eproto, - "GeocentricPosition.proto", - &descriptor_table_GeocentricPosition_2eproto_once, nullptr, 0, 1, - schemas, file_default_instances, TableStruct_GeocentricPosition_2eproto::offsets, - file_level_metadata_GeocentricPosition_2eproto, file_level_enum_descriptors_GeocentricPosition_2eproto, - file_level_service_descriptors_GeocentricPosition_2eproto, -}; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_GeocentricPosition_2eproto_getter() { - return &descriptor_table_GeocentricPosition_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_GeocentricPosition_2eproto(&descriptor_table_GeocentricPosition_2eproto); -namespace messages { -namespace track { - -// =================================================================== - -class EntityGeocentricPosition::_Internal { - public: -}; - -EntityGeocentricPosition::EntityGeocentricPosition(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:messages.track.EntityGeocentricPosition) -} -EntityGeocentricPosition::EntityGeocentricPosition(const EntityGeocentricPosition& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - EntityGeocentricPosition* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.x_){} - , decltype(_impl_.y_){} - , decltype(_impl_.z_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&_impl_.x_, &from._impl_.x_, - static_cast(reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); - // @@protoc_insertion_point(copy_constructor:messages.track.EntityGeocentricPosition) -} - -inline void EntityGeocentricPosition::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.x_){0} - , decltype(_impl_.y_){0} - , decltype(_impl_.z_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; -} - -EntityGeocentricPosition::~EntityGeocentricPosition() { - // @@protoc_insertion_point(destructor:messages.track.EntityGeocentricPosition) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void EntityGeocentricPosition::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void EntityGeocentricPosition::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void EntityGeocentricPosition::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.track.EntityGeocentricPosition) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&_impl_.x_, 0, static_cast( - reinterpret_cast(&_impl_.z_) - - reinterpret_cast(&_impl_.x_)) + sizeof(_impl_.z_)); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* EntityGeocentricPosition::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // double X = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 9)) { - _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double Y = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { - _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double Z = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { - _impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* EntityGeocentricPosition::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.track.EntityGeocentricPosition) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // double X = 1; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_x = this->_internal_x(); - uint64_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(1, this->_internal_x(), target); - } - - // double Y = 2; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_y = this->_internal_y(); - uint64_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(2, this->_internal_y(), target); - } - - // double Z = 3; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_z = this->_internal_z(); - uint64_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_z(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.track.EntityGeocentricPosition) - return target; -} - -size_t EntityGeocentricPosition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.track.EntityGeocentricPosition) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // double X = 1; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_x = this->_internal_x(); - uint64_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - total_size += 1 + 8; - } - - // double Y = 2; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_y = this->_internal_y(); - uint64_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - total_size += 1 + 8; - } - - // double Z = 3; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_z = this->_internal_z(); - uint64_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - total_size += 1 + 8; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EntityGeocentricPosition::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - EntityGeocentricPosition::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EntityGeocentricPosition::GetClassData() const { return &_class_data_; } - - -void EntityGeocentricPosition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.track.EntityGeocentricPosition) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_x = from._internal_x(); - uint64_t raw_x; - memcpy(&raw_x, &tmp_x, sizeof(tmp_x)); - if (raw_x != 0) { - _this->_internal_set_x(from._internal_x()); - } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_y = from._internal_y(); - uint64_t raw_y; - memcpy(&raw_y, &tmp_y, sizeof(tmp_y)); - if (raw_y != 0) { - _this->_internal_set_y(from._internal_y()); - } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_z = from._internal_z(); - uint64_t raw_z; - memcpy(&raw_z, &tmp_z, sizeof(tmp_z)); - if (raw_z != 0) { - _this->_internal_set_z(from._internal_z()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void EntityGeocentricPosition::CopyFrom(const EntityGeocentricPosition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.track.EntityGeocentricPosition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EntityGeocentricPosition::IsInitialized() const { - return true; -} - -void EntityGeocentricPosition::InternalSwap(EntityGeocentricPosition* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.z_) - + sizeof(EntityGeocentricPosition::_impl_.z_) - - PROTOBUF_FIELD_OFFSET(EntityGeocentricPosition, _impl_.x_)>( - reinterpret_cast(&_impl_.x_), - reinterpret_cast(&other->_impl_.x_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata EntityGeocentricPosition::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_GeocentricPosition_2eproto_getter, &descriptor_table_GeocentricPosition_2eproto_once, - file_level_metadata_GeocentricPosition_2eproto[0]); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace track -} // namespace messages -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::messages::track::EntityGeocentricPosition* -Arena::CreateMaybeMessage< ::messages::track::EntityGeocentricPosition >(Arena* arena) { - return Arena::CreateMessageInternal< ::messages::track::EntityGeocentricPosition >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/include/SimCore/Messages/Protos/GeocentricPosition.pb.h b/include/SimCore/Messages/Protos/GeocentricPosition.pb.h deleted file mode 100644 index 6ac5600..0000000 --- a/include/SimCore/Messages/Protos/GeocentricPosition.pb.h +++ /dev/null @@ -1,313 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: GeocentricPosition.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_GeocentricPosition_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_GeocentricPosition_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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_GeocentricPosition_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_GeocentricPosition_2eproto { - static const uint32_t offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_GeocentricPosition_2eproto; -namespace messages { -namespace track { -class EntityGeocentricPosition; -struct EntityGeocentricPositionDefaultTypeInternal; -extern EntityGeocentricPositionDefaultTypeInternal _EntityGeocentricPosition_default_instance_; -} // namespace track -} // namespace messages -PROTOBUF_NAMESPACE_OPEN -template<> ::messages::track::EntityGeocentricPosition* Arena::CreateMaybeMessage<::messages::track::EntityGeocentricPosition>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace messages { -namespace track { - -// =================================================================== - -class EntityGeocentricPosition final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.track.EntityGeocentricPosition) */ { - public: - inline EntityGeocentricPosition() : EntityGeocentricPosition(nullptr) {} - ~EntityGeocentricPosition() override; - explicit PROTOBUF_CONSTEXPR EntityGeocentricPosition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - EntityGeocentricPosition(const EntityGeocentricPosition& from); - EntityGeocentricPosition(EntityGeocentricPosition&& from) noexcept - : EntityGeocentricPosition() { - *this = ::std::move(from); - } - - inline EntityGeocentricPosition& operator=(const EntityGeocentricPosition& from) { - CopyFrom(from); - return *this; - } - inline EntityGeocentricPosition& operator=(EntityGeocentricPosition&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const EntityGeocentricPosition& default_instance() { - return *internal_default_instance(); - } - static inline const EntityGeocentricPosition* internal_default_instance() { - return reinterpret_cast( - &_EntityGeocentricPosition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(EntityGeocentricPosition& a, EntityGeocentricPosition& b) { - a.Swap(&b); - } - inline void Swap(EntityGeocentricPosition* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EntityGeocentricPosition* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - EntityGeocentricPosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const EntityGeocentricPosition& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const EntityGeocentricPosition& from) { - EntityGeocentricPosition::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(EntityGeocentricPosition* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "messages.track.EntityGeocentricPosition"; - } - protected: - explicit EntityGeocentricPosition(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - kZFieldNumber = 3, - }; - // double X = 1; - void clear_x(); - double x() const; - void set_x(double value); - private: - double _internal_x() const; - void _internal_set_x(double value); - public: - - // double Y = 2; - void clear_y(); - double y() const; - void set_y(double value); - private: - double _internal_y() const; - void _internal_set_y(double value); - public: - - // double Z = 3; - void clear_z(); - double z() const; - void set_z(double value); - private: - double _internal_z() const; - void _internal_set_z(double value); - public: - - // @@protoc_insertion_point(class_scope:messages.track.EntityGeocentricPosition) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - double x_; - double y_; - double z_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_GeocentricPosition_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// EntityGeocentricPosition - -// double X = 1; -inline void EntityGeocentricPosition::clear_x() { - _impl_.x_ = 0; -} -inline double EntityGeocentricPosition::_internal_x() const { - return _impl_.x_; -} -inline double EntityGeocentricPosition::x() const { - // @@protoc_insertion_point(field_get:messages.track.EntityGeocentricPosition.X) - return _internal_x(); -} -inline void EntityGeocentricPosition::_internal_set_x(double value) { - - _impl_.x_ = value; -} -inline void EntityGeocentricPosition::set_x(double value) { - _internal_set_x(value); - // @@protoc_insertion_point(field_set:messages.track.EntityGeocentricPosition.X) -} - -// double Y = 2; -inline void EntityGeocentricPosition::clear_y() { - _impl_.y_ = 0; -} -inline double EntityGeocentricPosition::_internal_y() const { - return _impl_.y_; -} -inline double EntityGeocentricPosition::y() const { - // @@protoc_insertion_point(field_get:messages.track.EntityGeocentricPosition.Y) - return _internal_y(); -} -inline void EntityGeocentricPosition::_internal_set_y(double value) { - - _impl_.y_ = value; -} -inline void EntityGeocentricPosition::set_y(double value) { - _internal_set_y(value); - // @@protoc_insertion_point(field_set:messages.track.EntityGeocentricPosition.Y) -} - -// double Z = 3; -inline void EntityGeocentricPosition::clear_z() { - _impl_.z_ = 0; -} -inline double EntityGeocentricPosition::_internal_z() const { - return _impl_.z_; -} -inline double EntityGeocentricPosition::z() const { - // @@protoc_insertion_point(field_get:messages.track.EntityGeocentricPosition.Z) - return _internal_z(); -} -inline void EntityGeocentricPosition::_internal_set_z(double value) { - - _impl_.z_ = value; -} -inline void EntityGeocentricPosition::set_z(double value) { - _internal_set_z(value); - // @@protoc_insertion_point(field_set:messages.track.EntityGeocentricPosition.Z) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace track -} // namespace messages - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_GeocentricPosition_2eproto diff --git a/include/SimCore/Messages/Protos/Identifier.pb.cc b/include/SimCore/Messages/Protos/Identifier.pb.cc deleted file mode 100644 index 52c887a..0000000 --- a/include/SimCore/Messages/Protos/Identifier.pb.cc +++ /dev/null @@ -1,327 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Identifier.proto - -#include "Identifier.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - -namespace messages { -namespace track { -PROTOBUF_CONSTEXPR Identifier::Identifier( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.uuid_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.external_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct IdentifierDefaultTypeInternal { - PROTOBUF_CONSTEXPR IdentifierDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~IdentifierDefaultTypeInternal() {} - union { - Identifier _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IdentifierDefaultTypeInternal _Identifier_default_instance_; -} // namespace track -} // namespace messages -static ::_pb::Metadata file_level_metadata_Identifier_2eproto[1]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Identifier_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Identifier_2eproto = nullptr; - -const uint32_t TableStruct_Identifier_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::messages::track::Identifier, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::messages::track::Identifier, _impl_.external_), - PROTOBUF_FIELD_OFFSET(::messages::track::Identifier, _impl_.uuid_), -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::messages::track::Identifier)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::track::_Identifier_default_instance_._instance, -}; - -const char descriptor_table_protodef_Identifier_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\020Identifier.proto\022\016messages.track\",\n\nId" - "entifier\022\020\n\010external\030\001 \001(\010\022\014\n\004uuid\030\002 \001(\t" - "b\006proto3" - ; -static ::_pbi::once_flag descriptor_table_Identifier_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_Identifier_2eproto = { - false, false, 88, descriptor_table_protodef_Identifier_2eproto, - "Identifier.proto", - &descriptor_table_Identifier_2eproto_once, nullptr, 0, 1, - schemas, file_default_instances, TableStruct_Identifier_2eproto::offsets, - file_level_metadata_Identifier_2eproto, file_level_enum_descriptors_Identifier_2eproto, - file_level_service_descriptors_Identifier_2eproto, -}; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_Identifier_2eproto_getter() { - return &descriptor_table_Identifier_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_Identifier_2eproto(&descriptor_table_Identifier_2eproto); -namespace messages { -namespace track { - -// =================================================================== - -class Identifier::_Internal { - public: -}; - -Identifier::Identifier(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:messages.track.Identifier) -} -Identifier::Identifier(const Identifier& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Identifier* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.uuid_){} - , decltype(_impl_.external_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.uuid_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uuid_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_uuid().empty()) { - _this->_impl_.uuid_.Set(from._internal_uuid(), - _this->GetArenaForAllocation()); - } - _this->_impl_.external_ = from._impl_.external_; - // @@protoc_insertion_point(copy_constructor:messages.track.Identifier) -} - -inline void Identifier::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.uuid_){} - , decltype(_impl_.external_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.uuid_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uuid_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -Identifier::~Identifier() { - // @@protoc_insertion_point(destructor:messages.track.Identifier) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void Identifier::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.uuid_.Destroy(); -} - -void Identifier::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Identifier::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.track.Identifier) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.uuid_.ClearToEmpty(); - _impl_.external_ = false; - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Identifier::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // bool external = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.external_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string uuid = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_uuid(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "messages.track.Identifier.uuid")); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Identifier::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.track.Identifier) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // bool external = 1; - if (this->_internal_external() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_external(), target); - } - - // string uuid = 2; - if (!this->_internal_uuid().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_uuid().data(), static_cast(this->_internal_uuid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "messages.track.Identifier.uuid"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_uuid(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.track.Identifier) - return target; -} - -size_t Identifier::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.track.Identifier) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string uuid = 2; - if (!this->_internal_uuid().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_uuid()); - } - - // bool external = 1; - if (this->_internal_external() != 0) { - total_size += 1 + 1; - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Identifier::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Identifier::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Identifier::GetClassData() const { return &_class_data_; } - - -void Identifier::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.track.Identifier) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_uuid().empty()) { - _this->_internal_set_uuid(from._internal_uuid()); - } - if (from._internal_external() != 0) { - _this->_internal_set_external(from._internal_external()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void Identifier::CopyFrom(const Identifier& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.track.Identifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Identifier::IsInitialized() const { - return true; -} - -void Identifier::InternalSwap(Identifier* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.uuid_, lhs_arena, - &other->_impl_.uuid_, rhs_arena - ); - swap(_impl_.external_, other->_impl_.external_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Identifier::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_Identifier_2eproto_getter, &descriptor_table_Identifier_2eproto_once, - file_level_metadata_Identifier_2eproto[0]); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace track -} // namespace messages -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::messages::track::Identifier* -Arena::CreateMaybeMessage< ::messages::track::Identifier >(Arena* arena) { - return Arena::CreateMessageInternal< ::messages::track::Identifier >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/include/SimCore/Messages/Protos/Identifier.pb.h b/include/SimCore/Messages/Protos/Identifier.pb.h deleted file mode 100644 index 820b1b7..0000000 --- a/include/SimCore/Messages/Protos/Identifier.pb.h +++ /dev/null @@ -1,317 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Identifier.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_Identifier_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_Identifier_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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_Identifier_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_Identifier_2eproto { - static const uint32_t offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Identifier_2eproto; -namespace messages { -namespace track { -class Identifier; -struct IdentifierDefaultTypeInternal; -extern IdentifierDefaultTypeInternal _Identifier_default_instance_; -} // namespace track -} // namespace messages -PROTOBUF_NAMESPACE_OPEN -template<> ::messages::track::Identifier* Arena::CreateMaybeMessage<::messages::track::Identifier>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace messages { -namespace track { - -// =================================================================== - -class Identifier final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.track.Identifier) */ { - public: - inline Identifier() : Identifier(nullptr) {} - ~Identifier() override; - explicit PROTOBUF_CONSTEXPR Identifier(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Identifier(const Identifier& from); - Identifier(Identifier&& from) noexcept - : Identifier() { - *this = ::std::move(from); - } - - inline Identifier& operator=(const Identifier& from) { - CopyFrom(from); - return *this; - } - inline Identifier& operator=(Identifier&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Identifier& default_instance() { - return *internal_default_instance(); - } - static inline const Identifier* internal_default_instance() { - return reinterpret_cast( - &_Identifier_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Identifier& a, Identifier& b) { - a.Swap(&b); - } - inline void Swap(Identifier* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Identifier* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Identifier* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Identifier& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Identifier& from) { - Identifier::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Identifier* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "messages.track.Identifier"; - } - protected: - explicit Identifier(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kUuidFieldNumber = 2, - kExternalFieldNumber = 1, - }; - // string uuid = 2; - void clear_uuid(); - const std::string& uuid() const; - template - void set_uuid(ArgT0&& arg0, ArgT... args); - std::string* mutable_uuid(); - PROTOBUF_NODISCARD std::string* release_uuid(); - void set_allocated_uuid(std::string* uuid); - private: - const std::string& _internal_uuid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uuid(const std::string& value); - std::string* _internal_mutable_uuid(); - public: - - // bool external = 1; - void clear_external(); - bool external() const; - void set_external(bool value); - private: - bool _internal_external() const; - void _internal_set_external(bool value); - public: - - // @@protoc_insertion_point(class_scope:messages.track.Identifier) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uuid_; - bool external_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_Identifier_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Identifier - -// bool external = 1; -inline void Identifier::clear_external() { - _impl_.external_ = false; -} -inline bool Identifier::_internal_external() const { - return _impl_.external_; -} -inline bool Identifier::external() const { - // @@protoc_insertion_point(field_get:messages.track.Identifier.external) - return _internal_external(); -} -inline void Identifier::_internal_set_external(bool value) { - - _impl_.external_ = value; -} -inline void Identifier::set_external(bool value) { - _internal_set_external(value); - // @@protoc_insertion_point(field_set:messages.track.Identifier.external) -} - -// string uuid = 2; -inline void Identifier::clear_uuid() { - _impl_.uuid_.ClearToEmpty(); -} -inline const std::string& Identifier::uuid() const { - // @@protoc_insertion_point(field_get:messages.track.Identifier.uuid) - return _internal_uuid(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Identifier::set_uuid(ArgT0&& arg0, ArgT... args) { - - _impl_.uuid_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:messages.track.Identifier.uuid) -} -inline std::string* Identifier::mutable_uuid() { - std::string* _s = _internal_mutable_uuid(); - // @@protoc_insertion_point(field_mutable:messages.track.Identifier.uuid) - return _s; -} -inline const std::string& Identifier::_internal_uuid() const { - return _impl_.uuid_.Get(); -} -inline void Identifier::_internal_set_uuid(const std::string& value) { - - _impl_.uuid_.Set(value, GetArenaForAllocation()); -} -inline std::string* Identifier::_internal_mutable_uuid() { - - return _impl_.uuid_.Mutable(GetArenaForAllocation()); -} -inline std::string* Identifier::release_uuid() { - // @@protoc_insertion_point(field_release:messages.track.Identifier.uuid) - return _impl_.uuid_.Release(); -} -inline void Identifier::set_allocated_uuid(std::string* uuid) { - if (uuid != nullptr) { - - } else { - - } - _impl_.uuid_.SetAllocated(uuid, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.uuid_.IsDefault()) { - _impl_.uuid_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.track.Identifier.uuid) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace track -} // namespace messages - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Identifier_2eproto diff --git a/include/SimCore/Messages/Protos/SimTrack.pb.cc b/include/SimCore/Messages/Protos/SimTrack.pb.cc deleted file mode 100644 index f7e87a1..0000000 --- a/include/SimCore/Messages/Protos/SimTrack.pb.cc +++ /dev/null @@ -1,1292 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SimTrack.proto - -#include "SimTrack.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG - -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; - -namespace messages { -namespace SimTrack { -PROTOBUF_CONSTEXPR SimTrack::SimTrack( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.contactemissions_)*/{} - , /*decltype(_impl_.conatactname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.entityidentifier_)*/nullptr - , /*decltype(_impl_.geocentricposition_)*/nullptr - , /*decltype(_impl_.contactspeed_)*/0 - , /*decltype(_impl_.contactsourcetype_)*/0u - , /*decltype(_impl_.contactkind_)*/0u - , /*decltype(_impl_.contactcourse_)*/0 - , /*decltype(_impl_.conactpitch_)*/0 - , /*decltype(_impl_.contactrcs_)*/0 - , /*decltype(_impl_.contactside_)*/0u} {} -struct SimTrackDefaultTypeInternal { - PROTOBUF_CONSTEXPR SimTrackDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~SimTrackDefaultTypeInternal() {} - union { - SimTrack _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SimTrackDefaultTypeInternal _SimTrack_default_instance_; -PROTOBUF_CONSTEXPR Emission::Emission( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_._has_bits_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.identifier_)*/nullptr - , /*decltype(_impl_.frequency_)*/0 - , /*decltype(_impl_.range_)*/0 - , /*decltype(_impl_.bandwidth_)*/0u - , /*decltype(_impl_.pulsewidth_)*/0u - , /*decltype(_impl_.pulserepitition_)*/0u - , /*decltype(_impl_.radiatedpower_)*/0u - , /*decltype(_impl_.numberofbeams_)*/0u - , /*decltype(_impl_.searchinterval_)*/0u} {} -struct EmissionDefaultTypeInternal { - PROTOBUF_CONSTEXPR EmissionDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~EmissionDefaultTypeInternal() {} - union { - Emission _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmissionDefaultTypeInternal _Emission_default_instance_; -} // namespace SimTrack -} // namespace messages -static ::_pb::Metadata file_level_metadata_SimTrack_2eproto[2]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_SimTrack_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_SimTrack_2eproto = nullptr; - -const uint32_t TableStruct_SimTrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.entityidentifier_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.conatactname_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactsourcetype_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.geocentricposition_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactspeed_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactcourse_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.conactpitch_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactkind_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactside_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactrcs_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactemissions_), - ~0u, - ~0u, - 2, - 0, - 1, - 4, - 5, - 3, - 7, - 6, - ~0u, - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_._has_bits_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.identifier_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.frequency_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.range_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.bandwidth_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.pulsewidth_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.pulserepitition_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.radiatedpower_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.numberofbeams_), - PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_.searchinterval_), - ~0u, - ~0u, - ~0u, - ~0u, - 0, - 1, - 2, - 3, - 4, - 5, -}; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 17, -1, sizeof(::messages::SimTrack::SimTrack)}, - { 28, 44, -1, sizeof(::messages::SimTrack::Emission)}, -}; - -static const ::_pb::Message* const file_default_instances[] = { - &::messages::SimTrack::_SimTrack_default_instance_._instance, - &::messages::SimTrack::_Emission_default_instance_._instance, -}; - -const char descriptor_table_protodef_SimTrack_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\016SimTrack.proto\022\021messages.SimTrack\032\037goo" - "gle/protobuf/timestamp.proto\032\036google/pro" - "tobuf/duration.proto\032\020Identifier.proto\032\030" - "GeocentricPosition.proto\"\245\004\n\010SimTrack\0224\n" - "\020EntityIdentifier\030\001 \001(\0132\032.messages.track" - ".Identifier\022\024\n\014ConatactName\030\002 \001(\t\022\036\n\021Con" - "tactSourceType\030\003 \001(\rH\000\210\001\001\022I\n\022GeocentricP" - "osition\030\004 \001(\0132(.messages.track.EntityGeo" - "centricPositionH\001\210\001\001\022\031\n\014ContactSpeed\030\005 \001" - "(\001H\002\210\001\001\022\032\n\rContactCourse\030\006 \001(\001H\003\210\001\001\022\030\n\013C" - "onactPitch\030\007 \001(\001H\004\210\001\001\022\030\n\013ContactKind\030\010 \001" - "(\rH\005\210\001\001\022\030\n\013ContactSide\030\t \001(\rH\006\210\001\001\022\027\n\nCon" - "tactRCS\030\n \001(\001H\007\210\001\001\0225\n\020ContactEmissions\030\013" - " \003(\0132\033.messages.SimTrack.EmissionB\024\n\022_Co" - "ntactSourceTypeB\025\n\023_GeocentricPositionB\017" - "\n\r_ContactSpeedB\020\n\016_ContactCourseB\016\n\014_Co" - "nactPitchB\016\n\014_ContactKindB\016\n\014_ContactSid" - "eB\r\n\013_ContactRCS\"\366\002\n\010Emission\022.\n\nIdentif" - "ier\030\001 \001(\0132\032.messages.track.Identifier\022\014\n" - "\004name\030\002 \001(\t\022\021\n\tfrequency\030\003 \001(\001\022\r\n\005Range\030" - "\004 \001(\001\022\026\n\tBandwidth\030\005 \001(\rH\000\210\001\001\022\027\n\npulseWi" - "dth\030\006 \001(\rH\001\210\001\001\022\034\n\017pulseRepitition\030\007 \001(\rH" - "\002\210\001\001\022\032\n\rradiatedPower\030\010 \001(\rH\003\210\001\001\022\032\n\rnumb" - "erOfBeams\030\t \001(\rH\004\210\001\001\022\033\n\016searchInterval\030\n" - " \001(\rH\005\210\001\001B\014\n\n_BandwidthB\r\n\013_pulseWidthB\022" - "\n\020_pulseRepititionB\020\n\016_radiatedPowerB\020\n\016" - "_numberOfBeamsB\021\n\017_searchIntervalb\006proto" - "3" - ; -static const ::_pbi::DescriptorTable* const descriptor_table_SimTrack_2eproto_deps[4] = { - &::descriptor_table_GeocentricPosition_2eproto, - &::descriptor_table_Identifier_2eproto, - &::descriptor_table_google_2fprotobuf_2fduration_2eproto, - &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, -}; -static ::_pbi::once_flag descriptor_table_SimTrack_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_SimTrack_2eproto = { - false, false, 1081, descriptor_table_protodef_SimTrack_2eproto, - "SimTrack.proto", - &descriptor_table_SimTrack_2eproto_once, descriptor_table_SimTrack_2eproto_deps, 4, 2, - schemas, file_default_instances, TableStruct_SimTrack_2eproto::offsets, - file_level_metadata_SimTrack_2eproto, file_level_enum_descriptors_SimTrack_2eproto, - file_level_service_descriptors_SimTrack_2eproto, -}; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_SimTrack_2eproto_getter() { - return &descriptor_table_SimTrack_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_SimTrack_2eproto(&descriptor_table_SimTrack_2eproto); -namespace messages { -namespace SimTrack { - -// =================================================================== - -class SimTrack::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static const ::messages::track::Identifier& entityidentifier(const SimTrack* msg); - static void set_has_contactsourcetype(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::messages::track::EntityGeocentricPosition& geocentricposition(const SimTrack* msg); - static void set_has_geocentricposition(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_contactspeed(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_contactcourse(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_conactpitch(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_contactkind(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_contactside(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_contactrcs(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } -}; - -const ::messages::track::Identifier& -SimTrack::_Internal::entityidentifier(const SimTrack* msg) { - return *msg->_impl_.entityidentifier_; -} -const ::messages::track::EntityGeocentricPosition& -SimTrack::_Internal::geocentricposition(const SimTrack* msg) { - return *msg->_impl_.geocentricposition_; -} -void SimTrack::clear_entityidentifier() { - if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) { - delete _impl_.entityidentifier_; - } - _impl_.entityidentifier_ = nullptr; -} -void SimTrack::clear_geocentricposition() { - if (_impl_.geocentricposition_ != nullptr) _impl_.geocentricposition_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; -} -SimTrack::SimTrack(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:messages.SimTrack.SimTrack) -} -SimTrack::SimTrack(const SimTrack& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SimTrack* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.contactemissions_){from._impl_.contactemissions_} - , decltype(_impl_.conatactname_){} - , decltype(_impl_.entityidentifier_){nullptr} - , decltype(_impl_.geocentricposition_){nullptr} - , decltype(_impl_.contactspeed_){} - , decltype(_impl_.contactsourcetype_){} - , decltype(_impl_.contactkind_){} - , decltype(_impl_.contactcourse_){} - , decltype(_impl_.conactpitch_){} - , decltype(_impl_.contactrcs_){} - , decltype(_impl_.contactside_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.conatactname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.conatactname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_conatactname().empty()) { - _this->_impl_.conatactname_.Set(from._internal_conatactname(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_entityidentifier()) { - _this->_impl_.entityidentifier_ = new ::messages::track::Identifier(*from._impl_.entityidentifier_); - } - if (from._internal_has_geocentricposition()) { - _this->_impl_.geocentricposition_ = new ::messages::track::EntityGeocentricPosition(*from._impl_.geocentricposition_); - } - ::memcpy(&_impl_.contactspeed_, &from._impl_.contactspeed_, - static_cast(reinterpret_cast(&_impl_.contactside_) - - reinterpret_cast(&_impl_.contactspeed_)) + sizeof(_impl_.contactside_)); - // @@protoc_insertion_point(copy_constructor:messages.SimTrack.SimTrack) -} - -inline void SimTrack::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.contactemissions_){arena} - , decltype(_impl_.conatactname_){} - , decltype(_impl_.entityidentifier_){nullptr} - , decltype(_impl_.geocentricposition_){nullptr} - , decltype(_impl_.contactspeed_){0} - , decltype(_impl_.contactsourcetype_){0u} - , decltype(_impl_.contactkind_){0u} - , decltype(_impl_.contactcourse_){0} - , decltype(_impl_.conactpitch_){0} - , decltype(_impl_.contactrcs_){0} - , decltype(_impl_.contactside_){0u} - }; - _impl_.conatactname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.conatactname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -SimTrack::~SimTrack() { - // @@protoc_insertion_point(destructor:messages.SimTrack.SimTrack) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void SimTrack::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.contactemissions_.~RepeatedPtrField(); - _impl_.conatactname_.Destroy(); - if (this != internal_default_instance()) delete _impl_.entityidentifier_; - if (this != internal_default_instance()) delete _impl_.geocentricposition_; -} - -void SimTrack::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SimTrack::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.SimTrack.SimTrack) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.contactemissions_.Clear(); - _impl_.conatactname_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) { - delete _impl_.entityidentifier_; - } - _impl_.entityidentifier_ = nullptr; - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(_impl_.geocentricposition_ != nullptr); - _impl_.geocentricposition_->Clear(); - } - if (cached_has_bits & 0x000000feu) { - ::memset(&_impl_.contactspeed_, 0, static_cast( - reinterpret_cast(&_impl_.contactside_) - - reinterpret_cast(&_impl_.contactspeed_)) + sizeof(_impl_.contactside_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SimTrack::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .messages.track.Identifier EntityIdentifier = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_entityidentifier(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string ConatactName = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_conatactname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "messages.SimTrack.SimTrack.ConatactName")); - } else - goto handle_unusual; - continue; - // optional uint32 ContactSourceType = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_contactsourcetype(&has_bits); - _impl_.contactsourcetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_geocentricposition(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional double ContactSpeed = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { - _Internal::set_has_contactspeed(&has_bits); - _impl_.contactspeed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // optional double ContactCourse = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { - _Internal::set_has_contactcourse(&has_bits); - _impl_.contactcourse_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // optional double ConactPitch = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 57)) { - _Internal::set_has_conactpitch(&has_bits); - _impl_.conactpitch_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // optional uint32 ContactKind = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_contactkind(&has_bits); - _impl_.contactkind_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 ContactSide = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_contactside(&has_bits); - _impl_.contactside_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional double ContactRCS = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 81)) { - _Internal::set_has_contactrcs(&has_bits); - _impl_.contactrcs_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_contactemissions(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* SimTrack::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.SimTrack.SimTrack) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .messages.track.Identifier EntityIdentifier = 1; - if (this->_internal_has_entityidentifier()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::entityidentifier(this), - _Internal::entityidentifier(this).GetCachedSize(), target, stream); - } - - // string ConatactName = 2; - if (!this->_internal_conatactname().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_conatactname().data(), static_cast(this->_internal_conatactname().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "messages.SimTrack.SimTrack.ConatactName"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_conatactname(), target); - } - - // optional uint32 ContactSourceType = 3; - if (_internal_has_contactsourcetype()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_contactsourcetype(), target); - } - - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - if (_internal_has_geocentricposition()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::geocentricposition(this), - _Internal::geocentricposition(this).GetCachedSize(), target, stream); - } - - // optional double ContactSpeed = 5; - if (_internal_has_contactspeed()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_contactspeed(), target); - } - - // optional double ContactCourse = 6; - if (_internal_has_contactcourse()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_contactcourse(), target); - } - - // optional double ConactPitch = 7; - if (_internal_has_conactpitch()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(7, this->_internal_conactpitch(), target); - } - - // optional uint32 ContactKind = 8; - if (_internal_has_contactkind()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_contactkind(), target); - } - - // optional uint32 ContactSide = 9; - if (_internal_has_contactside()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_contactside(), target); - } - - // optional double ContactRCS = 10; - if (_internal_has_contactrcs()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(10, this->_internal_contactrcs(), target); - } - - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - for (unsigned i = 0, - n = static_cast(this->_internal_contactemissions_size()); i < n; i++) { - const auto& repfield = this->_internal_contactemissions(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.SimTrack.SimTrack) - return target; -} - -size_t SimTrack::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.SimTrack.SimTrack) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - total_size += 1UL * this->_internal_contactemissions_size(); - for (const auto& msg : this->_impl_.contactemissions_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - // string ConatactName = 2; - if (!this->_internal_conatactname().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_conatactname()); - } - - // .messages.track.Identifier EntityIdentifier = 1; - if (this->_internal_has_entityidentifier()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.entityidentifier_); - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.geocentricposition_); - } - - // optional double ContactSpeed = 5; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 8; - } - - // optional uint32 ContactSourceType = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactsourcetype()); - } - - // optional uint32 ContactKind = 8; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactkind()); - } - - // optional double ContactCourse = 6; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + 8; - } - - // optional double ConactPitch = 7; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 8; - } - - // optional double ContactRCS = 10; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 8; - } - - // optional uint32 ContactSide = 9; - if (cached_has_bits & 0x00000080u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactside()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SimTrack::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SimTrack::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SimTrack::GetClassData() const { return &_class_data_; } - - -void SimTrack::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.SimTrack.SimTrack) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_impl_.contactemissions_.MergeFrom(from._impl_.contactemissions_); - if (!from._internal_conatactname().empty()) { - _this->_internal_set_conatactname(from._internal_conatactname()); - } - if (from._internal_has_entityidentifier()) { - _this->_internal_mutable_entityidentifier()->::messages::track::Identifier::MergeFrom( - from._internal_entityidentifier()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _this->_internal_mutable_geocentricposition()->::messages::track::EntityGeocentricPosition::MergeFrom( - from._internal_geocentricposition()); - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.contactspeed_ = from._impl_.contactspeed_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.contactsourcetype_ = from._impl_.contactsourcetype_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.contactkind_ = from._impl_.contactkind_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.contactcourse_ = from._impl_.contactcourse_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.conactpitch_ = from._impl_.conactpitch_; - } - if (cached_has_bits & 0x00000040u) { - _this->_impl_.contactrcs_ = from._impl_.contactrcs_; - } - if (cached_has_bits & 0x00000080u) { - _this->_impl_.contactside_ = from._impl_.contactside_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void SimTrack::CopyFrom(const SimTrack& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.SimTrack.SimTrack) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SimTrack::IsInitialized() const { - return true; -} - -void SimTrack::InternalSwap(SimTrack* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.contactemissions_.InternalSwap(&other->_impl_.contactemissions_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.conatactname_, lhs_arena, - &other->_impl_.conatactname_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactside_) - + sizeof(SimTrack::_impl_.contactside_) - - PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.entityidentifier_)>( - reinterpret_cast(&_impl_.entityidentifier_), - reinterpret_cast(&other->_impl_.entityidentifier_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SimTrack::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_SimTrack_2eproto_getter, &descriptor_table_SimTrack_2eproto_once, - file_level_metadata_SimTrack_2eproto[0]); -} - -// =================================================================== - -class Emission::_Internal { - public: - using HasBits = decltype(std::declval()._impl_._has_bits_); - static const ::messages::track::Identifier& identifier(const Emission* msg); - static void set_has_bandwidth(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_pulsewidth(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_pulserepitition(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_radiatedpower(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_numberofbeams(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_searchinterval(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } -}; - -const ::messages::track::Identifier& -Emission::_Internal::identifier(const Emission* msg) { - return *msg->_impl_.identifier_; -} -void Emission::clear_identifier() { - if (GetArenaForAllocation() == nullptr && _impl_.identifier_ != nullptr) { - delete _impl_.identifier_; - } - _impl_.identifier_ = nullptr; -} -Emission::Emission(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:messages.SimTrack.Emission) -} -Emission::Emission(const Emission& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Emission* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.identifier_){nullptr} - , decltype(_impl_.frequency_){} - , decltype(_impl_.range_){} - , decltype(_impl_.bandwidth_){} - , decltype(_impl_.pulsewidth_){} - , decltype(_impl_.pulserepitition_){} - , decltype(_impl_.radiatedpower_){} - , decltype(_impl_.numberofbeams_){} - , decltype(_impl_.searchinterval_){}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_identifier()) { - _this->_impl_.identifier_ = new ::messages::track::Identifier(*from._impl_.identifier_); - } - ::memcpy(&_impl_.frequency_, &from._impl_.frequency_, - static_cast(reinterpret_cast(&_impl_.searchinterval_) - - reinterpret_cast(&_impl_.frequency_)) + sizeof(_impl_.searchinterval_)); - // @@protoc_insertion_point(copy_constructor:messages.SimTrack.Emission) -} - -inline void Emission::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){} - , /*decltype(_impl_._cached_size_)*/{} - , decltype(_impl_.name_){} - , decltype(_impl_.identifier_){nullptr} - , decltype(_impl_.frequency_){0} - , decltype(_impl_.range_){0} - , decltype(_impl_.bandwidth_){0u} - , decltype(_impl_.pulsewidth_){0u} - , decltype(_impl_.pulserepitition_){0u} - , decltype(_impl_.radiatedpower_){0u} - , decltype(_impl_.numberofbeams_){0u} - , decltype(_impl_.searchinterval_){0u} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -Emission::~Emission() { - // @@protoc_insertion_point(destructor:messages.SimTrack.Emission) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void Emission::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.identifier_; -} - -void Emission::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void Emission::Clear() { -// @@protoc_insertion_point(message_clear_start:messages.SimTrack.Emission) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.identifier_ != nullptr) { - delete _impl_.identifier_; - } - _impl_.identifier_ = nullptr; - ::memset(&_impl_.frequency_, 0, static_cast( - reinterpret_cast(&_impl_.range_) - - reinterpret_cast(&_impl_.frequency_)) + sizeof(_impl_.range_)); - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - ::memset(&_impl_.bandwidth_, 0, static_cast( - reinterpret_cast(&_impl_.searchinterval_) - - reinterpret_cast(&_impl_.bandwidth_)) + sizeof(_impl_.searchinterval_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* Emission::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .messages.track.Identifier Identifier = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_identifier(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // string name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "messages.SimTrack.Emission.name")); - } else - goto handle_unusual; - continue; - // double frequency = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 25)) { - _impl_.frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // double Range = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { - _impl_.range_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else - goto handle_unusual; - continue; - // optional uint32 Bandwidth = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_bandwidth(&has_bits); - _impl_.bandwidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 pulseWidth = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_pulsewidth(&has_bits); - _impl_.pulsewidth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 pulseRepitition = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_pulserepitition(&has_bits); - _impl_.pulserepitition_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 radiatedPower = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_radiatedpower(&has_bits); - _impl_.radiatedpower_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 numberOfBeams = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_numberofbeams(&has_bits); - _impl_.numberofbeams_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 searchInterval = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_searchinterval(&has_bits); - _impl_.searchinterval_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* Emission::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:messages.SimTrack.Emission) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // .messages.track.Identifier Identifier = 1; - if (this->_internal_has_identifier()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::identifier(this), - _Internal::identifier(this).GetCachedSize(), target, stream); - } - - // string name = 2; - if (!this->_internal_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "messages.SimTrack.Emission.name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_name(), target); - } - - // double frequency = 3; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_frequency = this->_internal_frequency(); - uint64_t raw_frequency; - memcpy(&raw_frequency, &tmp_frequency, sizeof(tmp_frequency)); - if (raw_frequency != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_frequency(), target); - } - - // double Range = 4; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_range = this->_internal_range(); - uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_range(), target); - } - - // optional uint32 Bandwidth = 5; - if (_internal_has_bandwidth()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(5, this->_internal_bandwidth(), target); - } - - // optional uint32 pulseWidth = 6; - if (_internal_has_pulsewidth()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(6, this->_internal_pulsewidth(), target); - } - - // optional uint32 pulseRepitition = 7; - if (_internal_has_pulserepitition()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_pulserepitition(), target); - } - - // optional uint32 radiatedPower = 8; - if (_internal_has_radiatedpower()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_radiatedpower(), target); - } - - // optional uint32 numberOfBeams = 9; - if (_internal_has_numberofbeams()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_numberofbeams(), target); - } - - // optional uint32 searchInterval = 10; - if (_internal_has_searchinterval()) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_searchinterval(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:messages.SimTrack.Emission) - return target; -} - -size_t Emission::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:messages.SimTrack.Emission) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string name = 2; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // .messages.track.Identifier Identifier = 1; - if (this->_internal_has_identifier()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.identifier_); - } - - // double frequency = 3; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_frequency = this->_internal_frequency(); - uint64_t raw_frequency; - memcpy(&raw_frequency, &tmp_frequency, sizeof(tmp_frequency)); - if (raw_frequency != 0) { - total_size += 1 + 8; - } - - // double Range = 4; - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_range = this->_internal_range(); - uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - total_size += 1 + 8; - } - - cached_has_bits = _impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional uint32 Bandwidth = 5; - if (cached_has_bits & 0x00000001u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_bandwidth()); - } - - // optional uint32 pulseWidth = 6; - if (cached_has_bits & 0x00000002u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pulsewidth()); - } - - // optional uint32 pulseRepitition = 7; - if (cached_has_bits & 0x00000004u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_pulserepitition()); - } - - // optional uint32 radiatedPower = 8; - if (cached_has_bits & 0x00000008u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_radiatedpower()); - } - - // optional uint32 numberOfBeams = 9; - if (cached_has_bits & 0x00000010u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_numberofbeams()); - } - - // optional uint32 searchInterval = 10; - if (cached_has_bits & 0x00000020u) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_searchinterval()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Emission::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Emission::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Emission::GetClassData() const { return &_class_data_; } - - -void Emission::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:messages.SimTrack.Emission) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (from._internal_has_identifier()) { - _this->_internal_mutable_identifier()->::messages::track::Identifier::MergeFrom( - from._internal_identifier()); - } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_frequency = from._internal_frequency(); - uint64_t raw_frequency; - memcpy(&raw_frequency, &tmp_frequency, sizeof(tmp_frequency)); - if (raw_frequency != 0) { - _this->_internal_set_frequency(from._internal_frequency()); - } - static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); - double tmp_range = from._internal_range(); - uint64_t raw_range; - memcpy(&raw_range, &tmp_range, sizeof(tmp_range)); - if (raw_range != 0) { - _this->_internal_set_range(from._internal_range()); - } - cached_has_bits = from._impl_._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _this->_impl_.bandwidth_ = from._impl_.bandwidth_; - } - if (cached_has_bits & 0x00000002u) { - _this->_impl_.pulsewidth_ = from._impl_.pulsewidth_; - } - if (cached_has_bits & 0x00000004u) { - _this->_impl_.pulserepitition_ = from._impl_.pulserepitition_; - } - if (cached_has_bits & 0x00000008u) { - _this->_impl_.radiatedpower_ = from._impl_.radiatedpower_; - } - if (cached_has_bits & 0x00000010u) { - _this->_impl_.numberofbeams_ = from._impl_.numberofbeams_; - } - if (cached_has_bits & 0x00000020u) { - _this->_impl_.searchinterval_ = from._impl_.searchinterval_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void Emission::CopyFrom(const Emission& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:messages.SimTrack.Emission) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Emission::IsInitialized() const { - return true; -} - -void Emission::InternalSwap(Emission* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Emission, _impl_.searchinterval_) - + sizeof(Emission::_impl_.searchinterval_) - - PROTOBUF_FIELD_OFFSET(Emission, _impl_.identifier_)>( - reinterpret_cast(&_impl_.identifier_), - reinterpret_cast(&other->_impl_.identifier_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata Emission::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_SimTrack_2eproto_getter, &descriptor_table_SimTrack_2eproto_once, - file_level_metadata_SimTrack_2eproto[1]); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace SimTrack -} // namespace messages -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::messages::SimTrack::SimTrack* -Arena::CreateMaybeMessage< ::messages::SimTrack::SimTrack >(Arena* arena) { - return Arena::CreateMessageInternal< ::messages::SimTrack::SimTrack >(arena); -} -template<> PROTOBUF_NOINLINE ::messages::SimTrack::Emission* -Arena::CreateMaybeMessage< ::messages::SimTrack::Emission >(Arena* arena) { - return Arena::CreateMessageInternal< ::messages::SimTrack::Emission >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/include/SimCore/Messages/Protos/SimTrack.pb.h b/include/SimCore/Messages/Protos/SimTrack.pb.h deleted file mode 100644 index 5481ddd..0000000 --- a/include/SimCore/Messages/Protos/SimTrack.pb.h +++ /dev/null @@ -1,1503 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SimTrack.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_SimTrack_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_SimTrack_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3021000 -#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 3021012 < 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 -#include -#include -#include "Identifier.pb.h" -#include "GeocentricPosition.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_SimTrack_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_SimTrack_2eproto { - static const uint32_t offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_SimTrack_2eproto; -namespace messages { -namespace SimTrack { -class Emission; -struct EmissionDefaultTypeInternal; -extern EmissionDefaultTypeInternal _Emission_default_instance_; -class SimTrack; -struct SimTrackDefaultTypeInternal; -extern SimTrackDefaultTypeInternal _SimTrack_default_instance_; -} // namespace SimTrack -} // namespace messages -PROTOBUF_NAMESPACE_OPEN -template<> ::messages::SimTrack::Emission* Arena::CreateMaybeMessage<::messages::SimTrack::Emission>(Arena*); -template<> ::messages::SimTrack::SimTrack* Arena::CreateMaybeMessage<::messages::SimTrack::SimTrack>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace messages { -namespace SimTrack { - -// =================================================================== - -class SimTrack final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SimTrack.SimTrack) */ { - public: - inline SimTrack() : SimTrack(nullptr) {} - ~SimTrack() override; - explicit PROTOBUF_CONSTEXPR SimTrack(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SimTrack(const SimTrack& from); - SimTrack(SimTrack&& from) noexcept - : SimTrack() { - *this = ::std::move(from); - } - - inline SimTrack& operator=(const SimTrack& from) { - CopyFrom(from); - return *this; - } - inline SimTrack& operator=(SimTrack&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SimTrack& default_instance() { - return *internal_default_instance(); - } - static inline const SimTrack* internal_default_instance() { - return reinterpret_cast( - &_SimTrack_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(SimTrack& a, SimTrack& b) { - a.Swap(&b); - } - inline void Swap(SimTrack* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SimTrack* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SimTrack* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SimTrack& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SimTrack& from) { - SimTrack::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SimTrack* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "messages.SimTrack.SimTrack"; - } - protected: - explicit SimTrack(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kContactEmissionsFieldNumber = 11, - kConatactNameFieldNumber = 2, - kEntityIdentifierFieldNumber = 1, - kGeocentricPositionFieldNumber = 4, - kContactSpeedFieldNumber = 5, - kContactSourceTypeFieldNumber = 3, - kContactKindFieldNumber = 8, - kContactCourseFieldNumber = 6, - kConactPitchFieldNumber = 7, - kContactRCSFieldNumber = 10, - kContactSideFieldNumber = 9, - }; - // repeated .messages.SimTrack.Emission ContactEmissions = 11; - int contactemissions_size() const; - private: - int _internal_contactemissions_size() const; - public: - void clear_contactemissions(); - ::messages::SimTrack::Emission* mutable_contactemissions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission >* - mutable_contactemissions(); - private: - const ::messages::SimTrack::Emission& _internal_contactemissions(int index) const; - ::messages::SimTrack::Emission* _internal_add_contactemissions(); - public: - const ::messages::SimTrack::Emission& contactemissions(int index) const; - ::messages::SimTrack::Emission* add_contactemissions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission >& - contactemissions() const; - - // string ConatactName = 2; - void clear_conatactname(); - const std::string& conatactname() const; - template - void set_conatactname(ArgT0&& arg0, ArgT... args); - std::string* mutable_conatactname(); - PROTOBUF_NODISCARD std::string* release_conatactname(); - void set_allocated_conatactname(std::string* conatactname); - private: - const std::string& _internal_conatactname() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_conatactname(const std::string& value); - std::string* _internal_mutable_conatactname(); - public: - - // .messages.track.Identifier EntityIdentifier = 1; - bool has_entityidentifier() const; - private: - bool _internal_has_entityidentifier() const; - public: - void clear_entityidentifier(); - const ::messages::track::Identifier& entityidentifier() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_entityidentifier(); - ::messages::track::Identifier* mutable_entityidentifier(); - void set_allocated_entityidentifier(::messages::track::Identifier* entityidentifier); - private: - const ::messages::track::Identifier& _internal_entityidentifier() const; - ::messages::track::Identifier* _internal_mutable_entityidentifier(); - public: - void unsafe_arena_set_allocated_entityidentifier( - ::messages::track::Identifier* entityidentifier); - ::messages::track::Identifier* unsafe_arena_release_entityidentifier(); - - // optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; - bool has_geocentricposition() const; - private: - bool _internal_has_geocentricposition() const; - public: - void clear_geocentricposition(); - const ::messages::track::EntityGeocentricPosition& geocentricposition() const; - PROTOBUF_NODISCARD ::messages::track::EntityGeocentricPosition* release_geocentricposition(); - ::messages::track::EntityGeocentricPosition* mutable_geocentricposition(); - void set_allocated_geocentricposition(::messages::track::EntityGeocentricPosition* geocentricposition); - private: - const ::messages::track::EntityGeocentricPosition& _internal_geocentricposition() const; - ::messages::track::EntityGeocentricPosition* _internal_mutable_geocentricposition(); - public: - void unsafe_arena_set_allocated_geocentricposition( - ::messages::track::EntityGeocentricPosition* geocentricposition); - ::messages::track::EntityGeocentricPosition* unsafe_arena_release_geocentricposition(); - - // optional double ContactSpeed = 5; - bool has_contactspeed() const; - private: - bool _internal_has_contactspeed() const; - public: - void clear_contactspeed(); - double contactspeed() const; - void set_contactspeed(double value); - private: - double _internal_contactspeed() const; - void _internal_set_contactspeed(double value); - public: - - // optional uint32 ContactSourceType = 3; - bool has_contactsourcetype() const; - private: - bool _internal_has_contactsourcetype() const; - public: - void clear_contactsourcetype(); - uint32_t contactsourcetype() const; - void set_contactsourcetype(uint32_t value); - private: - uint32_t _internal_contactsourcetype() const; - void _internal_set_contactsourcetype(uint32_t value); - public: - - // optional uint32 ContactKind = 8; - bool has_contactkind() const; - private: - bool _internal_has_contactkind() const; - public: - void clear_contactkind(); - uint32_t contactkind() const; - void set_contactkind(uint32_t value); - private: - uint32_t _internal_contactkind() const; - void _internal_set_contactkind(uint32_t value); - public: - - // optional double ContactCourse = 6; - bool has_contactcourse() const; - private: - bool _internal_has_contactcourse() const; - public: - void clear_contactcourse(); - double contactcourse() const; - void set_contactcourse(double value); - private: - double _internal_contactcourse() const; - void _internal_set_contactcourse(double value); - public: - - // optional double ConactPitch = 7; - bool has_conactpitch() const; - private: - bool _internal_has_conactpitch() const; - public: - void clear_conactpitch(); - double conactpitch() const; - void set_conactpitch(double value); - private: - double _internal_conactpitch() const; - void _internal_set_conactpitch(double value); - public: - - // optional double ContactRCS = 10; - bool has_contactrcs() const; - private: - bool _internal_has_contactrcs() const; - public: - void clear_contactrcs(); - double contactrcs() const; - void set_contactrcs(double value); - private: - double _internal_contactrcs() const; - void _internal_set_contactrcs(double value); - public: - - // optional uint32 ContactSide = 9; - bool has_contactside() const; - private: - bool _internal_has_contactside() const; - public: - void clear_contactside(); - uint32_t contactside() const; - void set_contactside(uint32_t value); - private: - uint32_t _internal_contactside() const; - void _internal_set_contactside(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:messages.SimTrack.SimTrack) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission > contactemissions_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conatactname_; - ::messages::track::Identifier* entityidentifier_; - ::messages::track::EntityGeocentricPosition* geocentricposition_; - double contactspeed_; - uint32_t contactsourcetype_; - uint32_t contactkind_; - double contactcourse_; - double conactpitch_; - double contactrcs_; - uint32_t contactside_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_SimTrack_2eproto; -}; -// ------------------------------------------------------------------- - -class Emission final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.SimTrack.Emission) */ { - public: - inline Emission() : Emission(nullptr) {} - ~Emission() override; - explicit PROTOBUF_CONSTEXPR Emission(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Emission(const Emission& from); - Emission(Emission&& from) noexcept - : Emission() { - *this = ::std::move(from); - } - - inline Emission& operator=(const Emission& from) { - CopyFrom(from); - return *this; - } - inline Emission& operator=(Emission&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Emission& default_instance() { - return *internal_default_instance(); - } - static inline const Emission* internal_default_instance() { - return reinterpret_cast( - &_Emission_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Emission& a, Emission& b) { - a.Swap(&b); - } - inline void Swap(Emission* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Emission* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Emission* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const Emission& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Emission& from) { - Emission::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Emission* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "messages.SimTrack.Emission"; - } - protected: - explicit Emission(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - public: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNameFieldNumber = 2, - kIdentifierFieldNumber = 1, - kFrequencyFieldNumber = 3, - kRangeFieldNumber = 4, - kBandwidthFieldNumber = 5, - kPulseWidthFieldNumber = 6, - kPulseRepititionFieldNumber = 7, - kRadiatedPowerFieldNumber = 8, - kNumberOfBeamsFieldNumber = 9, - kSearchIntervalFieldNumber = 10, - }; - // string name = 2; - void clear_name(); - const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); - void set_allocated_name(std::string* name); - private: - const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); - std::string* _internal_mutable_name(); - public: - - // .messages.track.Identifier Identifier = 1; - bool has_identifier() const; - private: - bool _internal_has_identifier() const; - public: - void clear_identifier(); - const ::messages::track::Identifier& identifier() const; - PROTOBUF_NODISCARD ::messages::track::Identifier* release_identifier(); - ::messages::track::Identifier* mutable_identifier(); - void set_allocated_identifier(::messages::track::Identifier* identifier); - private: - const ::messages::track::Identifier& _internal_identifier() const; - ::messages::track::Identifier* _internal_mutable_identifier(); - public: - void unsafe_arena_set_allocated_identifier( - ::messages::track::Identifier* identifier); - ::messages::track::Identifier* unsafe_arena_release_identifier(); - - // double frequency = 3; - void clear_frequency(); - double frequency() const; - void set_frequency(double value); - private: - double _internal_frequency() const; - void _internal_set_frequency(double value); - public: - - // double Range = 4; - void clear_range(); - double range() const; - void set_range(double value); - private: - double _internal_range() const; - void _internal_set_range(double value); - public: - - // optional uint32 Bandwidth = 5; - bool has_bandwidth() const; - private: - bool _internal_has_bandwidth() const; - public: - void clear_bandwidth(); - uint32_t bandwidth() const; - void set_bandwidth(uint32_t value); - private: - uint32_t _internal_bandwidth() const; - void _internal_set_bandwidth(uint32_t value); - public: - - // optional uint32 pulseWidth = 6; - bool has_pulsewidth() const; - private: - bool _internal_has_pulsewidth() const; - public: - void clear_pulsewidth(); - uint32_t pulsewidth() const; - void set_pulsewidth(uint32_t value); - private: - uint32_t _internal_pulsewidth() const; - void _internal_set_pulsewidth(uint32_t value); - public: - - // optional uint32 pulseRepitition = 7; - bool has_pulserepitition() const; - private: - bool _internal_has_pulserepitition() const; - public: - void clear_pulserepitition(); - uint32_t pulserepitition() const; - void set_pulserepitition(uint32_t value); - private: - uint32_t _internal_pulserepitition() const; - void _internal_set_pulserepitition(uint32_t value); - public: - - // optional uint32 radiatedPower = 8; - bool has_radiatedpower() const; - private: - bool _internal_has_radiatedpower() const; - public: - void clear_radiatedpower(); - uint32_t radiatedpower() const; - void set_radiatedpower(uint32_t value); - private: - uint32_t _internal_radiatedpower() const; - void _internal_set_radiatedpower(uint32_t value); - public: - - // optional uint32 numberOfBeams = 9; - bool has_numberofbeams() const; - private: - bool _internal_has_numberofbeams() const; - public: - void clear_numberofbeams(); - uint32_t numberofbeams() const; - void set_numberofbeams(uint32_t value); - private: - uint32_t _internal_numberofbeams() const; - void _internal_set_numberofbeams(uint32_t value); - public: - - // optional uint32 searchInterval = 10; - bool has_searchinterval() const; - private: - bool _internal_has_searchinterval() const; - public: - void clear_searchinterval(); - uint32_t searchinterval() const; - void set_searchinterval(uint32_t value); - private: - uint32_t _internal_searchinterval() const; - void _internal_set_searchinterval(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:messages.SimTrack.Emission) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::messages::track::Identifier* identifier_; - double frequency_; - double range_; - uint32_t bandwidth_; - uint32_t pulsewidth_; - uint32_t pulserepitition_; - uint32_t radiatedpower_; - uint32_t numberofbeams_; - uint32_t searchinterval_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_SimTrack_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// SimTrack - -// .messages.track.Identifier EntityIdentifier = 1; -inline bool SimTrack::_internal_has_entityidentifier() const { - return this != internal_default_instance() && _impl_.entityidentifier_ != nullptr; -} -inline bool SimTrack::has_entityidentifier() const { - return _internal_has_entityidentifier(); -} -inline const ::messages::track::Identifier& SimTrack::_internal_entityidentifier() const { - const ::messages::track::Identifier* p = _impl_.entityidentifier_; - return p != nullptr ? *p : reinterpret_cast( - ::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& SimTrack::entityidentifier() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.EntityIdentifier) - return _internal_entityidentifier(); -} -inline void SimTrack::unsafe_arena_set_allocated_entityidentifier( - ::messages::track::Identifier* entityidentifier) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.entityidentifier_); - } - _impl_.entityidentifier_ = entityidentifier; - if (entityidentifier) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.SimTrack.SimTrack.EntityIdentifier) -} -inline ::messages::track::Identifier* SimTrack::release_entityidentifier() { - - ::messages::track::Identifier* temp = _impl_.entityidentifier_; - _impl_.entityidentifier_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::messages::track::Identifier* SimTrack::unsafe_arena_release_entityidentifier() { - // @@protoc_insertion_point(field_release:messages.SimTrack.SimTrack.EntityIdentifier) - - ::messages::track::Identifier* temp = _impl_.entityidentifier_; - _impl_.entityidentifier_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* SimTrack::_internal_mutable_entityidentifier() { - - if (_impl_.entityidentifier_ == nullptr) { - auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation()); - _impl_.entityidentifier_ = p; - } - return _impl_.entityidentifier_; -} -inline ::messages::track::Identifier* SimTrack::mutable_entityidentifier() { - ::messages::track::Identifier* _msg = _internal_mutable_entityidentifier(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.EntityIdentifier) - return _msg; -} -inline void SimTrack::set_allocated_entityidentifier(::messages::track::Identifier* entityidentifier) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.entityidentifier_); - } - if (entityidentifier) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(entityidentifier)); - if (message_arena != submessage_arena) { - entityidentifier = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, entityidentifier, submessage_arena); - } - - } else { - - } - _impl_.entityidentifier_ = entityidentifier; - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.EntityIdentifier) -} - -// string ConatactName = 2; -inline void SimTrack::clear_conatactname() { - _impl_.conatactname_.ClearToEmpty(); -} -inline const std::string& SimTrack::conatactname() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ConatactName) - return _internal_conatactname(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void SimTrack::set_conatactname(ArgT0&& arg0, ArgT... args) { - - _impl_.conatactname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ConatactName) -} -inline std::string* SimTrack::mutable_conatactname() { - std::string* _s = _internal_mutable_conatactname(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.ConatactName) - return _s; -} -inline const std::string& SimTrack::_internal_conatactname() const { - return _impl_.conatactname_.Get(); -} -inline void SimTrack::_internal_set_conatactname(const std::string& value) { - - _impl_.conatactname_.Set(value, GetArenaForAllocation()); -} -inline std::string* SimTrack::_internal_mutable_conatactname() { - - return _impl_.conatactname_.Mutable(GetArenaForAllocation()); -} -inline std::string* SimTrack::release_conatactname() { - // @@protoc_insertion_point(field_release:messages.SimTrack.SimTrack.ConatactName) - return _impl_.conatactname_.Release(); -} -inline void SimTrack::set_allocated_conatactname(std::string* conatactname) { - if (conatactname != nullptr) { - - } else { - - } - _impl_.conatactname_.SetAllocated(conatactname, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.conatactname_.IsDefault()) { - _impl_.conatactname_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.ConatactName) -} - -// optional uint32 ContactSourceType = 3; -inline bool SimTrack::_internal_has_contactsourcetype() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool SimTrack::has_contactsourcetype() const { - return _internal_has_contactsourcetype(); -} -inline void SimTrack::clear_contactsourcetype() { - _impl_.contactsourcetype_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline uint32_t SimTrack::_internal_contactsourcetype() const { - return _impl_.contactsourcetype_; -} -inline uint32_t SimTrack::contactsourcetype() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactSourceType) - return _internal_contactsourcetype(); -} -inline void SimTrack::_internal_set_contactsourcetype(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.contactsourcetype_ = value; -} -inline void SimTrack::set_contactsourcetype(uint32_t value) { - _internal_set_contactsourcetype(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSourceType) -} - -// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4; -inline bool SimTrack::_internal_has_geocentricposition() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || _impl_.geocentricposition_ != nullptr); - return value; -} -inline bool SimTrack::has_geocentricposition() const { - return _internal_has_geocentricposition(); -} -inline const ::messages::track::EntityGeocentricPosition& SimTrack::_internal_geocentricposition() const { - const ::messages::track::EntityGeocentricPosition* p = _impl_.geocentricposition_; - return p != nullptr ? *p : reinterpret_cast( - ::messages::track::_EntityGeocentricPosition_default_instance_); -} -inline const ::messages::track::EntityGeocentricPosition& SimTrack::geocentricposition() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.GeocentricPosition) - return _internal_geocentricposition(); -} -inline void SimTrack::unsafe_arena_set_allocated_geocentricposition( - ::messages::track::EntityGeocentricPosition* geocentricposition) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.geocentricposition_); - } - _impl_.geocentricposition_ = geocentricposition; - if (geocentricposition) { - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.SimTrack.SimTrack.GeocentricPosition) -} -inline ::messages::track::EntityGeocentricPosition* SimTrack::release_geocentricposition() { - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::EntityGeocentricPosition* temp = _impl_.geocentricposition_; - _impl_.geocentricposition_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::messages::track::EntityGeocentricPosition* SimTrack::unsafe_arena_release_geocentricposition() { - // @@protoc_insertion_point(field_release:messages.SimTrack.SimTrack.GeocentricPosition) - _impl_._has_bits_[0] &= ~0x00000001u; - ::messages::track::EntityGeocentricPosition* temp = _impl_.geocentricposition_; - _impl_.geocentricposition_ = nullptr; - return temp; -} -inline ::messages::track::EntityGeocentricPosition* SimTrack::_internal_mutable_geocentricposition() { - _impl_._has_bits_[0] |= 0x00000001u; - if (_impl_.geocentricposition_ == nullptr) { - auto* p = CreateMaybeMessage<::messages::track::EntityGeocentricPosition>(GetArenaForAllocation()); - _impl_.geocentricposition_ = p; - } - return _impl_.geocentricposition_; -} -inline ::messages::track::EntityGeocentricPosition* SimTrack::mutable_geocentricposition() { - ::messages::track::EntityGeocentricPosition* _msg = _internal_mutable_geocentricposition(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.GeocentricPosition) - return _msg; -} -inline void SimTrack::set_allocated_geocentricposition(::messages::track::EntityGeocentricPosition* geocentricposition) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.geocentricposition_); - } - if (geocentricposition) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(geocentricposition)); - if (message_arena != submessage_arena) { - geocentricposition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, geocentricposition, submessage_arena); - } - _impl_._has_bits_[0] |= 0x00000001u; - } else { - _impl_._has_bits_[0] &= ~0x00000001u; - } - _impl_.geocentricposition_ = geocentricposition; - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.GeocentricPosition) -} - -// optional double ContactSpeed = 5; -inline bool SimTrack::_internal_has_contactspeed() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool SimTrack::has_contactspeed() const { - return _internal_has_contactspeed(); -} -inline void SimTrack::clear_contactspeed() { - _impl_.contactspeed_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline double SimTrack::_internal_contactspeed() const { - return _impl_.contactspeed_; -} -inline double SimTrack::contactspeed() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactSpeed) - return _internal_contactspeed(); -} -inline void SimTrack::_internal_set_contactspeed(double value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.contactspeed_ = value; -} -inline void SimTrack::set_contactspeed(double value) { - _internal_set_contactspeed(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSpeed) -} - -// optional double ContactCourse = 6; -inline bool SimTrack::_internal_has_contactcourse() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool SimTrack::has_contactcourse() const { - return _internal_has_contactcourse(); -} -inline void SimTrack::clear_contactcourse() { - _impl_.contactcourse_ = 0; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline double SimTrack::_internal_contactcourse() const { - return _impl_.contactcourse_; -} -inline double SimTrack::contactcourse() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactCourse) - return _internal_contactcourse(); -} -inline void SimTrack::_internal_set_contactcourse(double value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.contactcourse_ = value; -} -inline void SimTrack::set_contactcourse(double value) { - _internal_set_contactcourse(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactCourse) -} - -// optional double ConactPitch = 7; -inline bool SimTrack::_internal_has_conactpitch() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline bool SimTrack::has_conactpitch() const { - return _internal_has_conactpitch(); -} -inline void SimTrack::clear_conactpitch() { - _impl_.conactpitch_ = 0; - _impl_._has_bits_[0] &= ~0x00000020u; -} -inline double SimTrack::_internal_conactpitch() const { - return _impl_.conactpitch_; -} -inline double SimTrack::conactpitch() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ConactPitch) - return _internal_conactpitch(); -} -inline void SimTrack::_internal_set_conactpitch(double value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.conactpitch_ = value; -} -inline void SimTrack::set_conactpitch(double value) { - _internal_set_conactpitch(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ConactPitch) -} - -// optional uint32 ContactKind = 8; -inline bool SimTrack::_internal_has_contactkind() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool SimTrack::has_contactkind() const { - return _internal_has_contactkind(); -} -inline void SimTrack::clear_contactkind() { - _impl_.contactkind_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline uint32_t SimTrack::_internal_contactkind() const { - return _impl_.contactkind_; -} -inline uint32_t SimTrack::contactkind() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactKind) - return _internal_contactkind(); -} -inline void SimTrack::_internal_set_contactkind(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.contactkind_ = value; -} -inline void SimTrack::set_contactkind(uint32_t value) { - _internal_set_contactkind(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactKind) -} - -// optional uint32 ContactSide = 9; -inline bool SimTrack::_internal_has_contactside() const { - bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline bool SimTrack::has_contactside() const { - return _internal_has_contactside(); -} -inline void SimTrack::clear_contactside() { - _impl_.contactside_ = 0u; - _impl_._has_bits_[0] &= ~0x00000080u; -} -inline uint32_t SimTrack::_internal_contactside() const { - return _impl_.contactside_; -} -inline uint32_t SimTrack::contactside() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactSide) - return _internal_contactside(); -} -inline void SimTrack::_internal_set_contactside(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000080u; - _impl_.contactside_ = value; -} -inline void SimTrack::set_contactside(uint32_t value) { - _internal_set_contactside(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSide) -} - -// optional double ContactRCS = 10; -inline bool SimTrack::_internal_has_contactrcs() const { - bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; - return value; -} -inline bool SimTrack::has_contactrcs() const { - return _internal_has_contactrcs(); -} -inline void SimTrack::clear_contactrcs() { - _impl_.contactrcs_ = 0; - _impl_._has_bits_[0] &= ~0x00000040u; -} -inline double SimTrack::_internal_contactrcs() const { - return _impl_.contactrcs_; -} -inline double SimTrack::contactrcs() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactRCS) - return _internal_contactrcs(); -} -inline void SimTrack::_internal_set_contactrcs(double value) { - _impl_._has_bits_[0] |= 0x00000040u; - _impl_.contactrcs_ = value; -} -inline void SimTrack::set_contactrcs(double value) { - _internal_set_contactrcs(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactRCS) -} - -// repeated .messages.SimTrack.Emission ContactEmissions = 11; -inline int SimTrack::_internal_contactemissions_size() const { - return _impl_.contactemissions_.size(); -} -inline int SimTrack::contactemissions_size() const { - return _internal_contactemissions_size(); -} -inline void SimTrack::clear_contactemissions() { - _impl_.contactemissions_.Clear(); -} -inline ::messages::SimTrack::Emission* SimTrack::mutable_contactemissions(int index) { - // @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.ContactEmissions) - return _impl_.contactemissions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission >* -SimTrack::mutable_contactemissions() { - // @@protoc_insertion_point(field_mutable_list:messages.SimTrack.SimTrack.ContactEmissions) - return &_impl_.contactemissions_; -} -inline const ::messages::SimTrack::Emission& SimTrack::_internal_contactemissions(int index) const { - return _impl_.contactemissions_.Get(index); -} -inline const ::messages::SimTrack::Emission& SimTrack::contactemissions(int index) const { - // @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ContactEmissions) - return _internal_contactemissions(index); -} -inline ::messages::SimTrack::Emission* SimTrack::_internal_add_contactemissions() { - return _impl_.contactemissions_.Add(); -} -inline ::messages::SimTrack::Emission* SimTrack::add_contactemissions() { - ::messages::SimTrack::Emission* _add = _internal_add_contactemissions(); - // @@protoc_insertion_point(field_add:messages.SimTrack.SimTrack.ContactEmissions) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission >& -SimTrack::contactemissions() const { - // @@protoc_insertion_point(field_list:messages.SimTrack.SimTrack.ContactEmissions) - return _impl_.contactemissions_; -} - -// ------------------------------------------------------------------- - -// Emission - -// .messages.track.Identifier Identifier = 1; -inline bool Emission::_internal_has_identifier() const { - return this != internal_default_instance() && _impl_.identifier_ != nullptr; -} -inline bool Emission::has_identifier() const { - return _internal_has_identifier(); -} -inline const ::messages::track::Identifier& Emission::_internal_identifier() const { - const ::messages::track::Identifier* p = _impl_.identifier_; - return p != nullptr ? *p : reinterpret_cast( - ::messages::track::_Identifier_default_instance_); -} -inline const ::messages::track::Identifier& Emission::identifier() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.Identifier) - return _internal_identifier(); -} -inline void Emission::unsafe_arena_set_allocated_identifier( - ::messages::track::Identifier* identifier) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.identifier_); - } - _impl_.identifier_ = identifier; - if (identifier) { - - } else { - - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.SimTrack.Emission.Identifier) -} -inline ::messages::track::Identifier* Emission::release_identifier() { - - ::messages::track::Identifier* temp = _impl_.identifier_; - _impl_.identifier_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE - return temp; -} -inline ::messages::track::Identifier* Emission::unsafe_arena_release_identifier() { - // @@protoc_insertion_point(field_release:messages.SimTrack.Emission.Identifier) - - ::messages::track::Identifier* temp = _impl_.identifier_; - _impl_.identifier_ = nullptr; - return temp; -} -inline ::messages::track::Identifier* Emission::_internal_mutable_identifier() { - - if (_impl_.identifier_ == nullptr) { - auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation()); - _impl_.identifier_ = p; - } - return _impl_.identifier_; -} -inline ::messages::track::Identifier* Emission::mutable_identifier() { - ::messages::track::Identifier* _msg = _internal_mutable_identifier(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.Emission.Identifier) - return _msg; -} -inline void Emission::set_allocated_identifier(::messages::track::Identifier* identifier) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.identifier_); - } - if (identifier) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(identifier)); - if (message_arena != submessage_arena) { - identifier = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, identifier, submessage_arena); - } - - } else { - - } - _impl_.identifier_ = identifier; - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.Emission.Identifier) -} - -// string name = 2; -inline void Emission::clear_name() { - _impl_.name_.ClearToEmpty(); -} -inline const std::string& Emission::name() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.name) - return _internal_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Emission::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.name) -} -inline std::string* Emission::mutable_name() { - std::string* _s = _internal_mutable_name(); - // @@protoc_insertion_point(field_mutable:messages.SimTrack.Emission.name) - return _s; -} -inline const std::string& Emission::_internal_name() const { - return _impl_.name_.Get(); -} -inline void Emission::_internal_set_name(const std::string& value) { - - _impl_.name_.Set(value, GetArenaForAllocation()); -} -inline std::string* Emission::_internal_mutable_name() { - - return _impl_.name_.Mutable(GetArenaForAllocation()); -} -inline std::string* Emission::release_name() { - // @@protoc_insertion_point(field_release:messages.SimTrack.Emission.name) - return _impl_.name_.Release(); -} -inline void Emission::set_allocated_name(std::string* name) { - if (name != nullptr) { - - } else { - - } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:messages.SimTrack.Emission.name) -} - -// double frequency = 3; -inline void Emission::clear_frequency() { - _impl_.frequency_ = 0; -} -inline double Emission::_internal_frequency() const { - return _impl_.frequency_; -} -inline double Emission::frequency() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.frequency) - return _internal_frequency(); -} -inline void Emission::_internal_set_frequency(double value) { - - _impl_.frequency_ = value; -} -inline void Emission::set_frequency(double value) { - _internal_set_frequency(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.frequency) -} - -// double Range = 4; -inline void Emission::clear_range() { - _impl_.range_ = 0; -} -inline double Emission::_internal_range() const { - return _impl_.range_; -} -inline double Emission::range() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.Range) - return _internal_range(); -} -inline void Emission::_internal_set_range(double value) { - - _impl_.range_ = value; -} -inline void Emission::set_range(double value) { - _internal_set_range(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.Range) -} - -// optional uint32 Bandwidth = 5; -inline bool Emission::_internal_has_bandwidth() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool Emission::has_bandwidth() const { - return _internal_has_bandwidth(); -} -inline void Emission::clear_bandwidth() { - _impl_.bandwidth_ = 0u; - _impl_._has_bits_[0] &= ~0x00000001u; -} -inline uint32_t Emission::_internal_bandwidth() const { - return _impl_.bandwidth_; -} -inline uint32_t Emission::bandwidth() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.Bandwidth) - return _internal_bandwidth(); -} -inline void Emission::_internal_set_bandwidth(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000001u; - _impl_.bandwidth_ = value; -} -inline void Emission::set_bandwidth(uint32_t value) { - _internal_set_bandwidth(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.Bandwidth) -} - -// optional uint32 pulseWidth = 6; -inline bool Emission::_internal_has_pulsewidth() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool Emission::has_pulsewidth() const { - return _internal_has_pulsewidth(); -} -inline void Emission::clear_pulsewidth() { - _impl_.pulsewidth_ = 0u; - _impl_._has_bits_[0] &= ~0x00000002u; -} -inline uint32_t Emission::_internal_pulsewidth() const { - return _impl_.pulsewidth_; -} -inline uint32_t Emission::pulsewidth() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.pulseWidth) - return _internal_pulsewidth(); -} -inline void Emission::_internal_set_pulsewidth(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000002u; - _impl_.pulsewidth_ = value; -} -inline void Emission::set_pulsewidth(uint32_t value) { - _internal_set_pulsewidth(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.pulseWidth) -} - -// optional uint32 pulseRepitition = 7; -inline bool Emission::_internal_has_pulserepitition() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool Emission::has_pulserepitition() const { - return _internal_has_pulserepitition(); -} -inline void Emission::clear_pulserepitition() { - _impl_.pulserepitition_ = 0u; - _impl_._has_bits_[0] &= ~0x00000004u; -} -inline uint32_t Emission::_internal_pulserepitition() const { - return _impl_.pulserepitition_; -} -inline uint32_t Emission::pulserepitition() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.pulseRepitition) - return _internal_pulserepitition(); -} -inline void Emission::_internal_set_pulserepitition(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000004u; - _impl_.pulserepitition_ = value; -} -inline void Emission::set_pulserepitition(uint32_t value) { - _internal_set_pulserepitition(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.pulseRepitition) -} - -// optional uint32 radiatedPower = 8; -inline bool Emission::_internal_has_radiatedpower() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool Emission::has_radiatedpower() const { - return _internal_has_radiatedpower(); -} -inline void Emission::clear_radiatedpower() { - _impl_.radiatedpower_ = 0u; - _impl_._has_bits_[0] &= ~0x00000008u; -} -inline uint32_t Emission::_internal_radiatedpower() const { - return _impl_.radiatedpower_; -} -inline uint32_t Emission::radiatedpower() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.radiatedPower) - return _internal_radiatedpower(); -} -inline void Emission::_internal_set_radiatedpower(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000008u; - _impl_.radiatedpower_ = value; -} -inline void Emission::set_radiatedpower(uint32_t value) { - _internal_set_radiatedpower(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.radiatedPower) -} - -// optional uint32 numberOfBeams = 9; -inline bool Emission::_internal_has_numberofbeams() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool Emission::has_numberofbeams() const { - return _internal_has_numberofbeams(); -} -inline void Emission::clear_numberofbeams() { - _impl_.numberofbeams_ = 0u; - _impl_._has_bits_[0] &= ~0x00000010u; -} -inline uint32_t Emission::_internal_numberofbeams() const { - return _impl_.numberofbeams_; -} -inline uint32_t Emission::numberofbeams() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.numberOfBeams) - return _internal_numberofbeams(); -} -inline void Emission::_internal_set_numberofbeams(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000010u; - _impl_.numberofbeams_ = value; -} -inline void Emission::set_numberofbeams(uint32_t value) { - _internal_set_numberofbeams(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.numberOfBeams) -} - -// optional uint32 searchInterval = 10; -inline bool Emission::_internal_has_searchinterval() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline bool Emission::has_searchinterval() const { - return _internal_has_searchinterval(); -} -inline void Emission::clear_searchinterval() { - _impl_.searchinterval_ = 0u; - _impl_._has_bits_[0] &= ~0x00000020u; -} -inline uint32_t Emission::_internal_searchinterval() const { - return _impl_.searchinterval_; -} -inline uint32_t Emission::searchinterval() const { - // @@protoc_insertion_point(field_get:messages.SimTrack.Emission.searchInterval) - return _internal_searchinterval(); -} -inline void Emission::_internal_set_searchinterval(uint32_t value) { - _impl_._has_bits_[0] |= 0x00000020u; - _impl_.searchinterval_ = value; -} -inline void Emission::set_searchinterval(uint32_t value) { - _internal_set_searchinterval(value); - // @@protoc_insertion_point(field_set:messages.SimTrack.Emission.searchInterval) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace SimTrack -} // namespace messages - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_SimTrack_2eproto