ADD: added new proto messages and reorganized the track message

This commit is contained in:
Henry Winkel
2023-01-13 21:11:17 +01:00
parent ee98b45532
commit 414ca2a224
14 changed files with 2618 additions and 1103 deletions

View File

@@ -34,7 +34,11 @@ add_library(SimCore STATIC
src/SimCore/Messages/Track.cpp src/SimCore/Messages/Track.cpp
include/SimCore/Messages/Protos/Track.pb.cc include/SimCore/Messages/Protos/Track.pb.cc
include/SimCore/Messages/Protos/GeocentricPosition.pb.cc
include/SimCore/Messages/Protos/Identifier.pb.cc
include/SimCore/Messages/Protos/RadarMessage.pb.cc
include/SimCore/Position.hpp include/SimCore/Position.hpp
src/SimCore/Position.cpp src/SimCore/Position.cpp

View File

@@ -0,0 +1,370 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GeocentricPosition.proto
#include "GeocentricPosition.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
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<size_t>(reinterpret_cast<char*>(&_impl_.z_) -
reinterpret_cast<char*>(&_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<size_t>(
reinterpret_cast<char*>(&_impl_.z_) -
reinterpret_cast<char*>(&_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<uint8_t>(tag) == 9)) {
_impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else
goto handle_unusual;
continue;
// double Y = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
_impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else
goto handle_unusual;
continue;
// double Z = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 25)) {
_impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(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<EntityGeocentricPosition*>(&to_msg);
auto& from = static_cast<const EntityGeocentricPosition&>(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<char*>(&_impl_.x_),
reinterpret_cast<char*>(&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 <google/protobuf/port_undef.inc>

View File

@@ -0,0 +1,313 @@
// 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 <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#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 <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#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<const EntityGeocentricPosition*>(
&_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<EntityGeocentricPosition>(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 <typename T> 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 <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_GeocentricPosition_2eproto

View File

@@ -0,0 +1,9 @@
syntax = "proto3";
package messages.track;
message EntityGeocentricPosition {
double X = 1;
double Y = 2;
double Z = 3;
}

View File

@@ -0,0 +1,308 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Identifier.proto
#include "Identifier.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
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_.number_)*/int64_t{0}
, /*decltype(_impl_.external_)*/0u
, /*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_.number_),
PROTOBUF_FIELD_OFFSET(::messages::track::Identifier, _impl_.external_),
};
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\016\n\006number\030\001 \001(\003\022\020\n\010external\030\002 \001"
"(\rb\006proto3"
;
static ::_pbi::once_flag descriptor_table_Identifier_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_Identifier_2eproto = {
false, false, 90, 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_.number_){}
, decltype(_impl_.external_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&_impl_.number_, &from._impl_.number_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.external_) -
reinterpret_cast<char*>(&_impl_.number_)) + sizeof(_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_.number_){int64_t{0}}
, decltype(_impl_.external_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
}
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);
}
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;
::memset(&_impl_.number_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.external_) -
reinterpret_cast<char*>(&_impl_.number_)) + sizeof(_impl_.external_));
_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) {
// int64 number = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint32 external = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.external_ = ::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:
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;
// int64 number = 1;
if (this->_internal_number() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_number(), target);
}
// uint32 external = 2;
if (this->_internal_external() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_external(), 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;
// int64 number = 1;
if (this->_internal_number() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_number());
}
// uint32 external = 2;
if (this->_internal_external() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_external());
}
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<Identifier*>(&to_msg);
auto& from = static_cast<const Identifier&>(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_number() != 0) {
_this->_internal_set_number(from._internal_number());
}
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;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(Identifier, _impl_.external_)
+ sizeof(Identifier::_impl_.external_)
- PROTOBUF_FIELD_OFFSET(Identifier, _impl_.number_)>(
reinterpret_cast<char*>(&_impl_.number_),
reinterpret_cast<char*>(&other->_impl_.number_));
}
::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 <google/protobuf/port_undef.inc>

View File

@@ -0,0 +1,282 @@
// 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 <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#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 <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#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<const Identifier*>(
&_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<Identifier>(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 {
kNumberFieldNumber = 1,
kExternalFieldNumber = 2,
};
// int64 number = 1;
void clear_number();
int64_t number() const;
void set_number(int64_t value);
private:
int64_t _internal_number() const;
void _internal_set_number(int64_t value);
public:
// uint32 external = 2;
void clear_external();
uint32_t external() const;
void set_external(uint32_t value);
private:
uint32_t _internal_external() const;
void _internal_set_external(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:messages.track.Identifier)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
int64_t number_;
uint32_t 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
// int64 number = 1;
inline void Identifier::clear_number() {
_impl_.number_ = int64_t{0};
}
inline int64_t Identifier::_internal_number() const {
return _impl_.number_;
}
inline int64_t Identifier::number() const {
// @@protoc_insertion_point(field_get:messages.track.Identifier.number)
return _internal_number();
}
inline void Identifier::_internal_set_number(int64_t value) {
_impl_.number_ = value;
}
inline void Identifier::set_number(int64_t value) {
_internal_set_number(value);
// @@protoc_insertion_point(field_set:messages.track.Identifier.number)
}
// uint32 external = 2;
inline void Identifier::clear_external() {
_impl_.external_ = 0u;
}
inline uint32_t Identifier::_internal_external() const {
return _impl_.external_;
}
inline uint32_t Identifier::external() const {
// @@protoc_insertion_point(field_get:messages.track.Identifier.external)
return _internal_external();
}
inline void Identifier::_internal_set_external(uint32_t value) {
_impl_.external_ = value;
}
inline void Identifier::set_external(uint32_t value) {
_internal_set_external(value);
// @@protoc_insertion_point(field_set:messages.track.Identifier.external)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace track
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Identifier_2eproto

View File

@@ -0,0 +1,7 @@
syntax = "proto3";
package messages.track;
message Identifier{
int64 number = 1;
uint32 external = 2;
}

View File

@@ -0,0 +1,572 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RadarMessage.proto
#include "RadarMessage.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace messages {
namespace RadarMessage {
PROTOBUF_CONSTEXPR RadarMessage::RadarMessage(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.contactenvironemnt_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.entityidentifier_)*/nullptr
, /*decltype(_impl_.geocentricposition_)*/nullptr
, /*decltype(_impl_.contactspeed_)*/0
, /*decltype(_impl_.contactcourse_)*/0
, /*decltype(_impl_.contactbearing_)*/0
, /*decltype(_impl_.contactrange_)*/0
, /*decltype(_impl_._cached_size_)*/{}} {}
struct RadarMessageDefaultTypeInternal {
PROTOBUF_CONSTEXPR RadarMessageDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~RadarMessageDefaultTypeInternal() {}
union {
RadarMessage _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RadarMessageDefaultTypeInternal _RadarMessage_default_instance_;
} // namespace RadarMessage
} // namespace messages
static ::_pb::Metadata file_level_metadata_RadarMessage_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_RadarMessage_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_RadarMessage_2eproto = nullptr;
const uint32_t TableStruct_RadarMessage_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::RadarMessage::RadarMessage, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::messages::RadarMessage::RadarMessage, _impl_.entityidentifier_),
PROTOBUF_FIELD_OFFSET(::messages::RadarMessage::RadarMessage, _impl_.geocentricposition_),
PROTOBUF_FIELD_OFFSET(::messages::RadarMessage::RadarMessage, _impl_.contactspeed_),
PROTOBUF_FIELD_OFFSET(::messages::RadarMessage::RadarMessage, _impl_.contactcourse_),
PROTOBUF_FIELD_OFFSET(::messages::RadarMessage::RadarMessage, _impl_.contactbearing_),
PROTOBUF_FIELD_OFFSET(::messages::RadarMessage::RadarMessage, _impl_.contactrange_),
PROTOBUF_FIELD_OFFSET(::messages::RadarMessage::RadarMessage, _impl_.contactenvironemnt_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::RadarMessage::RadarMessage)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::messages::RadarMessage::_RadarMessage_default_instance_._instance,
};
const char descriptor_table_protodef_RadarMessage_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\022RadarMessage.proto\022\025messages.RadarMess"
"age\032\037google/protobuf/timestamp.proto\032\030Ge"
"ocentricPosition.proto\032\020Identifier.proto"
"\"\201\002\n\014RadarMessage\0224\n\020EntityIdentifier\030\001 "
"\001(\0132\032.messages.track.Identifier\022D\n\022Geoce"
"ntricPosition\030\002 \001(\0132(.messages.track.Ent"
"ityGeocentricPosition\022\024\n\014ContactSpeed\030\003 "
"\001(\001\022\025\n\rContactCourse\030\004 \001(\001\022\026\n\016ContactBea"
"ring\030\005 \001(\001\022\024\n\014ContactRange\030\006 \001(\001\022\032\n\022Cont"
"actEnvironemnt\030\007 \001(\tb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_RadarMessage_2eproto_deps[3] = {
&::descriptor_table_GeocentricPosition_2eproto,
&::descriptor_table_Identifier_2eproto,
&::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
};
static ::_pbi::once_flag descriptor_table_RadarMessage_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_RadarMessage_2eproto = {
false, false, 388, descriptor_table_protodef_RadarMessage_2eproto,
"RadarMessage.proto",
&descriptor_table_RadarMessage_2eproto_once, descriptor_table_RadarMessage_2eproto_deps, 3, 1,
schemas, file_default_instances, TableStruct_RadarMessage_2eproto::offsets,
file_level_metadata_RadarMessage_2eproto, file_level_enum_descriptors_RadarMessage_2eproto,
file_level_service_descriptors_RadarMessage_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_RadarMessage_2eproto_getter() {
return &descriptor_table_RadarMessage_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_RadarMessage_2eproto(&descriptor_table_RadarMessage_2eproto);
namespace messages {
namespace RadarMessage {
// ===================================================================
class RadarMessage::_Internal {
public:
static const ::messages::track::Identifier& entityidentifier(const RadarMessage* msg);
static const ::messages::track::EntityGeocentricPosition& geocentricposition(const RadarMessage* msg);
};
const ::messages::track::Identifier&
RadarMessage::_Internal::entityidentifier(const RadarMessage* msg) {
return *msg->_impl_.entityidentifier_;
}
const ::messages::track::EntityGeocentricPosition&
RadarMessage::_Internal::geocentricposition(const RadarMessage* msg) {
return *msg->_impl_.geocentricposition_;
}
void RadarMessage::clear_entityidentifier() {
if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
delete _impl_.entityidentifier_;
}
_impl_.entityidentifier_ = nullptr;
}
void RadarMessage::clear_geocentricposition() {
if (GetArenaForAllocation() == nullptr && _impl_.geocentricposition_ != nullptr) {
delete _impl_.geocentricposition_;
}
_impl_.geocentricposition_ = nullptr;
}
RadarMessage::RadarMessage(::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.RadarMessage.RadarMessage)
}
RadarMessage::RadarMessage(const RadarMessage& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
RadarMessage* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.contactenvironemnt_){}
, decltype(_impl_.entityidentifier_){nullptr}
, decltype(_impl_.geocentricposition_){nullptr}
, decltype(_impl_.contactspeed_){}
, decltype(_impl_.contactcourse_){}
, decltype(_impl_.contactbearing_){}
, decltype(_impl_.contactrange_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.contactenvironemnt_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.contactenvironemnt_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_contactenvironemnt().empty()) {
_this->_impl_.contactenvironemnt_.Set(from._internal_contactenvironemnt(),
_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<size_t>(reinterpret_cast<char*>(&_impl_.contactrange_) -
reinterpret_cast<char*>(&_impl_.contactspeed_)) + sizeof(_impl_.contactrange_));
// @@protoc_insertion_point(copy_constructor:messages.RadarMessage.RadarMessage)
}
inline void RadarMessage::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.contactenvironemnt_){}
, decltype(_impl_.entityidentifier_){nullptr}
, decltype(_impl_.geocentricposition_){nullptr}
, decltype(_impl_.contactspeed_){0}
, decltype(_impl_.contactcourse_){0}
, decltype(_impl_.contactbearing_){0}
, decltype(_impl_.contactrange_){0}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.contactenvironemnt_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.contactenvironemnt_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
RadarMessage::~RadarMessage() {
// @@protoc_insertion_point(destructor:messages.RadarMessage.RadarMessage)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void RadarMessage::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.contactenvironemnt_.Destroy();
if (this != internal_default_instance()) delete _impl_.entityidentifier_;
if (this != internal_default_instance()) delete _impl_.geocentricposition_;
}
void RadarMessage::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void RadarMessage::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.RadarMessage.RadarMessage)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.contactenvironemnt_.ClearToEmpty();
if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
delete _impl_.entityidentifier_;
}
_impl_.entityidentifier_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.geocentricposition_ != nullptr) {
delete _impl_.geocentricposition_;
}
_impl_.geocentricposition_ = nullptr;
::memset(&_impl_.contactspeed_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.contactrange_) -
reinterpret_cast<char*>(&_impl_.contactspeed_)) + sizeof(_impl_.contactrange_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* RadarMessage::_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) {
// .messages.track.Identifier EntityIdentifier = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_entityidentifier(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_geocentricposition(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// double ContactSpeed = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 25)) {
_impl_.contactspeed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else
goto handle_unusual;
continue;
// double ContactCourse = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33)) {
_impl_.contactcourse_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else
goto handle_unusual;
continue;
// double ContactBearing = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41)) {
_impl_.contactbearing_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else
goto handle_unusual;
continue;
// double ContactRange = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49)) {
_impl_.contactrange_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else
goto handle_unusual;
continue;
// string ContactEnvironemnt = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
auto str = _internal_mutable_contactenvironemnt();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "messages.RadarMessage.RadarMessage.ContactEnvironemnt"));
} 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* RadarMessage::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.RadarMessage.RadarMessage)
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);
}
// .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
if (this->_internal_has_geocentricposition()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, _Internal::geocentricposition(this),
_Internal::geocentricposition(this).GetCachedSize(), target, stream);
}
// double ContactSpeed = 3;
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactspeed = this->_internal_contactspeed();
uint64_t raw_contactspeed;
memcpy(&raw_contactspeed, &tmp_contactspeed, sizeof(tmp_contactspeed));
if (raw_contactspeed != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_contactspeed(), target);
}
// double ContactCourse = 4;
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactcourse = this->_internal_contactcourse();
uint64_t raw_contactcourse;
memcpy(&raw_contactcourse, &tmp_contactcourse, sizeof(tmp_contactcourse));
if (raw_contactcourse != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_contactcourse(), target);
}
// double ContactBearing = 5;
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactbearing = this->_internal_contactbearing();
uint64_t raw_contactbearing;
memcpy(&raw_contactbearing, &tmp_contactbearing, sizeof(tmp_contactbearing));
if (raw_contactbearing != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_contactbearing(), target);
}
// double ContactRange = 6;
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactrange = this->_internal_contactrange();
uint64_t raw_contactrange;
memcpy(&raw_contactrange, &tmp_contactrange, sizeof(tmp_contactrange));
if (raw_contactrange != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_contactrange(), target);
}
// string ContactEnvironemnt = 7;
if (!this->_internal_contactenvironemnt().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_contactenvironemnt().data(), static_cast<int>(this->_internal_contactenvironemnt().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"messages.RadarMessage.RadarMessage.ContactEnvironemnt");
target = stream->WriteStringMaybeAliased(
7, this->_internal_contactenvironemnt(), 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.RadarMessage.RadarMessage)
return target;
}
size_t RadarMessage::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.RadarMessage.RadarMessage)
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 ContactEnvironemnt = 7;
if (!this->_internal_contactenvironemnt().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_contactenvironemnt());
}
// .messages.track.Identifier EntityIdentifier = 1;
if (this->_internal_has_entityidentifier()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.entityidentifier_);
}
// .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
if (this->_internal_has_geocentricposition()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.geocentricposition_);
}
// double ContactSpeed = 3;
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactspeed = this->_internal_contactspeed();
uint64_t raw_contactspeed;
memcpy(&raw_contactspeed, &tmp_contactspeed, sizeof(tmp_contactspeed));
if (raw_contactspeed != 0) {
total_size += 1 + 8;
}
// double ContactCourse = 4;
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactcourse = this->_internal_contactcourse();
uint64_t raw_contactcourse;
memcpy(&raw_contactcourse, &tmp_contactcourse, sizeof(tmp_contactcourse));
if (raw_contactcourse != 0) {
total_size += 1 + 8;
}
// double ContactBearing = 5;
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactbearing = this->_internal_contactbearing();
uint64_t raw_contactbearing;
memcpy(&raw_contactbearing, &tmp_contactbearing, sizeof(tmp_contactbearing));
if (raw_contactbearing != 0) {
total_size += 1 + 8;
}
// double ContactRange = 6;
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactrange = this->_internal_contactrange();
uint64_t raw_contactrange;
memcpy(&raw_contactrange, &tmp_contactrange, sizeof(tmp_contactrange));
if (raw_contactrange != 0) {
total_size += 1 + 8;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RadarMessage::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
RadarMessage::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RadarMessage::GetClassData() const { return &_class_data_; }
void RadarMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<RadarMessage*>(&to_msg);
auto& from = static_cast<const RadarMessage&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.RadarMessage.RadarMessage)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_contactenvironemnt().empty()) {
_this->_internal_set_contactenvironemnt(from._internal_contactenvironemnt());
}
if (from._internal_has_entityidentifier()) {
_this->_internal_mutable_entityidentifier()->::messages::track::Identifier::MergeFrom(
from._internal_entityidentifier());
}
if (from._internal_has_geocentricposition()) {
_this->_internal_mutable_geocentricposition()->::messages::track::EntityGeocentricPosition::MergeFrom(
from._internal_geocentricposition());
}
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactspeed = from._internal_contactspeed();
uint64_t raw_contactspeed;
memcpy(&raw_contactspeed, &tmp_contactspeed, sizeof(tmp_contactspeed));
if (raw_contactspeed != 0) {
_this->_internal_set_contactspeed(from._internal_contactspeed());
}
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactcourse = from._internal_contactcourse();
uint64_t raw_contactcourse;
memcpy(&raw_contactcourse, &tmp_contactcourse, sizeof(tmp_contactcourse));
if (raw_contactcourse != 0) {
_this->_internal_set_contactcourse(from._internal_contactcourse());
}
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactbearing = from._internal_contactbearing();
uint64_t raw_contactbearing;
memcpy(&raw_contactbearing, &tmp_contactbearing, sizeof(tmp_contactbearing));
if (raw_contactbearing != 0) {
_this->_internal_set_contactbearing(from._internal_contactbearing());
}
static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
double tmp_contactrange = from._internal_contactrange();
uint64_t raw_contactrange;
memcpy(&raw_contactrange, &tmp_contactrange, sizeof(tmp_contactrange));
if (raw_contactrange != 0) {
_this->_internal_set_contactrange(from._internal_contactrange());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void RadarMessage::CopyFrom(const RadarMessage& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:messages.RadarMessage.RadarMessage)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RadarMessage::IsInitialized() const {
return true;
}
void RadarMessage::InternalSwap(RadarMessage* 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_.contactenvironemnt_, lhs_arena,
&other->_impl_.contactenvironemnt_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(RadarMessage, _impl_.contactrange_)
+ sizeof(RadarMessage::_impl_.contactrange_)
- PROTOBUF_FIELD_OFFSET(RadarMessage, _impl_.entityidentifier_)>(
reinterpret_cast<char*>(&_impl_.entityidentifier_),
reinterpret_cast<char*>(&other->_impl_.entityidentifier_));
}
::PROTOBUF_NAMESPACE_ID::Metadata RadarMessage::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_RadarMessage_2eproto_getter, &descriptor_table_RadarMessage_2eproto_once,
file_level_metadata_RadarMessage_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace RadarMessage
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::RadarMessage::RadarMessage*
Arena::CreateMaybeMessage< ::messages::RadarMessage::RadarMessage >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::RadarMessage::RadarMessage >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>

View File

@@ -0,0 +1,623 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RadarMessage.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_RadarMessage_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_RadarMessage_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#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 <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/timestamp.pb.h>
#include "GeocentricPosition.pb.h"
#include "Identifier.pb.h"
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_RadarMessage_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_RadarMessage_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_RadarMessage_2eproto;
namespace messages {
namespace RadarMessage {
class RadarMessage;
struct RadarMessageDefaultTypeInternal;
extern RadarMessageDefaultTypeInternal _RadarMessage_default_instance_;
} // namespace RadarMessage
} // namespace messages
PROTOBUF_NAMESPACE_OPEN
template<> ::messages::RadarMessage::RadarMessage* Arena::CreateMaybeMessage<::messages::RadarMessage::RadarMessage>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace messages {
namespace RadarMessage {
// ===================================================================
class RadarMessage final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.RadarMessage.RadarMessage) */ {
public:
inline RadarMessage() : RadarMessage(nullptr) {}
~RadarMessage() override;
explicit PROTOBUF_CONSTEXPR RadarMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RadarMessage(const RadarMessage& from);
RadarMessage(RadarMessage&& from) noexcept
: RadarMessage() {
*this = ::std::move(from);
}
inline RadarMessage& operator=(const RadarMessage& from) {
CopyFrom(from);
return *this;
}
inline RadarMessage& operator=(RadarMessage&& 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 RadarMessage& default_instance() {
return *internal_default_instance();
}
static inline const RadarMessage* internal_default_instance() {
return reinterpret_cast<const RadarMessage*>(
&_RadarMessage_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(RadarMessage& a, RadarMessage& b) {
a.Swap(&b);
}
inline void Swap(RadarMessage* 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(RadarMessage* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RadarMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RadarMessage>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const RadarMessage& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const RadarMessage& from) {
RadarMessage::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(RadarMessage* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "messages.RadarMessage.RadarMessage";
}
protected:
explicit RadarMessage(::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 {
kContactEnvironemntFieldNumber = 7,
kEntityIdentifierFieldNumber = 1,
kGeocentricPositionFieldNumber = 2,
kContactSpeedFieldNumber = 3,
kContactCourseFieldNumber = 4,
kContactBearingFieldNumber = 5,
kContactRangeFieldNumber = 6,
};
// string ContactEnvironemnt = 7;
void clear_contactenvironemnt();
const std::string& contactenvironemnt() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_contactenvironemnt(ArgT0&& arg0, ArgT... args);
std::string* mutable_contactenvironemnt();
PROTOBUF_NODISCARD std::string* release_contactenvironemnt();
void set_allocated_contactenvironemnt(std::string* contactenvironemnt);
private:
const std::string& _internal_contactenvironemnt() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_contactenvironemnt(const std::string& value);
std::string* _internal_mutable_contactenvironemnt();
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();
// .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
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();
// double ContactSpeed = 3;
void clear_contactspeed();
double contactspeed() const;
void set_contactspeed(double value);
private:
double _internal_contactspeed() const;
void _internal_set_contactspeed(double value);
public:
// double ContactCourse = 4;
void clear_contactcourse();
double contactcourse() const;
void set_contactcourse(double value);
private:
double _internal_contactcourse() const;
void _internal_set_contactcourse(double value);
public:
// double ContactBearing = 5;
void clear_contactbearing();
double contactbearing() const;
void set_contactbearing(double value);
private:
double _internal_contactbearing() const;
void _internal_set_contactbearing(double value);
public:
// double ContactRange = 6;
void clear_contactrange();
double contactrange() const;
void set_contactrange(double value);
private:
double _internal_contactrange() const;
void _internal_set_contactrange(double value);
public:
// @@protoc_insertion_point(class_scope:messages.RadarMessage.RadarMessage)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr contactenvironemnt_;
::messages::track::Identifier* entityidentifier_;
::messages::track::EntityGeocentricPosition* geocentricposition_;
double contactspeed_;
double contactcourse_;
double contactbearing_;
double contactrange_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_RadarMessage_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// RadarMessage
// .messages.track.Identifier EntityIdentifier = 1;
inline bool RadarMessage::_internal_has_entityidentifier() const {
return this != internal_default_instance() && _impl_.entityidentifier_ != nullptr;
}
inline bool RadarMessage::has_entityidentifier() const {
return _internal_has_entityidentifier();
}
inline const ::messages::track::Identifier& RadarMessage::_internal_entityidentifier() const {
const ::messages::track::Identifier* p = _impl_.entityidentifier_;
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(
::messages::track::_Identifier_default_instance_);
}
inline const ::messages::track::Identifier& RadarMessage::entityidentifier() const {
// @@protoc_insertion_point(field_get:messages.RadarMessage.RadarMessage.EntityIdentifier)
return _internal_entityidentifier();
}
inline void RadarMessage::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.RadarMessage.RadarMessage.EntityIdentifier)
}
inline ::messages::track::Identifier* RadarMessage::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* RadarMessage::unsafe_arena_release_entityidentifier() {
// @@protoc_insertion_point(field_release:messages.RadarMessage.RadarMessage.EntityIdentifier)
::messages::track::Identifier* temp = _impl_.entityidentifier_;
_impl_.entityidentifier_ = nullptr;
return temp;
}
inline ::messages::track::Identifier* RadarMessage::_internal_mutable_entityidentifier() {
if (_impl_.entityidentifier_ == nullptr) {
auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation());
_impl_.entityidentifier_ = p;
}
return _impl_.entityidentifier_;
}
inline ::messages::track::Identifier* RadarMessage::mutable_entityidentifier() {
::messages::track::Identifier* _msg = _internal_mutable_entityidentifier();
// @@protoc_insertion_point(field_mutable:messages.RadarMessage.RadarMessage.EntityIdentifier)
return _msg;
}
inline void RadarMessage::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.RadarMessage.RadarMessage.EntityIdentifier)
}
// .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
inline bool RadarMessage::_internal_has_geocentricposition() const {
return this != internal_default_instance() && _impl_.geocentricposition_ != nullptr;
}
inline bool RadarMessage::has_geocentricposition() const {
return _internal_has_geocentricposition();
}
inline const ::messages::track::EntityGeocentricPosition& RadarMessage::_internal_geocentricposition() const {
const ::messages::track::EntityGeocentricPosition* p = _impl_.geocentricposition_;
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::EntityGeocentricPosition&>(
::messages::track::_EntityGeocentricPosition_default_instance_);
}
inline const ::messages::track::EntityGeocentricPosition& RadarMessage::geocentricposition() const {
// @@protoc_insertion_point(field_get:messages.RadarMessage.RadarMessage.GeocentricPosition)
return _internal_geocentricposition();
}
inline void RadarMessage::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) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.RadarMessage.RadarMessage.GeocentricPosition)
}
inline ::messages::track::EntityGeocentricPosition* RadarMessage::release_geocentricposition() {
::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* RadarMessage::unsafe_arena_release_geocentricposition() {
// @@protoc_insertion_point(field_release:messages.RadarMessage.RadarMessage.GeocentricPosition)
::messages::track::EntityGeocentricPosition* temp = _impl_.geocentricposition_;
_impl_.geocentricposition_ = nullptr;
return temp;
}
inline ::messages::track::EntityGeocentricPosition* RadarMessage::_internal_mutable_geocentricposition() {
if (_impl_.geocentricposition_ == nullptr) {
auto* p = CreateMaybeMessage<::messages::track::EntityGeocentricPosition>(GetArenaForAllocation());
_impl_.geocentricposition_ = p;
}
return _impl_.geocentricposition_;
}
inline ::messages::track::EntityGeocentricPosition* RadarMessage::mutable_geocentricposition() {
::messages::track::EntityGeocentricPosition* _msg = _internal_mutable_geocentricposition();
// @@protoc_insertion_point(field_mutable:messages.RadarMessage.RadarMessage.GeocentricPosition)
return _msg;
}
inline void RadarMessage::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);
}
} else {
}
_impl_.geocentricposition_ = geocentricposition;
// @@protoc_insertion_point(field_set_allocated:messages.RadarMessage.RadarMessage.GeocentricPosition)
}
// double ContactSpeed = 3;
inline void RadarMessage::clear_contactspeed() {
_impl_.contactspeed_ = 0;
}
inline double RadarMessage::_internal_contactspeed() const {
return _impl_.contactspeed_;
}
inline double RadarMessage::contactspeed() const {
// @@protoc_insertion_point(field_get:messages.RadarMessage.RadarMessage.ContactSpeed)
return _internal_contactspeed();
}
inline void RadarMessage::_internal_set_contactspeed(double value) {
_impl_.contactspeed_ = value;
}
inline void RadarMessage::set_contactspeed(double value) {
_internal_set_contactspeed(value);
// @@protoc_insertion_point(field_set:messages.RadarMessage.RadarMessage.ContactSpeed)
}
// double ContactCourse = 4;
inline void RadarMessage::clear_contactcourse() {
_impl_.contactcourse_ = 0;
}
inline double RadarMessage::_internal_contactcourse() const {
return _impl_.contactcourse_;
}
inline double RadarMessage::contactcourse() const {
// @@protoc_insertion_point(field_get:messages.RadarMessage.RadarMessage.ContactCourse)
return _internal_contactcourse();
}
inline void RadarMessage::_internal_set_contactcourse(double value) {
_impl_.contactcourse_ = value;
}
inline void RadarMessage::set_contactcourse(double value) {
_internal_set_contactcourse(value);
// @@protoc_insertion_point(field_set:messages.RadarMessage.RadarMessage.ContactCourse)
}
// double ContactBearing = 5;
inline void RadarMessage::clear_contactbearing() {
_impl_.contactbearing_ = 0;
}
inline double RadarMessage::_internal_contactbearing() const {
return _impl_.contactbearing_;
}
inline double RadarMessage::contactbearing() const {
// @@protoc_insertion_point(field_get:messages.RadarMessage.RadarMessage.ContactBearing)
return _internal_contactbearing();
}
inline void RadarMessage::_internal_set_contactbearing(double value) {
_impl_.contactbearing_ = value;
}
inline void RadarMessage::set_contactbearing(double value) {
_internal_set_contactbearing(value);
// @@protoc_insertion_point(field_set:messages.RadarMessage.RadarMessage.ContactBearing)
}
// double ContactRange = 6;
inline void RadarMessage::clear_contactrange() {
_impl_.contactrange_ = 0;
}
inline double RadarMessage::_internal_contactrange() const {
return _impl_.contactrange_;
}
inline double RadarMessage::contactrange() const {
// @@protoc_insertion_point(field_get:messages.RadarMessage.RadarMessage.ContactRange)
return _internal_contactrange();
}
inline void RadarMessage::_internal_set_contactrange(double value) {
_impl_.contactrange_ = value;
}
inline void RadarMessage::set_contactrange(double value) {
_internal_set_contactrange(value);
// @@protoc_insertion_point(field_set:messages.RadarMessage.RadarMessage.ContactRange)
}
// string ContactEnvironemnt = 7;
inline void RadarMessage::clear_contactenvironemnt() {
_impl_.contactenvironemnt_.ClearToEmpty();
}
inline const std::string& RadarMessage::contactenvironemnt() const {
// @@protoc_insertion_point(field_get:messages.RadarMessage.RadarMessage.ContactEnvironemnt)
return _internal_contactenvironemnt();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void RadarMessage::set_contactenvironemnt(ArgT0&& arg0, ArgT... args) {
_impl_.contactenvironemnt_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:messages.RadarMessage.RadarMessage.ContactEnvironemnt)
}
inline std::string* RadarMessage::mutable_contactenvironemnt() {
std::string* _s = _internal_mutable_contactenvironemnt();
// @@protoc_insertion_point(field_mutable:messages.RadarMessage.RadarMessage.ContactEnvironemnt)
return _s;
}
inline const std::string& RadarMessage::_internal_contactenvironemnt() const {
return _impl_.contactenvironemnt_.Get();
}
inline void RadarMessage::_internal_set_contactenvironemnt(const std::string& value) {
_impl_.contactenvironemnt_.Set(value, GetArenaForAllocation());
}
inline std::string* RadarMessage::_internal_mutable_contactenvironemnt() {
return _impl_.contactenvironemnt_.Mutable(GetArenaForAllocation());
}
inline std::string* RadarMessage::release_contactenvironemnt() {
// @@protoc_insertion_point(field_release:messages.RadarMessage.RadarMessage.ContactEnvironemnt)
return _impl_.contactenvironemnt_.Release();
}
inline void RadarMessage::set_allocated_contactenvironemnt(std::string* contactenvironemnt) {
if (contactenvironemnt != nullptr) {
} else {
}
_impl_.contactenvironemnt_.SetAllocated(contactenvironemnt, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.contactenvironemnt_.IsDefault()) {
_impl_.contactenvironemnt_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:messages.RadarMessage.RadarMessage.ContactEnvironemnt)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace RadarMessage
} // namespace messages
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_RadarMessage_2eproto

View File

@@ -0,0 +1,19 @@
syntax = "proto3";
package messages.RadarMessage;
import "google/protobuf/timestamp.proto";
import "GeocentricPosition.proto";
import "Identifier.proto";
// [END declaration]
message RadarMessage {
messages.track.Identifier EntityIdentifier = 1;
messages.track.EntityGeocentricPosition GeocentricPosition = 2;
double ContactSpeed = 3;
double ContactCourse = 4;
double ContactBearing = 5;
double ContactRange = 6;
string ContactEnvironemnt = 7;
}

View File

@@ -22,35 +22,6 @@ namespace _pbi = _pb::internal;
namespace messages { namespace messages {
namespace track { namespace track {
PROTOBUF_CONSTEXPR Track_Identifier::Track_Identifier(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.number_)*/int64_t{0}
, /*decltype(_impl_.external_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct Track_IdentifierDefaultTypeInternal {
PROTOBUF_CONSTEXPR Track_IdentifierDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~Track_IdentifierDefaultTypeInternal() {}
union {
Track_Identifier _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Track_IdentifierDefaultTypeInternal _Track_Identifier_default_instance_;
PROTOBUF_CONSTEXPR Track_EntityGeocentricPosition::Track_EntityGeocentricPosition(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.x_)*/0
, /*decltype(_impl_.y_)*/0
, /*decltype(_impl_.z_)*/0
, /*decltype(_impl_._cached_size_)*/{}} {}
struct Track_EntityGeocentricPositionDefaultTypeInternal {
PROTOBUF_CONSTEXPR Track_EntityGeocentricPositionDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~Track_EntityGeocentricPositionDefaultTypeInternal() {}
union {
Track_EntityGeocentricPosition _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Track_EntityGeocentricPositionDefaultTypeInternal _Track_EntityGeocentricPosition_default_instance_;
PROTOBUF_CONSTEXPR Track::Track( PROTOBUF_CONSTEXPR Track::Track(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.entityidentifier_)*/nullptr /*decltype(_impl_.entityidentifier_)*/nullptr
@@ -70,28 +41,11 @@ struct TrackDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackDefaultTypeInternal _Track_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrackDefaultTypeInternal _Track_default_instance_;
} // namespace track } // namespace track
} // namespace messages } // namespace messages
static ::_pb::Metadata file_level_metadata_Track_2eproto[3]; static ::_pb::Metadata file_level_metadata_Track_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Track_2eproto = nullptr; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_Track_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Track_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_Track_2eproto = nullptr;
const uint32_t TableStruct_Track_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { const uint32_t TableStruct_Track_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::track::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::Track_Identifier, _impl_.number_),
PROTOBUF_FIELD_OFFSET(::messages::track::Track_Identifier, _impl_.external_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::track::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::Track_EntityGeocentricPosition, _impl_.x_),
PROTOBUF_FIELD_OFFSET(::messages::track::Track_EntityGeocentricPosition, _impl_.y_),
PROTOBUF_FIELD_OFFSET(::messages::track::Track_EntityGeocentricPosition, _impl_.z_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::messages::track::Track, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::messages::track::Track, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@@ -105,38 +59,34 @@ const uint32_t TableStruct_Track_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(pr
PROTOBUF_FIELD_OFFSET(::messages::track::Track, _impl_.timestamp_), PROTOBUF_FIELD_OFFSET(::messages::track::Track, _impl_.timestamp_),
}; };
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::messages::track::Track_Identifier)}, { 0, -1, -1, sizeof(::messages::track::Track)},
{ 8, -1, -1, sizeof(::messages::track::Track_EntityGeocentricPosition)},
{ 17, -1, -1, sizeof(::messages::track::Track)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
&::messages::track::_Track_Identifier_default_instance_._instance,
&::messages::track::_Track_EntityGeocentricPosition_default_instance_._instance,
&::messages::track::_Track_default_instance_._instance, &::messages::track::_Track_default_instance_._instance,
}; };
const char descriptor_table_protodef_Track_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = const char descriptor_table_protodef_Track_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\013Track.proto\022\016messages.track\032\037google/pr" "\n\013Track.proto\022\016messages.track\032\037google/pr"
"otobuf/timestamp.proto\"\312\002\n\005Track\022:\n\020Enti" "otobuf/timestamp.proto\032\030GeocentricPositi"
"tyIdentifier\030\001 \001(\0132 .messages.track.Trac" "on.proto\032\020Identifier.proto\"\321\001\n\005Track\0224\n\020"
"k.Identifier\022J\n\022GeocentricPosition\030\002 \001(\013" "EntityIdentifier\030\001 \001(\0132\032.messages.track."
"2..messages.track.Track.EntityGeocentric" "Identifier\022D\n\022GeocentricPosition\030\002 \001(\0132("
"Position\022\r\n\005Speed\030\003 \001(\001\022\016\n\006Course\030\004 \001(\001\022" ".messages.track.EntityGeocentricPosition"
"-\n\ttimestamp\030\006 \001(\0132\032.google.protobuf.Tim" "\022\r\n\005Speed\030\003 \001(\001\022\016\n\006Course\030\004 \001(\001\022-\n\ttimes"
"estamp\032.\n\nIdentifier\022\016\n\006number\030\001 \001(\003\022\020\n\010" "tamp\030\006 \001(\0132\032.google.protobuf.Timestampb\006"
"external\030\002 \001(\r\032;\n\030EntityGeocentricPositi" "proto3"
"on\022\t\n\001X\030\001 \001(\001\022\t\n\001Y\030\002 \001(\001\022\t\n\001Z\030\003 \001(\001b\006pro"
"to3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_Track_2eproto_deps[1] = { static const ::_pbi::DescriptorTable* const descriptor_table_Track_2eproto_deps[3] = {
&::descriptor_table_GeocentricPosition_2eproto,
&::descriptor_table_Identifier_2eproto,
&::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto, &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
}; };
static ::_pbi::once_flag descriptor_table_Track_2eproto_once; static ::_pbi::once_flag descriptor_table_Track_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_Track_2eproto = { const ::_pbi::DescriptorTable descriptor_table_Track_2eproto = {
false, false, 403, descriptor_table_protodef_Track_2eproto, false, false, 326, descriptor_table_protodef_Track_2eproto,
"Track.proto", "Track.proto",
&descriptor_table_Track_2eproto_once, descriptor_table_Track_2eproto_deps, 1, 3, &descriptor_table_Track_2eproto_once, descriptor_table_Track_2eproto_deps, 3, 1,
schemas, file_default_instances, TableStruct_Track_2eproto::offsets, schemas, file_default_instances, TableStruct_Track_2eproto::offsets,
file_level_metadata_Track_2eproto, file_level_enum_descriptors_Track_2eproto, file_level_metadata_Track_2eproto, file_level_enum_descriptors_Track_2eproto,
file_level_service_descriptors_Track_2eproto, file_level_service_descriptors_Track_2eproto,
@@ -152,500 +102,18 @@ namespace track {
// =================================================================== // ===================================================================
class Track_Identifier::_Internal {
public:
};
Track_Identifier::Track_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.Track.Identifier)
}
Track_Identifier::Track_Identifier(const Track_Identifier& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Track_Identifier* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.number_){}
, decltype(_impl_.external_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&_impl_.number_, &from._impl_.number_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.external_) -
reinterpret_cast<char*>(&_impl_.number_)) + sizeof(_impl_.external_));
// @@protoc_insertion_point(copy_constructor:messages.track.Track.Identifier)
}
inline void Track_Identifier::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.number_){int64_t{0}}
, decltype(_impl_.external_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
}
Track_Identifier::~Track_Identifier() {
// @@protoc_insertion_point(destructor:messages.track.Track.Identifier)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void Track_Identifier::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void Track_Identifier::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void Track_Identifier::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.track.Track.Identifier)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.number_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.external_) -
reinterpret_cast<char*>(&_impl_.number_)) + sizeof(_impl_.external_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Track_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) {
// int64 number = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint32 external = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.external_ = ::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:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* Track_Identifier::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.track.Track.Identifier)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// int64 number = 1;
if (this->_internal_number() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_number(), target);
}
// uint32 external = 2;
if (this->_internal_external() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_external(), 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.Track.Identifier)
return target;
}
size_t Track_Identifier::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.track.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;
// int64 number = 1;
if (this->_internal_number() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_number());
}
// uint32 external = 2;
if (this->_internal_external() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_external());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Track_Identifier::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Track_Identifier::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Track_Identifier::GetClassData() const { return &_class_data_; }
void Track_Identifier::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<Track_Identifier*>(&to_msg);
auto& from = static_cast<const Track_Identifier&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.track.Track.Identifier)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_number() != 0) {
_this->_internal_set_number(from._internal_number());
}
if (from._internal_external() != 0) {
_this->_internal_set_external(from._internal_external());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void Track_Identifier::CopyFrom(const Track_Identifier& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:messages.track.Track.Identifier)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Track_Identifier::IsInitialized() const {
return true;
}
void Track_Identifier::InternalSwap(Track_Identifier* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(Track_Identifier, _impl_.external_)
+ sizeof(Track_Identifier::_impl_.external_)
- PROTOBUF_FIELD_OFFSET(Track_Identifier, _impl_.number_)>(
reinterpret_cast<char*>(&_impl_.number_),
reinterpret_cast<char*>(&other->_impl_.number_));
}
::PROTOBUF_NAMESPACE_ID::Metadata Track_Identifier::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_Track_2eproto_getter, &descriptor_table_Track_2eproto_once,
file_level_metadata_Track_2eproto[0]);
}
// ===================================================================
class Track_EntityGeocentricPosition::_Internal {
public:
};
Track_EntityGeocentricPosition::Track_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.Track.EntityGeocentricPosition)
}
Track_EntityGeocentricPosition::Track_EntityGeocentricPosition(const Track_EntityGeocentricPosition& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Track_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<size_t>(reinterpret_cast<char*>(&_impl_.z_) -
reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.z_));
// @@protoc_insertion_point(copy_constructor:messages.track.Track.EntityGeocentricPosition)
}
inline void Track_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_)*/{}
};
}
Track_EntityGeocentricPosition::~Track_EntityGeocentricPosition() {
// @@protoc_insertion_point(destructor:messages.track.Track.EntityGeocentricPosition)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void Track_EntityGeocentricPosition::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void Track_EntityGeocentricPosition::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void Track_EntityGeocentricPosition::Clear() {
// @@protoc_insertion_point(message_clear_start:messages.track.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<size_t>(
reinterpret_cast<char*>(&_impl_.z_) -
reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.z_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Track_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<uint8_t>(tag) == 9)) {
_impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else
goto handle_unusual;
continue;
// double Y = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 17)) {
_impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
ptr += sizeof(double);
} else
goto handle_unusual;
continue;
// double Z = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 25)) {
_impl_.z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(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* Track_EntityGeocentricPosition::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:messages.track.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.Track.EntityGeocentricPosition)
return target;
}
size_t Track_EntityGeocentricPosition::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:messages.track.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 Track_EntityGeocentricPosition::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Track_EntityGeocentricPosition::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Track_EntityGeocentricPosition::GetClassData() const { return &_class_data_; }
void Track_EntityGeocentricPosition::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<Track_EntityGeocentricPosition*>(&to_msg);
auto& from = static_cast<const Track_EntityGeocentricPosition&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:messages.track.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 Track_EntityGeocentricPosition::CopyFrom(const Track_EntityGeocentricPosition& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:messages.track.Track.EntityGeocentricPosition)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Track_EntityGeocentricPosition::IsInitialized() const {
return true;
}
void Track_EntityGeocentricPosition::InternalSwap(Track_EntityGeocentricPosition* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(Track_EntityGeocentricPosition, _impl_.z_)
+ sizeof(Track_EntityGeocentricPosition::_impl_.z_)
- PROTOBUF_FIELD_OFFSET(Track_EntityGeocentricPosition, _impl_.x_)>(
reinterpret_cast<char*>(&_impl_.x_),
reinterpret_cast<char*>(&other->_impl_.x_));
}
::PROTOBUF_NAMESPACE_ID::Metadata Track_EntityGeocentricPosition::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_Track_2eproto_getter, &descriptor_table_Track_2eproto_once,
file_level_metadata_Track_2eproto[1]);
}
// ===================================================================
class Track::_Internal { class Track::_Internal {
public: public:
static const ::messages::track::Track_Identifier& entityidentifier(const Track* msg); static const ::messages::track::Identifier& entityidentifier(const Track* msg);
static const ::messages::track::Track_EntityGeocentricPosition& geocentricposition(const Track* msg); static const ::messages::track::EntityGeocentricPosition& geocentricposition(const Track* msg);
static const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp(const Track* msg); static const ::PROTOBUF_NAMESPACE_ID::Timestamp& timestamp(const Track* msg);
}; };
const ::messages::track::Track_Identifier& const ::messages::track::Identifier&
Track::_Internal::entityidentifier(const Track* msg) { Track::_Internal::entityidentifier(const Track* msg) {
return *msg->_impl_.entityidentifier_; return *msg->_impl_.entityidentifier_;
} }
const ::messages::track::Track_EntityGeocentricPosition& const ::messages::track::EntityGeocentricPosition&
Track::_Internal::geocentricposition(const Track* msg) { Track::_Internal::geocentricposition(const Track* msg) {
return *msg->_impl_.geocentricposition_; return *msg->_impl_.geocentricposition_;
} }
@@ -653,6 +121,18 @@ const ::PROTOBUF_NAMESPACE_ID::Timestamp&
Track::_Internal::timestamp(const Track* msg) { Track::_Internal::timestamp(const Track* msg) {
return *msg->_impl_.timestamp_; return *msg->_impl_.timestamp_;
} }
void Track::clear_entityidentifier() {
if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
delete _impl_.entityidentifier_;
}
_impl_.entityidentifier_ = nullptr;
}
void Track::clear_geocentricposition() {
if (GetArenaForAllocation() == nullptr && _impl_.geocentricposition_ != nullptr) {
delete _impl_.geocentricposition_;
}
_impl_.geocentricposition_ = nullptr;
}
void Track::clear_timestamp() { void Track::clear_timestamp() {
if (GetArenaForAllocation() == nullptr && _impl_.timestamp_ != nullptr) { if (GetArenaForAllocation() == nullptr && _impl_.timestamp_ != nullptr) {
delete _impl_.timestamp_; delete _impl_.timestamp_;
@@ -678,10 +158,10 @@ Track::Track(const Track& from)
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_entityidentifier()) { if (from._internal_has_entityidentifier()) {
_this->_impl_.entityidentifier_ = new ::messages::track::Track_Identifier(*from._impl_.entityidentifier_); _this->_impl_.entityidentifier_ = new ::messages::track::Identifier(*from._impl_.entityidentifier_);
} }
if (from._internal_has_geocentricposition()) { if (from._internal_has_geocentricposition()) {
_this->_impl_.geocentricposition_ = new ::messages::track::Track_EntityGeocentricPosition(*from._impl_.geocentricposition_); _this->_impl_.geocentricposition_ = new ::messages::track::EntityGeocentricPosition(*from._impl_.geocentricposition_);
} }
if (from._internal_has_timestamp()) { if (from._internal_has_timestamp()) {
_this->_impl_.timestamp_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.timestamp_); _this->_impl_.timestamp_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.timestamp_);
@@ -756,7 +236,7 @@ const char* Track::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
uint32_t tag; uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag); ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) { switch (tag >> 3) {
// .messages.track.Track.Identifier EntityIdentifier = 1; // .messages.track.Identifier EntityIdentifier = 1;
case 1: case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_entityidentifier(), ptr); ptr = ctx->ParseMessage(_internal_mutable_entityidentifier(), ptr);
@@ -764,7 +244,7 @@ const char* Track::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .messages.track.Track.EntityGeocentricPosition GeocentricPosition = 2; // .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
case 2: case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_geocentricposition(), ptr); ptr = ctx->ParseMessage(_internal_mutable_geocentricposition(), ptr);
@@ -825,14 +305,14 @@ uint8_t* Track::_InternalSerialize(
uint32_t cached_has_bits = 0; uint32_t cached_has_bits = 0;
(void) cached_has_bits; (void) cached_has_bits;
// .messages.track.Track.Identifier EntityIdentifier = 1; // .messages.track.Identifier EntityIdentifier = 1;
if (this->_internal_has_entityidentifier()) { if (this->_internal_has_entityidentifier()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::entityidentifier(this), InternalWriteMessage(1, _Internal::entityidentifier(this),
_Internal::entityidentifier(this).GetCachedSize(), target, stream); _Internal::entityidentifier(this).GetCachedSize(), target, stream);
} }
// .messages.track.Track.EntityGeocentricPosition GeocentricPosition = 2; // .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
if (this->_internal_has_geocentricposition()) { if (this->_internal_has_geocentricposition()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, _Internal::geocentricposition(this), InternalWriteMessage(2, _Internal::geocentricposition(this),
@@ -882,14 +362,14 @@ size_t Track::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (void) cached_has_bits;
// .messages.track.Track.Identifier EntityIdentifier = 1; // .messages.track.Identifier EntityIdentifier = 1;
if (this->_internal_has_entityidentifier()) { if (this->_internal_has_entityidentifier()) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.entityidentifier_); *_impl_.entityidentifier_);
} }
// .messages.track.Track.EntityGeocentricPosition GeocentricPosition = 2; // .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
if (this->_internal_has_geocentricposition()) { if (this->_internal_has_geocentricposition()) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
@@ -940,11 +420,11 @@ void Track::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF
(void) cached_has_bits; (void) cached_has_bits;
if (from._internal_has_entityidentifier()) { if (from._internal_has_entityidentifier()) {
_this->_internal_mutable_entityidentifier()->::messages::track::Track_Identifier::MergeFrom( _this->_internal_mutable_entityidentifier()->::messages::track::Identifier::MergeFrom(
from._internal_entityidentifier()); from._internal_entityidentifier());
} }
if (from._internal_has_geocentricposition()) { if (from._internal_has_geocentricposition()) {
_this->_internal_mutable_geocentricposition()->::messages::track::Track_EntityGeocentricPosition::MergeFrom( _this->_internal_mutable_geocentricposition()->::messages::track::EntityGeocentricPosition::MergeFrom(
from._internal_geocentricposition()); from._internal_geocentricposition());
} }
if (from._internal_has_timestamp()) { if (from._internal_has_timestamp()) {
@@ -993,21 +473,13 @@ void Track::InternalSwap(Track* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Track::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata Track::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_Track_2eproto_getter, &descriptor_table_Track_2eproto_once, &descriptor_table_Track_2eproto_getter, &descriptor_table_Track_2eproto_once,
file_level_metadata_Track_2eproto[2]); file_level_metadata_Track_2eproto[0]);
} }
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
} // namespace track } // namespace track
} // namespace messages } // namespace messages
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::messages::track::Track_Identifier*
Arena::CreateMaybeMessage< ::messages::track::Track_Identifier >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::track::Track_Identifier >(arena);
}
template<> PROTOBUF_NOINLINE ::messages::track::Track_EntityGeocentricPosition*
Arena::CreateMaybeMessage< ::messages::track::Track_EntityGeocentricPosition >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::track::Track_EntityGeocentricPosition >(arena);
}
template<> PROTOBUF_NOINLINE ::messages::track::Track* template<> PROTOBUF_NOINLINE ::messages::track::Track*
Arena::CreateMaybeMessage< ::messages::track::Track >(Arena* arena) { Arena::CreateMaybeMessage< ::messages::track::Track >(Arena* arena) {
return Arena::CreateMessageInternal< ::messages::track::Track >(arena); return Arena::CreateMessageInternal< ::messages::track::Track >(arena);

View File

@@ -31,6 +31,8 @@
#include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h> #include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/timestamp.pb.h> #include <google/protobuf/timestamp.pb.h>
#include "GeocentricPosition.pb.h"
#include "Identifier.pb.h"
// @@protoc_insertion_point(includes) // @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc> #include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_Track_2eproto #define PROTOBUF_INTERNAL_EXPORT_Track_2eproto
@@ -50,353 +52,16 @@ namespace track {
class Track; class Track;
struct TrackDefaultTypeInternal; struct TrackDefaultTypeInternal;
extern TrackDefaultTypeInternal _Track_default_instance_; extern TrackDefaultTypeInternal _Track_default_instance_;
class Track_EntityGeocentricPosition;
struct Track_EntityGeocentricPositionDefaultTypeInternal;
extern Track_EntityGeocentricPositionDefaultTypeInternal _Track_EntityGeocentricPosition_default_instance_;
class Track_Identifier;
struct Track_IdentifierDefaultTypeInternal;
extern Track_IdentifierDefaultTypeInternal _Track_Identifier_default_instance_;
} // namespace track } // namespace track
} // namespace messages } // namespace messages
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NAMESPACE_OPEN
template<> ::messages::track::Track* Arena::CreateMaybeMessage<::messages::track::Track>(Arena*); template<> ::messages::track::Track* Arena::CreateMaybeMessage<::messages::track::Track>(Arena*);
template<> ::messages::track::Track_EntityGeocentricPosition* Arena::CreateMaybeMessage<::messages::track::Track_EntityGeocentricPosition>(Arena*);
template<> ::messages::track::Track_Identifier* Arena::CreateMaybeMessage<::messages::track::Track_Identifier>(Arena*);
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
namespace messages { namespace messages {
namespace track { namespace track {
// =================================================================== // ===================================================================
class Track_Identifier final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.track.Track.Identifier) */ {
public:
inline Track_Identifier() : Track_Identifier(nullptr) {}
~Track_Identifier() override;
explicit PROTOBUF_CONSTEXPR Track_Identifier(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Track_Identifier(const Track_Identifier& from);
Track_Identifier(Track_Identifier&& from) noexcept
: Track_Identifier() {
*this = ::std::move(from);
}
inline Track_Identifier& operator=(const Track_Identifier& from) {
CopyFrom(from);
return *this;
}
inline Track_Identifier& operator=(Track_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 Track_Identifier& default_instance() {
return *internal_default_instance();
}
static inline const Track_Identifier* internal_default_instance() {
return reinterpret_cast<const Track_Identifier*>(
&_Track_Identifier_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(Track_Identifier& a, Track_Identifier& b) {
a.Swap(&b);
}
inline void Swap(Track_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(Track_Identifier* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Track_Identifier* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Track_Identifier>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Track_Identifier& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const Track_Identifier& from) {
Track_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(Track_Identifier* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "messages.track.Track.Identifier";
}
protected:
explicit Track_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 {
kNumberFieldNumber = 1,
kExternalFieldNumber = 2,
};
// int64 number = 1;
void clear_number();
int64_t number() const;
void set_number(int64_t value);
private:
int64_t _internal_number() const;
void _internal_set_number(int64_t value);
public:
// uint32 external = 2;
void clear_external();
uint32_t external() const;
void set_external(uint32_t value);
private:
uint32_t _internal_external() const;
void _internal_set_external(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:messages.track.Track.Identifier)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
int64_t number_;
uint32_t external_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_Track_2eproto;
};
// -------------------------------------------------------------------
class Track_EntityGeocentricPosition final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.track.Track.EntityGeocentricPosition) */ {
public:
inline Track_EntityGeocentricPosition() : Track_EntityGeocentricPosition(nullptr) {}
~Track_EntityGeocentricPosition() override;
explicit PROTOBUF_CONSTEXPR Track_EntityGeocentricPosition(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Track_EntityGeocentricPosition(const Track_EntityGeocentricPosition& from);
Track_EntityGeocentricPosition(Track_EntityGeocentricPosition&& from) noexcept
: Track_EntityGeocentricPosition() {
*this = ::std::move(from);
}
inline Track_EntityGeocentricPosition& operator=(const Track_EntityGeocentricPosition& from) {
CopyFrom(from);
return *this;
}
inline Track_EntityGeocentricPosition& operator=(Track_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 Track_EntityGeocentricPosition& default_instance() {
return *internal_default_instance();
}
static inline const Track_EntityGeocentricPosition* internal_default_instance() {
return reinterpret_cast<const Track_EntityGeocentricPosition*>(
&_Track_EntityGeocentricPosition_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(Track_EntityGeocentricPosition& a, Track_EntityGeocentricPosition& b) {
a.Swap(&b);
}
inline void Swap(Track_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(Track_EntityGeocentricPosition* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Track_EntityGeocentricPosition* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Track_EntityGeocentricPosition>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Track_EntityGeocentricPosition& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const Track_EntityGeocentricPosition& from) {
Track_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(Track_EntityGeocentricPosition* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "messages.track.Track.EntityGeocentricPosition";
}
protected:
explicit Track_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.Track.EntityGeocentricPosition)
private:
class _Internal;
template <typename T> 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_Track_2eproto;
};
// -------------------------------------------------------------------
class Track final : class Track final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.track.Track) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:messages.track.Track) */ {
public: public:
@@ -445,7 +110,7 @@ class Track final :
&_Track_default_instance_); &_Track_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
2; 0;
friend void swap(Track& a, Track& b) { friend void swap(Track& a, Track& b) {
a.Swap(&b); a.Swap(&b);
@@ -515,9 +180,6 @@ class Track final :
// nested types ---------------------------------------------------- // nested types ----------------------------------------------------
typedef Track_Identifier Identifier;
typedef Track_EntityGeocentricPosition EntityGeocentricPosition;
// accessors ------------------------------------------------------- // accessors -------------------------------------------------------
enum : int { enum : int {
@@ -527,41 +189,41 @@ class Track final :
kSpeedFieldNumber = 3, kSpeedFieldNumber = 3,
kCourseFieldNumber = 4, kCourseFieldNumber = 4,
}; };
// .messages.track.Track.Identifier EntityIdentifier = 1; // .messages.track.Identifier EntityIdentifier = 1;
bool has_entityidentifier() const; bool has_entityidentifier() const;
private: private:
bool _internal_has_entityidentifier() const; bool _internal_has_entityidentifier() const;
public: public:
void clear_entityidentifier(); void clear_entityidentifier();
const ::messages::track::Track_Identifier& entityidentifier() const; const ::messages::track::Identifier& entityidentifier() const;
PROTOBUF_NODISCARD ::messages::track::Track_Identifier* release_entityidentifier(); PROTOBUF_NODISCARD ::messages::track::Identifier* release_entityidentifier();
::messages::track::Track_Identifier* mutable_entityidentifier(); ::messages::track::Identifier* mutable_entityidentifier();
void set_allocated_entityidentifier(::messages::track::Track_Identifier* entityidentifier); void set_allocated_entityidentifier(::messages::track::Identifier* entityidentifier);
private: private:
const ::messages::track::Track_Identifier& _internal_entityidentifier() const; const ::messages::track::Identifier& _internal_entityidentifier() const;
::messages::track::Track_Identifier* _internal_mutable_entityidentifier(); ::messages::track::Identifier* _internal_mutable_entityidentifier();
public: public:
void unsafe_arena_set_allocated_entityidentifier( void unsafe_arena_set_allocated_entityidentifier(
::messages::track::Track_Identifier* entityidentifier); ::messages::track::Identifier* entityidentifier);
::messages::track::Track_Identifier* unsafe_arena_release_entityidentifier(); ::messages::track::Identifier* unsafe_arena_release_entityidentifier();
// .messages.track.Track.EntityGeocentricPosition GeocentricPosition = 2; // .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
bool has_geocentricposition() const; bool has_geocentricposition() const;
private: private:
bool _internal_has_geocentricposition() const; bool _internal_has_geocentricposition() const;
public: public:
void clear_geocentricposition(); void clear_geocentricposition();
const ::messages::track::Track_EntityGeocentricPosition& geocentricposition() const; const ::messages::track::EntityGeocentricPosition& geocentricposition() const;
PROTOBUF_NODISCARD ::messages::track::Track_EntityGeocentricPosition* release_geocentricposition(); PROTOBUF_NODISCARD ::messages::track::EntityGeocentricPosition* release_geocentricposition();
::messages::track::Track_EntityGeocentricPosition* mutable_geocentricposition(); ::messages::track::EntityGeocentricPosition* mutable_geocentricposition();
void set_allocated_geocentricposition(::messages::track::Track_EntityGeocentricPosition* geocentricposition); void set_allocated_geocentricposition(::messages::track::EntityGeocentricPosition* geocentricposition);
private: private:
const ::messages::track::Track_EntityGeocentricPosition& _internal_geocentricposition() const; const ::messages::track::EntityGeocentricPosition& _internal_geocentricposition() const;
::messages::track::Track_EntityGeocentricPosition* _internal_mutable_geocentricposition(); ::messages::track::EntityGeocentricPosition* _internal_mutable_geocentricposition();
public: public:
void unsafe_arena_set_allocated_geocentricposition( void unsafe_arena_set_allocated_geocentricposition(
::messages::track::Track_EntityGeocentricPosition* geocentricposition); ::messages::track::EntityGeocentricPosition* geocentricposition);
::messages::track::Track_EntityGeocentricPosition* unsafe_arena_release_geocentricposition(); ::messages::track::EntityGeocentricPosition* unsafe_arena_release_geocentricposition();
// .google.protobuf.Timestamp timestamp = 6; // .google.protobuf.Timestamp timestamp = 6;
bool has_timestamp() const; bool has_timestamp() const;
@@ -607,8 +269,8 @@ class Track final :
typedef void InternalArenaConstructable_; typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
struct Impl_ { struct Impl_ {
::messages::track::Track_Identifier* entityidentifier_; ::messages::track::Identifier* entityidentifier_;
::messages::track::Track_EntityGeocentricPosition* geocentricposition_; ::messages::track::EntityGeocentricPosition* geocentricposition_;
::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_; ::PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_;
double speed_; double speed_;
double course_; double course_;
@@ -626,140 +288,26 @@ class Track final :
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing" #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__ #endif // __GNUC__
// Track_Identifier
// int64 number = 1;
inline void Track_Identifier::clear_number() {
_impl_.number_ = int64_t{0};
}
inline int64_t Track_Identifier::_internal_number() const {
return _impl_.number_;
}
inline int64_t Track_Identifier::number() const {
// @@protoc_insertion_point(field_get:messages.track.Track.Identifier.number)
return _internal_number();
}
inline void Track_Identifier::_internal_set_number(int64_t value) {
_impl_.number_ = value;
}
inline void Track_Identifier::set_number(int64_t value) {
_internal_set_number(value);
// @@protoc_insertion_point(field_set:messages.track.Track.Identifier.number)
}
// uint32 external = 2;
inline void Track_Identifier::clear_external() {
_impl_.external_ = 0u;
}
inline uint32_t Track_Identifier::_internal_external() const {
return _impl_.external_;
}
inline uint32_t Track_Identifier::external() const {
// @@protoc_insertion_point(field_get:messages.track.Track.Identifier.external)
return _internal_external();
}
inline void Track_Identifier::_internal_set_external(uint32_t value) {
_impl_.external_ = value;
}
inline void Track_Identifier::set_external(uint32_t value) {
_internal_set_external(value);
// @@protoc_insertion_point(field_set:messages.track.Track.Identifier.external)
}
// -------------------------------------------------------------------
// Track_EntityGeocentricPosition
// double X = 1;
inline void Track_EntityGeocentricPosition::clear_x() {
_impl_.x_ = 0;
}
inline double Track_EntityGeocentricPosition::_internal_x() const {
return _impl_.x_;
}
inline double Track_EntityGeocentricPosition::x() const {
// @@protoc_insertion_point(field_get:messages.track.Track.EntityGeocentricPosition.X)
return _internal_x();
}
inline void Track_EntityGeocentricPosition::_internal_set_x(double value) {
_impl_.x_ = value;
}
inline void Track_EntityGeocentricPosition::set_x(double value) {
_internal_set_x(value);
// @@protoc_insertion_point(field_set:messages.track.Track.EntityGeocentricPosition.X)
}
// double Y = 2;
inline void Track_EntityGeocentricPosition::clear_y() {
_impl_.y_ = 0;
}
inline double Track_EntityGeocentricPosition::_internal_y() const {
return _impl_.y_;
}
inline double Track_EntityGeocentricPosition::y() const {
// @@protoc_insertion_point(field_get:messages.track.Track.EntityGeocentricPosition.Y)
return _internal_y();
}
inline void Track_EntityGeocentricPosition::_internal_set_y(double value) {
_impl_.y_ = value;
}
inline void Track_EntityGeocentricPosition::set_y(double value) {
_internal_set_y(value);
// @@protoc_insertion_point(field_set:messages.track.Track.EntityGeocentricPosition.Y)
}
// double Z = 3;
inline void Track_EntityGeocentricPosition::clear_z() {
_impl_.z_ = 0;
}
inline double Track_EntityGeocentricPosition::_internal_z() const {
return _impl_.z_;
}
inline double Track_EntityGeocentricPosition::z() const {
// @@protoc_insertion_point(field_get:messages.track.Track.EntityGeocentricPosition.Z)
return _internal_z();
}
inline void Track_EntityGeocentricPosition::_internal_set_z(double value) {
_impl_.z_ = value;
}
inline void Track_EntityGeocentricPosition::set_z(double value) {
_internal_set_z(value);
// @@protoc_insertion_point(field_set:messages.track.Track.EntityGeocentricPosition.Z)
}
// -------------------------------------------------------------------
// Track // Track
// .messages.track.Track.Identifier EntityIdentifier = 1; // .messages.track.Identifier EntityIdentifier = 1;
inline bool Track::_internal_has_entityidentifier() const { inline bool Track::_internal_has_entityidentifier() const {
return this != internal_default_instance() && _impl_.entityidentifier_ != nullptr; return this != internal_default_instance() && _impl_.entityidentifier_ != nullptr;
} }
inline bool Track::has_entityidentifier() const { inline bool Track::has_entityidentifier() const {
return _internal_has_entityidentifier(); return _internal_has_entityidentifier();
} }
inline void Track::clear_entityidentifier() { inline const ::messages::track::Identifier& Track::_internal_entityidentifier() const {
if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) { const ::messages::track::Identifier* p = _impl_.entityidentifier_;
delete _impl_.entityidentifier_; return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Identifier&>(
} ::messages::track::_Identifier_default_instance_);
_impl_.entityidentifier_ = nullptr;
} }
inline const ::messages::track::Track_Identifier& Track::_internal_entityidentifier() const { inline const ::messages::track::Identifier& Track::entityidentifier() const {
const ::messages::track::Track_Identifier* p = _impl_.entityidentifier_;
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Track_Identifier&>(
::messages::track::_Track_Identifier_default_instance_);
}
inline const ::messages::track::Track_Identifier& Track::entityidentifier() const {
// @@protoc_insertion_point(field_get:messages.track.Track.EntityIdentifier) // @@protoc_insertion_point(field_get:messages.track.Track.EntityIdentifier)
return _internal_entityidentifier(); return _internal_entityidentifier();
} }
inline void Track::unsafe_arena_set_allocated_entityidentifier( inline void Track::unsafe_arena_set_allocated_entityidentifier(
::messages::track::Track_Identifier* entityidentifier) { ::messages::track::Identifier* entityidentifier) {
if (GetArenaForAllocation() == nullptr) { if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.entityidentifier_); delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.entityidentifier_);
} }
@@ -771,9 +319,9 @@ inline void Track::unsafe_arena_set_allocated_entityidentifier(
} }
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.track.Track.EntityIdentifier) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.track.Track.EntityIdentifier)
} }
inline ::messages::track::Track_Identifier* Track::release_entityidentifier() { inline ::messages::track::Identifier* Track::release_entityidentifier() {
::messages::track::Track_Identifier* temp = _impl_.entityidentifier_; ::messages::track::Identifier* temp = _impl_.entityidentifier_;
_impl_.entityidentifier_ = nullptr; _impl_.entityidentifier_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
@@ -786,34 +334,35 @@ inline ::messages::track::Track_Identifier* Track::release_entityidentifier() {
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp; return temp;
} }
inline ::messages::track::Track_Identifier* Track::unsafe_arena_release_entityidentifier() { inline ::messages::track::Identifier* Track::unsafe_arena_release_entityidentifier() {
// @@protoc_insertion_point(field_release:messages.track.Track.EntityIdentifier) // @@protoc_insertion_point(field_release:messages.track.Track.EntityIdentifier)
::messages::track::Track_Identifier* temp = _impl_.entityidentifier_; ::messages::track::Identifier* temp = _impl_.entityidentifier_;
_impl_.entityidentifier_ = nullptr; _impl_.entityidentifier_ = nullptr;
return temp; return temp;
} }
inline ::messages::track::Track_Identifier* Track::_internal_mutable_entityidentifier() { inline ::messages::track::Identifier* Track::_internal_mutable_entityidentifier() {
if (_impl_.entityidentifier_ == nullptr) { if (_impl_.entityidentifier_ == nullptr) {
auto* p = CreateMaybeMessage<::messages::track::Track_Identifier>(GetArenaForAllocation()); auto* p = CreateMaybeMessage<::messages::track::Identifier>(GetArenaForAllocation());
_impl_.entityidentifier_ = p; _impl_.entityidentifier_ = p;
} }
return _impl_.entityidentifier_; return _impl_.entityidentifier_;
} }
inline ::messages::track::Track_Identifier* Track::mutable_entityidentifier() { inline ::messages::track::Identifier* Track::mutable_entityidentifier() {
::messages::track::Track_Identifier* _msg = _internal_mutable_entityidentifier(); ::messages::track::Identifier* _msg = _internal_mutable_entityidentifier();
// @@protoc_insertion_point(field_mutable:messages.track.Track.EntityIdentifier) // @@protoc_insertion_point(field_mutable:messages.track.Track.EntityIdentifier)
return _msg; return _msg;
} }
inline void Track::set_allocated_entityidentifier(::messages::track::Track_Identifier* entityidentifier) { inline void Track::set_allocated_entityidentifier(::messages::track::Identifier* entityidentifier) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) { if (message_arena == nullptr) {
delete _impl_.entityidentifier_; delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.entityidentifier_);
} }
if (entityidentifier) { if (entityidentifier) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(entityidentifier); ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(entityidentifier));
if (message_arena != submessage_arena) { if (message_arena != submessage_arena) {
entityidentifier = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( entityidentifier = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, entityidentifier, submessage_arena); message_arena, entityidentifier, submessage_arena);
@@ -826,30 +375,24 @@ inline void Track::set_allocated_entityidentifier(::messages::track::Track_Ident
// @@protoc_insertion_point(field_set_allocated:messages.track.Track.EntityIdentifier) // @@protoc_insertion_point(field_set_allocated:messages.track.Track.EntityIdentifier)
} }
// .messages.track.Track.EntityGeocentricPosition GeocentricPosition = 2; // .messages.track.EntityGeocentricPosition GeocentricPosition = 2;
inline bool Track::_internal_has_geocentricposition() const { inline bool Track::_internal_has_geocentricposition() const {
return this != internal_default_instance() && _impl_.geocentricposition_ != nullptr; return this != internal_default_instance() && _impl_.geocentricposition_ != nullptr;
} }
inline bool Track::has_geocentricposition() const { inline bool Track::has_geocentricposition() const {
return _internal_has_geocentricposition(); return _internal_has_geocentricposition();
} }
inline void Track::clear_geocentricposition() { inline const ::messages::track::EntityGeocentricPosition& Track::_internal_geocentricposition() const {
if (GetArenaForAllocation() == nullptr && _impl_.geocentricposition_ != nullptr) { const ::messages::track::EntityGeocentricPosition* p = _impl_.geocentricposition_;
delete _impl_.geocentricposition_; return p != nullptr ? *p : reinterpret_cast<const ::messages::track::EntityGeocentricPosition&>(
} ::messages::track::_EntityGeocentricPosition_default_instance_);
_impl_.geocentricposition_ = nullptr;
} }
inline const ::messages::track::Track_EntityGeocentricPosition& Track::_internal_geocentricposition() const { inline const ::messages::track::EntityGeocentricPosition& Track::geocentricposition() const {
const ::messages::track::Track_EntityGeocentricPosition* p = _impl_.geocentricposition_;
return p != nullptr ? *p : reinterpret_cast<const ::messages::track::Track_EntityGeocentricPosition&>(
::messages::track::_Track_EntityGeocentricPosition_default_instance_);
}
inline const ::messages::track::Track_EntityGeocentricPosition& Track::geocentricposition() const {
// @@protoc_insertion_point(field_get:messages.track.Track.GeocentricPosition) // @@protoc_insertion_point(field_get:messages.track.Track.GeocentricPosition)
return _internal_geocentricposition(); return _internal_geocentricposition();
} }
inline void Track::unsafe_arena_set_allocated_geocentricposition( inline void Track::unsafe_arena_set_allocated_geocentricposition(
::messages::track::Track_EntityGeocentricPosition* geocentricposition) { ::messages::track::EntityGeocentricPosition* geocentricposition) {
if (GetArenaForAllocation() == nullptr) { if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.geocentricposition_); delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.geocentricposition_);
} }
@@ -861,9 +404,9 @@ inline void Track::unsafe_arena_set_allocated_geocentricposition(
} }
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.track.Track.GeocentricPosition) // @@protoc_insertion_point(field_unsafe_arena_set_allocated:messages.track.Track.GeocentricPosition)
} }
inline ::messages::track::Track_EntityGeocentricPosition* Track::release_geocentricposition() { inline ::messages::track::EntityGeocentricPosition* Track::release_geocentricposition() {
::messages::track::Track_EntityGeocentricPosition* temp = _impl_.geocentricposition_; ::messages::track::EntityGeocentricPosition* temp = _impl_.geocentricposition_;
_impl_.geocentricposition_ = nullptr; _impl_.geocentricposition_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
@@ -876,34 +419,35 @@ inline ::messages::track::Track_EntityGeocentricPosition* Track::release_geocent
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp; return temp;
} }
inline ::messages::track::Track_EntityGeocentricPosition* Track::unsafe_arena_release_geocentricposition() { inline ::messages::track::EntityGeocentricPosition* Track::unsafe_arena_release_geocentricposition() {
// @@protoc_insertion_point(field_release:messages.track.Track.GeocentricPosition) // @@protoc_insertion_point(field_release:messages.track.Track.GeocentricPosition)
::messages::track::Track_EntityGeocentricPosition* temp = _impl_.geocentricposition_; ::messages::track::EntityGeocentricPosition* temp = _impl_.geocentricposition_;
_impl_.geocentricposition_ = nullptr; _impl_.geocentricposition_ = nullptr;
return temp; return temp;
} }
inline ::messages::track::Track_EntityGeocentricPosition* Track::_internal_mutable_geocentricposition() { inline ::messages::track::EntityGeocentricPosition* Track::_internal_mutable_geocentricposition() {
if (_impl_.geocentricposition_ == nullptr) { if (_impl_.geocentricposition_ == nullptr) {
auto* p = CreateMaybeMessage<::messages::track::Track_EntityGeocentricPosition>(GetArenaForAllocation()); auto* p = CreateMaybeMessage<::messages::track::EntityGeocentricPosition>(GetArenaForAllocation());
_impl_.geocentricposition_ = p; _impl_.geocentricposition_ = p;
} }
return _impl_.geocentricposition_; return _impl_.geocentricposition_;
} }
inline ::messages::track::Track_EntityGeocentricPosition* Track::mutable_geocentricposition() { inline ::messages::track::EntityGeocentricPosition* Track::mutable_geocentricposition() {
::messages::track::Track_EntityGeocentricPosition* _msg = _internal_mutable_geocentricposition(); ::messages::track::EntityGeocentricPosition* _msg = _internal_mutable_geocentricposition();
// @@protoc_insertion_point(field_mutable:messages.track.Track.GeocentricPosition) // @@protoc_insertion_point(field_mutable:messages.track.Track.GeocentricPosition)
return _msg; return _msg;
} }
inline void Track::set_allocated_geocentricposition(::messages::track::Track_EntityGeocentricPosition* geocentricposition) { inline void Track::set_allocated_geocentricposition(::messages::track::EntityGeocentricPosition* geocentricposition) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) { if (message_arena == nullptr) {
delete _impl_.geocentricposition_; delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.geocentricposition_);
} }
if (geocentricposition) { if (geocentricposition) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(geocentricposition); ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(geocentricposition));
if (message_arena != submessage_arena) { if (message_arena != submessage_arena) {
geocentricposition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( geocentricposition = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, geocentricposition, submessage_arena); message_arena, geocentricposition, submessage_arena);
@@ -1044,10 +588,6 @@ inline void Track::set_allocated_timestamp(::PROTOBUF_NAMESPACE_ID::Timestamp* t
#ifdef __GNUC__ #ifdef __GNUC__
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
#endif // __GNUC__ #endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)

View File

@@ -4,6 +4,10 @@ syntax = "proto3";
package messages.track; package messages.track;
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
import "GeocentricPosition.proto";
import "Identifier.proto";
// [END declaration] // [END declaration]
@@ -17,17 +21,9 @@ message Track {
// uint32 entity = 3; // uint32 entity = 3;
// } // }
message Identifier{
int64 number = 1;
uint32 external = 2;
}
Identifier EntityIdentifier = 1; Identifier EntityIdentifier = 1;
message EntityGeocentricPosition {
double X = 1;
double Y = 2;
double Z = 3;
}
EntityGeocentricPosition GeocentricPosition = 2; EntityGeocentricPosition GeocentricPosition = 2;
double Speed = 3; double Speed = 3;

View File

@@ -30,7 +30,7 @@ namespace SimCore {
} }
} }
messages::track::Track_Identifier ID = trackMessage.entityidentifier(); messages::track::Identifier ID = trackMessage.entityidentifier();
ID_ = SimCore::Identifier(trackMessage.mutable_entityidentifier()->number(),(SimCore::ObjectSource)trackMessage.mutable_entityidentifier()->external()); ID_ = SimCore::Identifier(trackMessage.mutable_entityidentifier()->number(),(SimCore::ObjectSource)trackMessage.mutable_entityidentifier()->external());
external_ = trackMessage.mutable_entityidentifier()->external(); external_ = trackMessage.mutable_entityidentifier()->external();
@@ -39,7 +39,7 @@ namespace SimCore {
speed_ = trackMessage.speed(); speed_ = trackMessage.speed();
course_ = trackMessage.course(); course_ = trackMessage.course();
messages::track::Track_EntityGeocentricPosition pos_temp = trackMessage.geocentricposition(); messages::track::EntityGeocentricPosition pos_temp = trackMessage.geocentricposition();
position_.setGeocentricPos(pos_temp.x(), pos_temp.y(),pos_temp.z()); position_.setGeocentricPos(pos_temp.x(), pos_temp.y(),pos_temp.z());