ADD: added name of the SimObject to SimTrack
This commit is contained in:
@@ -27,6 +27,7 @@ PROTOBUF_CONSTEXPR SimTrack::SimTrack(
|
|||||||
/*decltype(_impl_._has_bits_)*/{}
|
/*decltype(_impl_._has_bits_)*/{}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
, /*decltype(_impl_.contactemissions_)*/{}
|
, /*decltype(_impl_.contactemissions_)*/{}
|
||||||
|
, /*decltype(_impl_.conatactname_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.entityidentifier_)*/nullptr
|
, /*decltype(_impl_.entityidentifier_)*/nullptr
|
||||||
, /*decltype(_impl_.geocentricposition_)*/nullptr
|
, /*decltype(_impl_.geocentricposition_)*/nullptr
|
||||||
, /*decltype(_impl_.contactspeed_)*/0
|
, /*decltype(_impl_.contactspeed_)*/0
|
||||||
@@ -81,6 +82,7 @@ const uint32_t TableStruct_SimTrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE
|
|||||||
~0u, // no _weak_field_map_
|
~0u, // no _weak_field_map_
|
||||||
~0u, // no _inlined_string_donated_
|
~0u, // no _inlined_string_donated_
|
||||||
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.entityidentifier_),
|
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.entityidentifier_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.conatactname_),
|
||||||
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactsourcetype_),
|
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactsourcetype_),
|
||||||
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.geocentricposition_),
|
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.geocentricposition_),
|
||||||
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactspeed_),
|
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactspeed_),
|
||||||
@@ -91,12 +93,13 @@ const uint32_t TableStruct_SimTrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE
|
|||||||
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactemissions_),
|
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::SimTrack, _impl_.contactemissions_),
|
||||||
~0u,
|
~0u,
|
||||||
~0u,
|
~0u,
|
||||||
|
2,
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
3,
|
|
||||||
4,
|
4,
|
||||||
2,
|
|
||||||
5,
|
5,
|
||||||
|
3,
|
||||||
|
6,
|
||||||
~0u,
|
~0u,
|
||||||
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_._has_bits_),
|
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _impl_._has_bits_),
|
||||||
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::messages::SimTrack::Emission, _internal_metadata_),
|
||||||
@@ -126,8 +129,8 @@ const uint32_t TableStruct_SimTrack_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE
|
|||||||
5,
|
5,
|
||||||
};
|
};
|
||||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
{ 0, 15, -1, sizeof(::messages::SimTrack::SimTrack)},
|
{ 0, 16, -1, sizeof(::messages::SimTrack::SimTrack)},
|
||||||
{ 24, 40, -1, sizeof(::messages::SimTrack::Emission)},
|
{ 26, 42, -1, sizeof(::messages::SimTrack::Emission)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -139,29 +142,30 @@ const char descriptor_table_protodef_SimTrack_2eproto[] PROTOBUF_SECTION_VARIABL
|
|||||||
"\n\016SimTrack.proto\022\021messages.SimTrack\032\037goo"
|
"\n\016SimTrack.proto\022\021messages.SimTrack\032\037goo"
|
||||||
"gle/protobuf/timestamp.proto\032\036google/pro"
|
"gle/protobuf/timestamp.proto\032\036google/pro"
|
||||||
"tobuf/duration.proto\032\020Identifier.proto\032\030"
|
"tobuf/duration.proto\032\020Identifier.proto\032\030"
|
||||||
"GeocentricPosition.proto\"\330\003\n\010SimTrack\0224\n"
|
"GeocentricPosition.proto\"\211\004\n\010SimTrack\0224\n"
|
||||||
"\020EntityIdentifier\030\001 \001(\0132\032.messages.track"
|
"\020EntityIdentifier\030\001 \001(\0132\032.messages.track"
|
||||||
".Identifier\022\031\n\021ContactSourceType\030\002 \001(\r\022I"
|
".Identifier\022\024\n\014ConatactName\030\002 \001(\t\022\036\n\021Con"
|
||||||
"\n\022GeocentricPosition\030\003 \001(\0132(.messages.tr"
|
"tactSourceType\030\003 \001(\rH\000\210\001\001\022I\n\022GeocentricP"
|
||||||
"ack.EntityGeocentricPositionH\000\210\001\001\022\031\n\014Con"
|
"osition\030\004 \001(\0132(.messages.track.EntityGeo"
|
||||||
"tactSpeed\030\004 \001(\001H\001\210\001\001\022\032\n\rContactCourse\030\005 "
|
"centricPositionH\001\210\001\001\022\031\n\014ContactSpeed\030\005 \001"
|
||||||
"\001(\001H\002\210\001\001\022\030\n\013ConactPitch\030\006 \001(\001H\003\210\001\001\022\037\n\022Co"
|
"(\001H\002\210\001\001\022\032\n\rContactCourse\030\006 \001(\001H\003\210\001\001\022\030\n\013C"
|
||||||
"ntactEnvironemnt\030\007 \001(\rH\004\210\001\001\022\027\n\nContactRC"
|
"onactPitch\030\007 \001(\001H\004\210\001\001\022\037\n\022ContactEnvirone"
|
||||||
"S\030\010 \001(\001H\005\210\001\001\0225\n\020ContactEmissions\030\t \003(\0132\033"
|
"mnt\030\010 \001(\rH\005\210\001\001\022\027\n\nContactRCS\030\t \001(\001H\006\210\001\001\022"
|
||||||
".messages.SimTrack.EmissionB\025\n\023_Geocentr"
|
"5\n\020ContactEmissions\030\n \003(\0132\033.messages.Sim"
|
||||||
"icPositionB\017\n\r_ContactSpeedB\020\n\016_ContactC"
|
"Track.EmissionB\024\n\022_ContactSourceTypeB\025\n\023"
|
||||||
"ourseB\016\n\014_ConactPitchB\025\n\023_ContactEnviron"
|
"_GeocentricPositionB\017\n\r_ContactSpeedB\020\n\016"
|
||||||
"emntB\r\n\013_ContactRCS\"\366\002\n\010Emission\022.\n\nIden"
|
"_ContactCourseB\016\n\014_ConactPitchB\025\n\023_Conta"
|
||||||
"tifier\030\001 \001(\0132\032.messages.track.Identifier"
|
"ctEnvironemntB\r\n\013_ContactRCS\"\366\002\n\010Emissio"
|
||||||
"\022\014\n\004name\030\002 \001(\t\022\021\n\tfrequency\030\003 \001(\001\022\r\n\005Ran"
|
"n\022.\n\nIdentifier\030\001 \001(\0132\032.messages.track.I"
|
||||||
"ge\030\004 \001(\001\022\026\n\tBandwidth\030\005 \001(\rH\000\210\001\001\022\027\n\npuls"
|
"dentifier\022\014\n\004name\030\002 \001(\t\022\021\n\tfrequency\030\003 \001"
|
||||||
"eWidth\030\006 \001(\rH\001\210\001\001\022\034\n\017pulseRepitition\030\007 \001"
|
"(\001\022\r\n\005Range\030\004 \001(\001\022\026\n\tBandwidth\030\005 \001(\rH\000\210\001"
|
||||||
"(\rH\002\210\001\001\022\032\n\rradiatedPower\030\010 \001(\rH\003\210\001\001\022\032\n\rn"
|
"\001\022\027\n\npulseWidth\030\006 \001(\rH\001\210\001\001\022\034\n\017pulseRepit"
|
||||||
"umberOfBeams\030\t \001(\rH\004\210\001\001\022\033\n\016searchInterva"
|
"ition\030\007 \001(\rH\002\210\001\001\022\032\n\rradiatedPower\030\010 \001(\rH"
|
||||||
"l\030\n \001(\rH\005\210\001\001B\014\n\n_BandwidthB\r\n\013_pulseWidt"
|
"\003\210\001\001\022\032\n\rnumberOfBeams\030\t \001(\rH\004\210\001\001\022\033\n\016sear"
|
||||||
"hB\022\n\020_pulseRepititionB\020\n\016_radiatedPowerB"
|
"chInterval\030\n \001(\rH\005\210\001\001B\014\n\n_BandwidthB\r\n\013_"
|
||||||
"\020\n\016_numberOfBeamsB\021\n\017_searchIntervalb\006pr"
|
"pulseWidthB\022\n\020_pulseRepititionB\020\n\016_radia"
|
||||||
"oto3"
|
"tedPowerB\020\n\016_numberOfBeamsB\021\n\017_searchInt"
|
||||||
|
"ervalb\006proto3"
|
||||||
;
|
;
|
||||||
static const ::_pbi::DescriptorTable* const descriptor_table_SimTrack_2eproto_deps[4] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_SimTrack_2eproto_deps[4] = {
|
||||||
&::descriptor_table_GeocentricPosition_2eproto,
|
&::descriptor_table_GeocentricPosition_2eproto,
|
||||||
@@ -171,7 +175,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_SimTrack_2eproto_de
|
|||||||
};
|
};
|
||||||
static ::_pbi::once_flag descriptor_table_SimTrack_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_SimTrack_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_SimTrack_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_SimTrack_2eproto = {
|
||||||
false, false, 1004, descriptor_table_protodef_SimTrack_2eproto,
|
false, false, 1053, descriptor_table_protodef_SimTrack_2eproto,
|
||||||
"SimTrack.proto",
|
"SimTrack.proto",
|
||||||
&descriptor_table_SimTrack_2eproto_once, descriptor_table_SimTrack_2eproto_deps, 4, 2,
|
&descriptor_table_SimTrack_2eproto_once, descriptor_table_SimTrack_2eproto_deps, 4, 2,
|
||||||
schemas, file_default_instances, TableStruct_SimTrack_2eproto::offsets,
|
schemas, file_default_instances, TableStruct_SimTrack_2eproto::offsets,
|
||||||
@@ -193,6 +197,9 @@ class SimTrack::_Internal {
|
|||||||
public:
|
public:
|
||||||
using HasBits = decltype(std::declval<SimTrack>()._impl_._has_bits_);
|
using HasBits = decltype(std::declval<SimTrack>()._impl_._has_bits_);
|
||||||
static const ::messages::track::Identifier& entityidentifier(const SimTrack* msg);
|
static const ::messages::track::Identifier& entityidentifier(const SimTrack* msg);
|
||||||
|
static void set_has_contactsourcetype(HasBits* has_bits) {
|
||||||
|
(*has_bits)[0] |= 4u;
|
||||||
|
}
|
||||||
static const ::messages::track::EntityGeocentricPosition& geocentricposition(const SimTrack* msg);
|
static const ::messages::track::EntityGeocentricPosition& geocentricposition(const SimTrack* msg);
|
||||||
static void set_has_geocentricposition(HasBits* has_bits) {
|
static void set_has_geocentricposition(HasBits* has_bits) {
|
||||||
(*has_bits)[0] |= 1u;
|
(*has_bits)[0] |= 1u;
|
||||||
@@ -201,16 +208,16 @@ class SimTrack::_Internal {
|
|||||||
(*has_bits)[0] |= 2u;
|
(*has_bits)[0] |= 2u;
|
||||||
}
|
}
|
||||||
static void set_has_contactcourse(HasBits* has_bits) {
|
static void set_has_contactcourse(HasBits* has_bits) {
|
||||||
(*has_bits)[0] |= 8u;
|
|
||||||
}
|
|
||||||
static void set_has_conactpitch(HasBits* has_bits) {
|
|
||||||
(*has_bits)[0] |= 16u;
|
(*has_bits)[0] |= 16u;
|
||||||
}
|
}
|
||||||
|
static void set_has_conactpitch(HasBits* has_bits) {
|
||||||
|
(*has_bits)[0] |= 32u;
|
||||||
|
}
|
||||||
static void set_has_contactenvironemnt(HasBits* has_bits) {
|
static void set_has_contactenvironemnt(HasBits* has_bits) {
|
||||||
(*has_bits)[0] |= 4u;
|
(*has_bits)[0] |= 8u;
|
||||||
}
|
}
|
||||||
static void set_has_contactrcs(HasBits* has_bits) {
|
static void set_has_contactrcs(HasBits* has_bits) {
|
||||||
(*has_bits)[0] |= 32u;
|
(*has_bits)[0] |= 64u;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -245,6 +252,7 @@ SimTrack::SimTrack(const SimTrack& from)
|
|||||||
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
, decltype(_impl_.contactemissions_){from._impl_.contactemissions_}
|
, decltype(_impl_.contactemissions_){from._impl_.contactemissions_}
|
||||||
|
, decltype(_impl_.conatactname_){}
|
||||||
, decltype(_impl_.entityidentifier_){nullptr}
|
, decltype(_impl_.entityidentifier_){nullptr}
|
||||||
, decltype(_impl_.geocentricposition_){nullptr}
|
, decltype(_impl_.geocentricposition_){nullptr}
|
||||||
, decltype(_impl_.contactspeed_){}
|
, decltype(_impl_.contactspeed_){}
|
||||||
@@ -255,6 +263,14 @@ SimTrack::SimTrack(const SimTrack& from)
|
|||||||
, decltype(_impl_.contactrcs_){}};
|
, decltype(_impl_.contactrcs_){}};
|
||||||
|
|
||||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
_impl_.conatactname_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.conatactname_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (!from._internal_conatactname().empty()) {
|
||||||
|
_this->_impl_.conatactname_.Set(from._internal_conatactname(),
|
||||||
|
_this->GetArenaForAllocation());
|
||||||
|
}
|
||||||
if (from._internal_has_entityidentifier()) {
|
if (from._internal_has_entityidentifier()) {
|
||||||
_this->_impl_.entityidentifier_ = new ::messages::track::Identifier(*from._impl_.entityidentifier_);
|
_this->_impl_.entityidentifier_ = new ::messages::track::Identifier(*from._impl_.entityidentifier_);
|
||||||
}
|
}
|
||||||
@@ -275,6 +291,7 @@ inline void SimTrack::SharedCtor(
|
|||||||
decltype(_impl_._has_bits_){}
|
decltype(_impl_._has_bits_){}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
, decltype(_impl_.contactemissions_){arena}
|
, decltype(_impl_.contactemissions_){arena}
|
||||||
|
, decltype(_impl_.conatactname_){}
|
||||||
, decltype(_impl_.entityidentifier_){nullptr}
|
, decltype(_impl_.entityidentifier_){nullptr}
|
||||||
, decltype(_impl_.geocentricposition_){nullptr}
|
, decltype(_impl_.geocentricposition_){nullptr}
|
||||||
, decltype(_impl_.contactspeed_){0}
|
, decltype(_impl_.contactspeed_){0}
|
||||||
@@ -284,6 +301,10 @@ inline void SimTrack::SharedCtor(
|
|||||||
, decltype(_impl_.conactpitch_){0}
|
, decltype(_impl_.conactpitch_){0}
|
||||||
, decltype(_impl_.contactrcs_){0}
|
, decltype(_impl_.contactrcs_){0}
|
||||||
};
|
};
|
||||||
|
_impl_.conatactname_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.conatactname_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
}
|
}
|
||||||
|
|
||||||
SimTrack::~SimTrack() {
|
SimTrack::~SimTrack() {
|
||||||
@@ -298,6 +319,7 @@ SimTrack::~SimTrack() {
|
|||||||
inline void SimTrack::SharedDtor() {
|
inline void SimTrack::SharedDtor() {
|
||||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
_impl_.contactemissions_.~RepeatedPtrField();
|
_impl_.contactemissions_.~RepeatedPtrField();
|
||||||
|
_impl_.conatactname_.Destroy();
|
||||||
if (this != internal_default_instance()) delete _impl_.entityidentifier_;
|
if (this != internal_default_instance()) delete _impl_.entityidentifier_;
|
||||||
if (this != internal_default_instance()) delete _impl_.geocentricposition_;
|
if (this != internal_default_instance()) delete _impl_.geocentricposition_;
|
||||||
}
|
}
|
||||||
@@ -313,6 +335,7 @@ void SimTrack::Clear() {
|
|||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
_impl_.contactemissions_.Clear();
|
_impl_.contactemissions_.Clear();
|
||||||
|
_impl_.conatactname_.ClearToEmpty();
|
||||||
if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
|
if (GetArenaForAllocation() == nullptr && _impl_.entityidentifier_ != nullptr) {
|
||||||
delete _impl_.entityidentifier_;
|
delete _impl_.entityidentifier_;
|
||||||
}
|
}
|
||||||
@@ -322,12 +345,10 @@ void SimTrack::Clear() {
|
|||||||
GOOGLE_DCHECK(_impl_.geocentricposition_ != nullptr);
|
GOOGLE_DCHECK(_impl_.geocentricposition_ != nullptr);
|
||||||
_impl_.geocentricposition_->Clear();
|
_impl_.geocentricposition_->Clear();
|
||||||
}
|
}
|
||||||
_impl_.contactspeed_ = 0;
|
if (cached_has_bits & 0x0000007eu) {
|
||||||
_impl_.contactsourcetype_ = 0u;
|
::memset(&_impl_.contactspeed_, 0, static_cast<size_t>(
|
||||||
if (cached_has_bits & 0x0000003cu) {
|
|
||||||
::memset(&_impl_.contactenvironemnt_, 0, static_cast<size_t>(
|
|
||||||
reinterpret_cast<char*>(&_impl_.contactrcs_) -
|
reinterpret_cast<char*>(&_impl_.contactrcs_) -
|
||||||
reinterpret_cast<char*>(&_impl_.contactenvironemnt_)) + sizeof(_impl_.contactrcs_));
|
reinterpret_cast<char*>(&_impl_.contactspeed_)) + sizeof(_impl_.contactrcs_));
|
||||||
}
|
}
|
||||||
_impl_._has_bits_.Clear();
|
_impl_._has_bits_.Clear();
|
||||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
@@ -348,77 +369,88 @@ const char* SimTrack::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// uint32 ContactSourceType = 2;
|
// string ConatactName = 2;
|
||||||
case 2:
|
case 2:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||||
|
auto str = _internal_mutable_conatactname();
|
||||||
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
|
CHK_(ptr);
|
||||||
|
CHK_(::_pbi::VerifyUTF8(str, "messages.SimTrack.SimTrack.ConatactName"));
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
// optional uint32 ContactSourceType = 3;
|
||||||
|
case 3:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||||
|
_Internal::set_has_contactsourcetype(&has_bits);
|
||||||
_impl_.contactsourcetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
_impl_.contactsourcetype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
|
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4;
|
||||||
case 3:
|
case 4:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
||||||
ptr = ctx->ParseMessage(_internal_mutable_geocentricposition(), ptr);
|
ptr = ctx->ParseMessage(_internal_mutable_geocentricposition(), ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// optional double ContactSpeed = 4;
|
// optional double ContactSpeed = 5;
|
||||||
case 4:
|
case 5:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 33)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41)) {
|
||||||
_Internal::set_has_contactspeed(&has_bits);
|
_Internal::set_has_contactspeed(&has_bits);
|
||||||
_impl_.contactspeed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
|
_impl_.contactspeed_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
|
||||||
ptr += sizeof(double);
|
ptr += sizeof(double);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// optional double ContactCourse = 5;
|
// optional double ContactCourse = 6;
|
||||||
case 5:
|
case 6:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 41)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49)) {
|
||||||
_Internal::set_has_contactcourse(&has_bits);
|
_Internal::set_has_contactcourse(&has_bits);
|
||||||
_impl_.contactcourse_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
|
_impl_.contactcourse_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
|
||||||
ptr += sizeof(double);
|
ptr += sizeof(double);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// optional double ConactPitch = 6;
|
// optional double ConactPitch = 7;
|
||||||
case 6:
|
case 7:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 49)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 57)) {
|
||||||
_Internal::set_has_conactpitch(&has_bits);
|
_Internal::set_has_conactpitch(&has_bits);
|
||||||
_impl_.conactpitch_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
|
_impl_.conactpitch_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
|
||||||
ptr += sizeof(double);
|
ptr += sizeof(double);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// optional uint32 ContactEnvironemnt = 7;
|
// optional uint32 ContactEnvironemnt = 8;
|
||||||
case 7:
|
case 8:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
|
||||||
_Internal::set_has_contactenvironemnt(&has_bits);
|
_Internal::set_has_contactenvironemnt(&has_bits);
|
||||||
_impl_.contactenvironemnt_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
_impl_.contactenvironemnt_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// optional double ContactRCS = 8;
|
// optional double ContactRCS = 9;
|
||||||
case 8:
|
case 9:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 65)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 73)) {
|
||||||
_Internal::set_has_contactrcs(&has_bits);
|
_Internal::set_has_contactrcs(&has_bits);
|
||||||
_impl_.contactrcs_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
|
_impl_.contactrcs_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
|
||||||
ptr += sizeof(double);
|
ptr += sizeof(double);
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// repeated .messages.SimTrack.Emission ContactEmissions = 9;
|
// repeated .messages.SimTrack.Emission ContactEmissions = 10;
|
||||||
case 9:
|
case 10:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
|
||||||
ptr -= 1;
|
ptr -= 1;
|
||||||
do {
|
do {
|
||||||
ptr += 1;
|
ptr += 1;
|
||||||
ptr = ctx->ParseMessage(_internal_add_contactemissions(), ptr);
|
ptr = ctx->ParseMessage(_internal_add_contactemissions(), ptr);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
if (!ctx->DataAvailable(ptr)) break;
|
if (!ctx->DataAvailable(ptr)) break;
|
||||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr));
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr));
|
||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
@@ -459,55 +491,65 @@ uint8_t* SimTrack::_InternalSerialize(
|
|||||||
_Internal::entityidentifier(this).GetCachedSize(), target, stream);
|
_Internal::entityidentifier(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint32 ContactSourceType = 2;
|
// string ConatactName = 2;
|
||||||
if (this->_internal_contactsourcetype() != 0) {
|
if (!this->_internal_conatactname().empty()) {
|
||||||
target = stream->EnsureSpace(target);
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_contactsourcetype(), target);
|
this->_internal_conatactname().data(), static_cast<int>(this->_internal_conatactname().length()),
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||||
|
"messages.SimTrack.SimTrack.ConatactName");
|
||||||
|
target = stream->WriteStringMaybeAliased(
|
||||||
|
2, this->_internal_conatactname(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
|
// optional uint32 ContactSourceType = 3;
|
||||||
|
if (_internal_has_contactsourcetype()) {
|
||||||
|
target = stream->EnsureSpace(target);
|
||||||
|
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(3, this->_internal_contactsourcetype(), target);
|
||||||
|
}
|
||||||
|
|
||||||
|
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4;
|
||||||
if (_internal_has_geocentricposition()) {
|
if (_internal_has_geocentricposition()) {
|
||||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
InternalWriteMessage(3, _Internal::geocentricposition(this),
|
InternalWriteMessage(4, _Internal::geocentricposition(this),
|
||||||
_Internal::geocentricposition(this).GetCachedSize(), target, stream);
|
_Internal::geocentricposition(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactSpeed = 4;
|
// optional double ContactSpeed = 5;
|
||||||
if (_internal_has_contactspeed()) {
|
if (_internal_has_contactspeed()) {
|
||||||
target = stream->EnsureSpace(target);
|
target = stream->EnsureSpace(target);
|
||||||
target = ::_pbi::WireFormatLite::WriteDoubleToArray(4, this->_internal_contactspeed(), target);
|
target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_contactspeed(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactCourse = 5;
|
// optional double ContactCourse = 6;
|
||||||
if (_internal_has_contactcourse()) {
|
if (_internal_has_contactcourse()) {
|
||||||
target = stream->EnsureSpace(target);
|
target = stream->EnsureSpace(target);
|
||||||
target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_contactcourse(), target);
|
target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_contactcourse(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ConactPitch = 6;
|
// optional double ConactPitch = 7;
|
||||||
if (_internal_has_conactpitch()) {
|
if (_internal_has_conactpitch()) {
|
||||||
target = stream->EnsureSpace(target);
|
target = stream->EnsureSpace(target);
|
||||||
target = ::_pbi::WireFormatLite::WriteDoubleToArray(6, this->_internal_conactpitch(), target);
|
target = ::_pbi::WireFormatLite::WriteDoubleToArray(7, this->_internal_conactpitch(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional uint32 ContactEnvironemnt = 7;
|
// optional uint32 ContactEnvironemnt = 8;
|
||||||
if (_internal_has_contactenvironemnt()) {
|
if (_internal_has_contactenvironemnt()) {
|
||||||
target = stream->EnsureSpace(target);
|
target = stream->EnsureSpace(target);
|
||||||
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(7, this->_internal_contactenvironemnt(), target);
|
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_contactenvironemnt(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactRCS = 8;
|
// optional double ContactRCS = 9;
|
||||||
if (_internal_has_contactrcs()) {
|
if (_internal_has_contactrcs()) {
|
||||||
target = stream->EnsureSpace(target);
|
target = stream->EnsureSpace(target);
|
||||||
target = ::_pbi::WireFormatLite::WriteDoubleToArray(8, this->_internal_contactrcs(), target);
|
target = ::_pbi::WireFormatLite::WriteDoubleToArray(9, this->_internal_contactrcs(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// repeated .messages.SimTrack.Emission ContactEmissions = 9;
|
// repeated .messages.SimTrack.Emission ContactEmissions = 10;
|
||||||
for (unsigned i = 0,
|
for (unsigned i = 0,
|
||||||
n = static_cast<unsigned>(this->_internal_contactemissions_size()); i < n; i++) {
|
n = static_cast<unsigned>(this->_internal_contactemissions_size()); i < n; i++) {
|
||||||
const auto& repfield = this->_internal_contactemissions(i);
|
const auto& repfield = this->_internal_contactemissions(i);
|
||||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream);
|
InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
@@ -526,13 +568,20 @@ size_t SimTrack::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;
|
||||||
|
|
||||||
// repeated .messages.SimTrack.Emission ContactEmissions = 9;
|
// repeated .messages.SimTrack.Emission ContactEmissions = 10;
|
||||||
total_size += 1UL * this->_internal_contactemissions_size();
|
total_size += 1UL * this->_internal_contactemissions_size();
|
||||||
for (const auto& msg : this->_impl_.contactemissions_) {
|
for (const auto& msg : this->_impl_.contactemissions_) {
|
||||||
total_size +=
|
total_size +=
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// string ConatactName = 2;
|
||||||
|
if (!this->_internal_conatactname().empty()) {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||||
|
this->_internal_conatactname());
|
||||||
|
}
|
||||||
|
|
||||||
// .messages.track.Identifier EntityIdentifier = 1;
|
// .messages.track.Identifier EntityIdentifier = 1;
|
||||||
if (this->_internal_has_entityidentifier()) {
|
if (this->_internal_has_entityidentifier()) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
@@ -541,46 +590,44 @@ size_t SimTrack::ByteSizeLong() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cached_has_bits = _impl_._has_bits_[0];
|
cached_has_bits = _impl_._has_bits_[0];
|
||||||
if (cached_has_bits & 0x00000003u) {
|
if (cached_has_bits & 0x0000007fu) {
|
||||||
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
|
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4;
|
||||||
if (cached_has_bits & 0x00000001u) {
|
if (cached_has_bits & 0x00000001u) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
*_impl_.geocentricposition_);
|
*_impl_.geocentricposition_);
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactSpeed = 4;
|
// optional double ContactSpeed = 5;
|
||||||
if (cached_has_bits & 0x00000002u) {
|
if (cached_has_bits & 0x00000002u) {
|
||||||
total_size += 1 + 8;
|
total_size += 1 + 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
// optional uint32 ContactSourceType = 3;
|
||||||
// uint32 ContactSourceType = 2;
|
if (cached_has_bits & 0x00000004u) {
|
||||||
if (this->_internal_contactsourcetype() != 0) {
|
|
||||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactsourcetype());
|
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactsourcetype());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cached_has_bits & 0x0000003cu) {
|
// optional uint32 ContactEnvironemnt = 8;
|
||||||
// optional uint32 ContactEnvironemnt = 7;
|
if (cached_has_bits & 0x00000008u) {
|
||||||
if (cached_has_bits & 0x00000004u) {
|
|
||||||
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactenvironemnt());
|
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_contactenvironemnt());
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactCourse = 5;
|
// optional double ContactCourse = 6;
|
||||||
if (cached_has_bits & 0x00000008u) {
|
|
||||||
total_size += 1 + 8;
|
|
||||||
}
|
|
||||||
|
|
||||||
// optional double ConactPitch = 6;
|
|
||||||
if (cached_has_bits & 0x00000010u) {
|
if (cached_has_bits & 0x00000010u) {
|
||||||
total_size += 1 + 8;
|
total_size += 1 + 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactRCS = 8;
|
// optional double ConactPitch = 7;
|
||||||
if (cached_has_bits & 0x00000020u) {
|
if (cached_has_bits & 0x00000020u) {
|
||||||
total_size += 1 + 8;
|
total_size += 1 + 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// optional double ContactRCS = 9;
|
||||||
|
if (cached_has_bits & 0x00000040u) {
|
||||||
|
total_size += 1 + 8;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
}
|
}
|
||||||
@@ -601,12 +648,15 @@ void SimTrack::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
|
|||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
_this->_impl_.contactemissions_.MergeFrom(from._impl_.contactemissions_);
|
_this->_impl_.contactemissions_.MergeFrom(from._impl_.contactemissions_);
|
||||||
|
if (!from._internal_conatactname().empty()) {
|
||||||
|
_this->_internal_set_conatactname(from._internal_conatactname());
|
||||||
|
}
|
||||||
if (from._internal_has_entityidentifier()) {
|
if (from._internal_has_entityidentifier()) {
|
||||||
_this->_internal_mutable_entityidentifier()->::messages::track::Identifier::MergeFrom(
|
_this->_internal_mutable_entityidentifier()->::messages::track::Identifier::MergeFrom(
|
||||||
from._internal_entityidentifier());
|
from._internal_entityidentifier());
|
||||||
}
|
}
|
||||||
cached_has_bits = from._impl_._has_bits_[0];
|
cached_has_bits = from._impl_._has_bits_[0];
|
||||||
if (cached_has_bits & 0x00000003u) {
|
if (cached_has_bits & 0x0000007fu) {
|
||||||
if (cached_has_bits & 0x00000001u) {
|
if (cached_has_bits & 0x00000001u) {
|
||||||
_this->_internal_mutable_geocentricposition()->::messages::track::EntityGeocentricPosition::MergeFrom(
|
_this->_internal_mutable_geocentricposition()->::messages::track::EntityGeocentricPosition::MergeFrom(
|
||||||
from._internal_geocentricposition());
|
from._internal_geocentricposition());
|
||||||
@@ -614,22 +664,19 @@ void SimTrack::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
|
|||||||
if (cached_has_bits & 0x00000002u) {
|
if (cached_has_bits & 0x00000002u) {
|
||||||
_this->_impl_.contactspeed_ = from._impl_.contactspeed_;
|
_this->_impl_.contactspeed_ = from._impl_.contactspeed_;
|
||||||
}
|
}
|
||||||
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
||||||
}
|
|
||||||
if (from._internal_contactsourcetype() != 0) {
|
|
||||||
_this->_internal_set_contactsourcetype(from._internal_contactsourcetype());
|
|
||||||
}
|
|
||||||
if (cached_has_bits & 0x0000003cu) {
|
|
||||||
if (cached_has_bits & 0x00000004u) {
|
if (cached_has_bits & 0x00000004u) {
|
||||||
_this->_impl_.contactenvironemnt_ = from._impl_.contactenvironemnt_;
|
_this->_impl_.contactsourcetype_ = from._impl_.contactsourcetype_;
|
||||||
}
|
}
|
||||||
if (cached_has_bits & 0x00000008u) {
|
if (cached_has_bits & 0x00000008u) {
|
||||||
_this->_impl_.contactcourse_ = from._impl_.contactcourse_;
|
_this->_impl_.contactenvironemnt_ = from._impl_.contactenvironemnt_;
|
||||||
}
|
}
|
||||||
if (cached_has_bits & 0x00000010u) {
|
if (cached_has_bits & 0x00000010u) {
|
||||||
_this->_impl_.conactpitch_ = from._impl_.conactpitch_;
|
_this->_impl_.contactcourse_ = from._impl_.contactcourse_;
|
||||||
}
|
}
|
||||||
if (cached_has_bits & 0x00000020u) {
|
if (cached_has_bits & 0x00000020u) {
|
||||||
|
_this->_impl_.conactpitch_ = from._impl_.conactpitch_;
|
||||||
|
}
|
||||||
|
if (cached_has_bits & 0x00000040u) {
|
||||||
_this->_impl_.contactrcs_ = from._impl_.contactrcs_;
|
_this->_impl_.contactrcs_ = from._impl_.contactrcs_;
|
||||||
}
|
}
|
||||||
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
||||||
@@ -650,9 +697,15 @@ bool SimTrack::IsInitialized() const {
|
|||||||
|
|
||||||
void SimTrack::InternalSwap(SimTrack* other) {
|
void SimTrack::InternalSwap(SimTrack* other) {
|
||||||
using std::swap;
|
using std::swap;
|
||||||
|
auto* lhs_arena = GetArenaForAllocation();
|
||||||
|
auto* rhs_arena = other->GetArenaForAllocation();
|
||||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
||||||
_impl_.contactemissions_.InternalSwap(&other->_impl_.contactemissions_);
|
_impl_.contactemissions_.InternalSwap(&other->_impl_.contactemissions_);
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
|
&_impl_.conatactname_, lhs_arena,
|
||||||
|
&other->_impl_.conatactname_, rhs_arena
|
||||||
|
);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||||
PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactrcs_)
|
PROTOBUF_FIELD_OFFSET(SimTrack, _impl_.contactrcs_)
|
||||||
+ sizeof(SimTrack::_impl_.contactrcs_)
|
+ sizeof(SimTrack::_impl_.contactrcs_)
|
||||||
|
|||||||
@@ -188,17 +188,18 @@ class SimTrack final :
|
|||||||
// accessors -------------------------------------------------------
|
// accessors -------------------------------------------------------
|
||||||
|
|
||||||
enum : int {
|
enum : int {
|
||||||
kContactEmissionsFieldNumber = 9,
|
kContactEmissionsFieldNumber = 10,
|
||||||
|
kConatactNameFieldNumber = 2,
|
||||||
kEntityIdentifierFieldNumber = 1,
|
kEntityIdentifierFieldNumber = 1,
|
||||||
kGeocentricPositionFieldNumber = 3,
|
kGeocentricPositionFieldNumber = 4,
|
||||||
kContactSpeedFieldNumber = 4,
|
kContactSpeedFieldNumber = 5,
|
||||||
kContactSourceTypeFieldNumber = 2,
|
kContactSourceTypeFieldNumber = 3,
|
||||||
kContactEnvironemntFieldNumber = 7,
|
kContactEnvironemntFieldNumber = 8,
|
||||||
kContactCourseFieldNumber = 5,
|
kContactCourseFieldNumber = 6,
|
||||||
kConactPitchFieldNumber = 6,
|
kConactPitchFieldNumber = 7,
|
||||||
kContactRCSFieldNumber = 8,
|
kContactRCSFieldNumber = 9,
|
||||||
};
|
};
|
||||||
// repeated .messages.SimTrack.Emission ContactEmissions = 9;
|
// repeated .messages.SimTrack.Emission ContactEmissions = 10;
|
||||||
int contactemissions_size() const;
|
int contactemissions_size() const;
|
||||||
private:
|
private:
|
||||||
int _internal_contactemissions_size() const;
|
int _internal_contactemissions_size() const;
|
||||||
@@ -216,6 +217,20 @@ class SimTrack final :
|
|||||||
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission >&
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission >&
|
||||||
contactemissions() const;
|
contactemissions() const;
|
||||||
|
|
||||||
|
// string ConatactName = 2;
|
||||||
|
void clear_conatactname();
|
||||||
|
const std::string& conatactname() const;
|
||||||
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
|
void set_conatactname(ArgT0&& arg0, ArgT... args);
|
||||||
|
std::string* mutable_conatactname();
|
||||||
|
PROTOBUF_NODISCARD std::string* release_conatactname();
|
||||||
|
void set_allocated_conatactname(std::string* conatactname);
|
||||||
|
private:
|
||||||
|
const std::string& _internal_conatactname() const;
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_conatactname(const std::string& value);
|
||||||
|
std::string* _internal_mutable_conatactname();
|
||||||
|
public:
|
||||||
|
|
||||||
// .messages.track.Identifier EntityIdentifier = 1;
|
// .messages.track.Identifier EntityIdentifier = 1;
|
||||||
bool has_entityidentifier() const;
|
bool has_entityidentifier() const;
|
||||||
private:
|
private:
|
||||||
@@ -234,7 +249,7 @@ class SimTrack final :
|
|||||||
::messages::track::Identifier* entityidentifier);
|
::messages::track::Identifier* entityidentifier);
|
||||||
::messages::track::Identifier* unsafe_arena_release_entityidentifier();
|
::messages::track::Identifier* unsafe_arena_release_entityidentifier();
|
||||||
|
|
||||||
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
|
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4;
|
||||||
bool has_geocentricposition() const;
|
bool has_geocentricposition() const;
|
||||||
private:
|
private:
|
||||||
bool _internal_has_geocentricposition() const;
|
bool _internal_has_geocentricposition() const;
|
||||||
@@ -252,7 +267,7 @@ class SimTrack final :
|
|||||||
::messages::track::EntityGeocentricPosition* geocentricposition);
|
::messages::track::EntityGeocentricPosition* geocentricposition);
|
||||||
::messages::track::EntityGeocentricPosition* unsafe_arena_release_geocentricposition();
|
::messages::track::EntityGeocentricPosition* unsafe_arena_release_geocentricposition();
|
||||||
|
|
||||||
// optional double ContactSpeed = 4;
|
// optional double ContactSpeed = 5;
|
||||||
bool has_contactspeed() const;
|
bool has_contactspeed() const;
|
||||||
private:
|
private:
|
||||||
bool _internal_has_contactspeed() const;
|
bool _internal_has_contactspeed() const;
|
||||||
@@ -265,7 +280,11 @@ class SimTrack final :
|
|||||||
void _internal_set_contactspeed(double value);
|
void _internal_set_contactspeed(double value);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// uint32 ContactSourceType = 2;
|
// optional uint32 ContactSourceType = 3;
|
||||||
|
bool has_contactsourcetype() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_contactsourcetype() const;
|
||||||
|
public:
|
||||||
void clear_contactsourcetype();
|
void clear_contactsourcetype();
|
||||||
uint32_t contactsourcetype() const;
|
uint32_t contactsourcetype() const;
|
||||||
void set_contactsourcetype(uint32_t value);
|
void set_contactsourcetype(uint32_t value);
|
||||||
@@ -274,7 +293,7 @@ class SimTrack final :
|
|||||||
void _internal_set_contactsourcetype(uint32_t value);
|
void _internal_set_contactsourcetype(uint32_t value);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// optional uint32 ContactEnvironemnt = 7;
|
// optional uint32 ContactEnvironemnt = 8;
|
||||||
bool has_contactenvironemnt() const;
|
bool has_contactenvironemnt() const;
|
||||||
private:
|
private:
|
||||||
bool _internal_has_contactenvironemnt() const;
|
bool _internal_has_contactenvironemnt() const;
|
||||||
@@ -287,7 +306,7 @@ class SimTrack final :
|
|||||||
void _internal_set_contactenvironemnt(uint32_t value);
|
void _internal_set_contactenvironemnt(uint32_t value);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// optional double ContactCourse = 5;
|
// optional double ContactCourse = 6;
|
||||||
bool has_contactcourse() const;
|
bool has_contactcourse() const;
|
||||||
private:
|
private:
|
||||||
bool _internal_has_contactcourse() const;
|
bool _internal_has_contactcourse() const;
|
||||||
@@ -300,7 +319,7 @@ class SimTrack final :
|
|||||||
void _internal_set_contactcourse(double value);
|
void _internal_set_contactcourse(double value);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// optional double ConactPitch = 6;
|
// optional double ConactPitch = 7;
|
||||||
bool has_conactpitch() const;
|
bool has_conactpitch() const;
|
||||||
private:
|
private:
|
||||||
bool _internal_has_conactpitch() const;
|
bool _internal_has_conactpitch() const;
|
||||||
@@ -313,7 +332,7 @@ class SimTrack final :
|
|||||||
void _internal_set_conactpitch(double value);
|
void _internal_set_conactpitch(double value);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// optional double ContactRCS = 8;
|
// optional double ContactRCS = 9;
|
||||||
bool has_contactrcs() const;
|
bool has_contactrcs() const;
|
||||||
private:
|
private:
|
||||||
bool _internal_has_contactrcs() const;
|
bool _internal_has_contactrcs() const;
|
||||||
@@ -337,6 +356,7 @@ class SimTrack final :
|
|||||||
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
|
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission > contactemissions_;
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::messages::SimTrack::Emission > contactemissions_;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr conatactname_;
|
||||||
::messages::track::Identifier* entityidentifier_;
|
::messages::track::Identifier* entityidentifier_;
|
||||||
::messages::track::EntityGeocentricPosition* geocentricposition_;
|
::messages::track::EntityGeocentricPosition* geocentricposition_;
|
||||||
double contactspeed_;
|
double contactspeed_;
|
||||||
@@ -731,9 +751,67 @@ inline void SimTrack::set_allocated_entityidentifier(::messages::track::Identifi
|
|||||||
// @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.EntityIdentifier)
|
// @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.EntityIdentifier)
|
||||||
}
|
}
|
||||||
|
|
||||||
// uint32 ContactSourceType = 2;
|
// string ConatactName = 2;
|
||||||
|
inline void SimTrack::clear_conatactname() {
|
||||||
|
_impl_.conatactname_.ClearToEmpty();
|
||||||
|
}
|
||||||
|
inline const std::string& SimTrack::conatactname() const {
|
||||||
|
// @@protoc_insertion_point(field_get:messages.SimTrack.SimTrack.ConatactName)
|
||||||
|
return _internal_conatactname();
|
||||||
|
}
|
||||||
|
template <typename ArgT0, typename... ArgT>
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
|
void SimTrack::set_conatactname(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
|
_impl_.conatactname_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
|
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ConatactName)
|
||||||
|
}
|
||||||
|
inline std::string* SimTrack::mutable_conatactname() {
|
||||||
|
std::string* _s = _internal_mutable_conatactname();
|
||||||
|
// @@protoc_insertion_point(field_mutable:messages.SimTrack.SimTrack.ConatactName)
|
||||||
|
return _s;
|
||||||
|
}
|
||||||
|
inline const std::string& SimTrack::_internal_conatactname() const {
|
||||||
|
return _impl_.conatactname_.Get();
|
||||||
|
}
|
||||||
|
inline void SimTrack::_internal_set_conatactname(const std::string& value) {
|
||||||
|
|
||||||
|
_impl_.conatactname_.Set(value, GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* SimTrack::_internal_mutable_conatactname() {
|
||||||
|
|
||||||
|
return _impl_.conatactname_.Mutable(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* SimTrack::release_conatactname() {
|
||||||
|
// @@protoc_insertion_point(field_release:messages.SimTrack.SimTrack.ConatactName)
|
||||||
|
return _impl_.conatactname_.Release();
|
||||||
|
}
|
||||||
|
inline void SimTrack::set_allocated_conatactname(std::string* conatactname) {
|
||||||
|
if (conatactname != nullptr) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
_impl_.conatactname_.SetAllocated(conatactname, GetArenaForAllocation());
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (_impl_.conatactname_.IsDefault()) {
|
||||||
|
_impl_.conatactname_.Set("", GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.ConatactName)
|
||||||
|
}
|
||||||
|
|
||||||
|
// optional uint32 ContactSourceType = 3;
|
||||||
|
inline bool SimTrack::_internal_has_contactsourcetype() const {
|
||||||
|
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
inline bool SimTrack::has_contactsourcetype() const {
|
||||||
|
return _internal_has_contactsourcetype();
|
||||||
|
}
|
||||||
inline void SimTrack::clear_contactsourcetype() {
|
inline void SimTrack::clear_contactsourcetype() {
|
||||||
_impl_.contactsourcetype_ = 0u;
|
_impl_.contactsourcetype_ = 0u;
|
||||||
|
_impl_._has_bits_[0] &= ~0x00000004u;
|
||||||
}
|
}
|
||||||
inline uint32_t SimTrack::_internal_contactsourcetype() const {
|
inline uint32_t SimTrack::_internal_contactsourcetype() const {
|
||||||
return _impl_.contactsourcetype_;
|
return _impl_.contactsourcetype_;
|
||||||
@@ -743,7 +821,7 @@ inline uint32_t SimTrack::contactsourcetype() const {
|
|||||||
return _internal_contactsourcetype();
|
return _internal_contactsourcetype();
|
||||||
}
|
}
|
||||||
inline void SimTrack::_internal_set_contactsourcetype(uint32_t value) {
|
inline void SimTrack::_internal_set_contactsourcetype(uint32_t value) {
|
||||||
|
_impl_._has_bits_[0] |= 0x00000004u;
|
||||||
_impl_.contactsourcetype_ = value;
|
_impl_.contactsourcetype_ = value;
|
||||||
}
|
}
|
||||||
inline void SimTrack::set_contactsourcetype(uint32_t value) {
|
inline void SimTrack::set_contactsourcetype(uint32_t value) {
|
||||||
@@ -751,7 +829,7 @@ inline void SimTrack::set_contactsourcetype(uint32_t value) {
|
|||||||
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSourceType)
|
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSourceType)
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 3;
|
// optional .messages.track.EntityGeocentricPosition GeocentricPosition = 4;
|
||||||
inline bool SimTrack::_internal_has_geocentricposition() const {
|
inline bool SimTrack::_internal_has_geocentricposition() const {
|
||||||
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
|
||||||
PROTOBUF_ASSUME(!value || _impl_.geocentricposition_ != nullptr);
|
PROTOBUF_ASSUME(!value || _impl_.geocentricposition_ != nullptr);
|
||||||
@@ -838,7 +916,7 @@ inline void SimTrack::set_allocated_geocentricposition(::messages::track::Entity
|
|||||||
// @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.GeocentricPosition)
|
// @@protoc_insertion_point(field_set_allocated:messages.SimTrack.SimTrack.GeocentricPosition)
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactSpeed = 4;
|
// optional double ContactSpeed = 5;
|
||||||
inline bool SimTrack::_internal_has_contactspeed() const {
|
inline bool SimTrack::_internal_has_contactspeed() const {
|
||||||
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
|
||||||
return value;
|
return value;
|
||||||
@@ -866,9 +944,9 @@ inline void SimTrack::set_contactspeed(double value) {
|
|||||||
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSpeed)
|
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactSpeed)
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactCourse = 5;
|
// optional double ContactCourse = 6;
|
||||||
inline bool SimTrack::_internal_has_contactcourse() const {
|
inline bool SimTrack::_internal_has_contactcourse() const {
|
||||||
bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
|
bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
inline bool SimTrack::has_contactcourse() const {
|
inline bool SimTrack::has_contactcourse() const {
|
||||||
@@ -876,7 +954,7 @@ inline bool SimTrack::has_contactcourse() const {
|
|||||||
}
|
}
|
||||||
inline void SimTrack::clear_contactcourse() {
|
inline void SimTrack::clear_contactcourse() {
|
||||||
_impl_.contactcourse_ = 0;
|
_impl_.contactcourse_ = 0;
|
||||||
_impl_._has_bits_[0] &= ~0x00000008u;
|
_impl_._has_bits_[0] &= ~0x00000010u;
|
||||||
}
|
}
|
||||||
inline double SimTrack::_internal_contactcourse() const {
|
inline double SimTrack::_internal_contactcourse() const {
|
||||||
return _impl_.contactcourse_;
|
return _impl_.contactcourse_;
|
||||||
@@ -886,7 +964,7 @@ inline double SimTrack::contactcourse() const {
|
|||||||
return _internal_contactcourse();
|
return _internal_contactcourse();
|
||||||
}
|
}
|
||||||
inline void SimTrack::_internal_set_contactcourse(double value) {
|
inline void SimTrack::_internal_set_contactcourse(double value) {
|
||||||
_impl_._has_bits_[0] |= 0x00000008u;
|
_impl_._has_bits_[0] |= 0x00000010u;
|
||||||
_impl_.contactcourse_ = value;
|
_impl_.contactcourse_ = value;
|
||||||
}
|
}
|
||||||
inline void SimTrack::set_contactcourse(double value) {
|
inline void SimTrack::set_contactcourse(double value) {
|
||||||
@@ -894,9 +972,9 @@ inline void SimTrack::set_contactcourse(double value) {
|
|||||||
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactCourse)
|
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactCourse)
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ConactPitch = 6;
|
// optional double ConactPitch = 7;
|
||||||
inline bool SimTrack::_internal_has_conactpitch() const {
|
inline bool SimTrack::_internal_has_conactpitch() const {
|
||||||
bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
|
bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
inline bool SimTrack::has_conactpitch() const {
|
inline bool SimTrack::has_conactpitch() const {
|
||||||
@@ -904,7 +982,7 @@ inline bool SimTrack::has_conactpitch() const {
|
|||||||
}
|
}
|
||||||
inline void SimTrack::clear_conactpitch() {
|
inline void SimTrack::clear_conactpitch() {
|
||||||
_impl_.conactpitch_ = 0;
|
_impl_.conactpitch_ = 0;
|
||||||
_impl_._has_bits_[0] &= ~0x00000010u;
|
_impl_._has_bits_[0] &= ~0x00000020u;
|
||||||
}
|
}
|
||||||
inline double SimTrack::_internal_conactpitch() const {
|
inline double SimTrack::_internal_conactpitch() const {
|
||||||
return _impl_.conactpitch_;
|
return _impl_.conactpitch_;
|
||||||
@@ -914,7 +992,7 @@ inline double SimTrack::conactpitch() const {
|
|||||||
return _internal_conactpitch();
|
return _internal_conactpitch();
|
||||||
}
|
}
|
||||||
inline void SimTrack::_internal_set_conactpitch(double value) {
|
inline void SimTrack::_internal_set_conactpitch(double value) {
|
||||||
_impl_._has_bits_[0] |= 0x00000010u;
|
_impl_._has_bits_[0] |= 0x00000020u;
|
||||||
_impl_.conactpitch_ = value;
|
_impl_.conactpitch_ = value;
|
||||||
}
|
}
|
||||||
inline void SimTrack::set_conactpitch(double value) {
|
inline void SimTrack::set_conactpitch(double value) {
|
||||||
@@ -922,9 +1000,9 @@ inline void SimTrack::set_conactpitch(double value) {
|
|||||||
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ConactPitch)
|
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ConactPitch)
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional uint32 ContactEnvironemnt = 7;
|
// optional uint32 ContactEnvironemnt = 8;
|
||||||
inline bool SimTrack::_internal_has_contactenvironemnt() const {
|
inline bool SimTrack::_internal_has_contactenvironemnt() const {
|
||||||
bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
|
bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
inline bool SimTrack::has_contactenvironemnt() const {
|
inline bool SimTrack::has_contactenvironemnt() const {
|
||||||
@@ -932,7 +1010,7 @@ inline bool SimTrack::has_contactenvironemnt() const {
|
|||||||
}
|
}
|
||||||
inline void SimTrack::clear_contactenvironemnt() {
|
inline void SimTrack::clear_contactenvironemnt() {
|
||||||
_impl_.contactenvironemnt_ = 0u;
|
_impl_.contactenvironemnt_ = 0u;
|
||||||
_impl_._has_bits_[0] &= ~0x00000004u;
|
_impl_._has_bits_[0] &= ~0x00000008u;
|
||||||
}
|
}
|
||||||
inline uint32_t SimTrack::_internal_contactenvironemnt() const {
|
inline uint32_t SimTrack::_internal_contactenvironemnt() const {
|
||||||
return _impl_.contactenvironemnt_;
|
return _impl_.contactenvironemnt_;
|
||||||
@@ -942,7 +1020,7 @@ inline uint32_t SimTrack::contactenvironemnt() const {
|
|||||||
return _internal_contactenvironemnt();
|
return _internal_contactenvironemnt();
|
||||||
}
|
}
|
||||||
inline void SimTrack::_internal_set_contactenvironemnt(uint32_t value) {
|
inline void SimTrack::_internal_set_contactenvironemnt(uint32_t value) {
|
||||||
_impl_._has_bits_[0] |= 0x00000004u;
|
_impl_._has_bits_[0] |= 0x00000008u;
|
||||||
_impl_.contactenvironemnt_ = value;
|
_impl_.contactenvironemnt_ = value;
|
||||||
}
|
}
|
||||||
inline void SimTrack::set_contactenvironemnt(uint32_t value) {
|
inline void SimTrack::set_contactenvironemnt(uint32_t value) {
|
||||||
@@ -950,9 +1028,9 @@ inline void SimTrack::set_contactenvironemnt(uint32_t value) {
|
|||||||
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactEnvironemnt)
|
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactEnvironemnt)
|
||||||
}
|
}
|
||||||
|
|
||||||
// optional double ContactRCS = 8;
|
// optional double ContactRCS = 9;
|
||||||
inline bool SimTrack::_internal_has_contactrcs() const {
|
inline bool SimTrack::_internal_has_contactrcs() const {
|
||||||
bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
|
bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
inline bool SimTrack::has_contactrcs() const {
|
inline bool SimTrack::has_contactrcs() const {
|
||||||
@@ -960,7 +1038,7 @@ inline bool SimTrack::has_contactrcs() const {
|
|||||||
}
|
}
|
||||||
inline void SimTrack::clear_contactrcs() {
|
inline void SimTrack::clear_contactrcs() {
|
||||||
_impl_.contactrcs_ = 0;
|
_impl_.contactrcs_ = 0;
|
||||||
_impl_._has_bits_[0] &= ~0x00000020u;
|
_impl_._has_bits_[0] &= ~0x00000040u;
|
||||||
}
|
}
|
||||||
inline double SimTrack::_internal_contactrcs() const {
|
inline double SimTrack::_internal_contactrcs() const {
|
||||||
return _impl_.contactrcs_;
|
return _impl_.contactrcs_;
|
||||||
@@ -970,7 +1048,7 @@ inline double SimTrack::contactrcs() const {
|
|||||||
return _internal_contactrcs();
|
return _internal_contactrcs();
|
||||||
}
|
}
|
||||||
inline void SimTrack::_internal_set_contactrcs(double value) {
|
inline void SimTrack::_internal_set_contactrcs(double value) {
|
||||||
_impl_._has_bits_[0] |= 0x00000020u;
|
_impl_._has_bits_[0] |= 0x00000040u;
|
||||||
_impl_.contactrcs_ = value;
|
_impl_.contactrcs_ = value;
|
||||||
}
|
}
|
||||||
inline void SimTrack::set_contactrcs(double value) {
|
inline void SimTrack::set_contactrcs(double value) {
|
||||||
@@ -978,7 +1056,7 @@ inline void SimTrack::set_contactrcs(double value) {
|
|||||||
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactRCS)
|
// @@protoc_insertion_point(field_set:messages.SimTrack.SimTrack.ContactRCS)
|
||||||
}
|
}
|
||||||
|
|
||||||
// repeated .messages.SimTrack.Emission ContactEmissions = 9;
|
// repeated .messages.SimTrack.Emission ContactEmissions = 10;
|
||||||
inline int SimTrack::_internal_contactemissions_size() const {
|
inline int SimTrack::_internal_contactemissions_size() const {
|
||||||
return _impl_.contactemissions_.size();
|
return _impl_.contactemissions_.size();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,15 +14,16 @@ import "GeocentricPosition.proto";
|
|||||||
message SimTrack {
|
message SimTrack {
|
||||||
|
|
||||||
messages.track.Identifier EntityIdentifier = 1;
|
messages.track.Identifier EntityIdentifier = 1;
|
||||||
uint32 ContactSourceType = 2;
|
string ConatactName = 2;
|
||||||
optional messages.track.EntityGeocentricPosition GeocentricPosition = 3;
|
optional uint32 ContactSourceType = 3;
|
||||||
optional double ContactSpeed = 4;
|
optional messages.track.EntityGeocentricPosition GeocentricPosition = 4;
|
||||||
optional double ContactCourse = 5;
|
optional double ContactSpeed = 5;
|
||||||
optional double ConactPitch = 6;
|
optional double ContactCourse = 6;
|
||||||
optional uint32 ContactEnvironemnt = 7;
|
optional double ConactPitch = 7;
|
||||||
optional double ContactRCS = 8;
|
optional uint32 ContactEnvironemnt = 8;
|
||||||
|
optional double ContactRCS = 9;
|
||||||
|
|
||||||
repeated Emission ContactEmissions = 9;
|
repeated Emission ContactEmissions = 10;
|
||||||
// google.protobuf.Timestamp timestamp = 9;
|
// google.protobuf.Timestamp timestamp = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <SimCore/Messages/Emission.hpp>
|
#include <SimCore/Messages/Emission.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace SimCore
|
namespace SimCore
|
||||||
{
|
{
|
||||||
@@ -19,8 +20,12 @@ namespace SimCore
|
|||||||
public:
|
public:
|
||||||
SimTrack();
|
SimTrack();
|
||||||
|
|
||||||
|
SimTrack(std::string name, SimCore::EntityKind entityKind);
|
||||||
|
|
||||||
SimTrack(WHISPER::SourceType sourcetype, SimCore::EntityKind entityKind);
|
SimTrack(WHISPER::SourceType sourcetype, SimCore::EntityKind entityKind);
|
||||||
|
|
||||||
|
SimTrack(SimCore::Identifier id,std::string name, SimCore::EntityKind entityKind);
|
||||||
|
|
||||||
SimTrack(SimCore::Identifier id, WHISPER::SourceType sourcetype, SimCore::EntityKind entityKind);
|
SimTrack(SimCore::Identifier id, WHISPER::SourceType sourcetype, SimCore::EntityKind entityKind);
|
||||||
|
|
||||||
~SimTrack();
|
~SimTrack();
|
||||||
@@ -67,6 +72,7 @@ namespace SimCore
|
|||||||
static std::unique_ptr<SimCore::SimTrack> unpack(std::string msgString);
|
static std::unique_ptr<SimCore::SimTrack> unpack(std::string msgString);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Data<std::string> Name;
|
||||||
Data<double> Speed;
|
Data<double> Speed;
|
||||||
Data<double> Course;
|
Data<double> Course;
|
||||||
Data<double> Pitch;
|
Data<double> Pitch;
|
||||||
@@ -77,7 +83,7 @@ namespace SimCore
|
|||||||
private:
|
private:
|
||||||
const SimCore::Identifier ID_;
|
const SimCore::Identifier ID_;
|
||||||
|
|
||||||
const WHISPER::SourceType SourceType_;
|
WHISPER::SourceType SourceType_;
|
||||||
|
|
||||||
Position position_;
|
Position position_;
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,16 @@ namespace SimCore
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Data(T val):data_(val),valid_(false),writeTime_(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count())
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Data(T val):data_(val),valid_(false),writeTime_(std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count())
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Data (const Data &other)
|
Data (const Data &other)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> guard(other.mx);
|
std::lock_guard<std::mutex> guard(other.mx);
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ namespace SimCore
|
|||||||
RCS.setValue(0);
|
RCS.setValue(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SimTrack::SimTrack(std::string name, SimCore::EntityKind entityKind):ID_(SimCore::Identifier())
|
||||||
|
{
|
||||||
|
Name.setValue(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SimTrack::SimTrack(WHISPER::SourceType sourcetype,SimCore::EntityKind entityKind)
|
SimTrack::SimTrack(WHISPER::SourceType sourcetype,SimCore::EntityKind entityKind)
|
||||||
:ID_(SimCore::Identifier()),SourceType_(sourcetype)
|
:ID_(SimCore::Identifier()),SourceType_(sourcetype)
|
||||||
{
|
{
|
||||||
@@ -30,6 +36,12 @@ namespace SimCore
|
|||||||
Pitch.setValue(0);
|
Pitch.setValue(0);
|
||||||
RCS.setValue(0);
|
RCS.setValue(0);
|
||||||
}
|
}
|
||||||
|
SimTrack::SimTrack(SimCore::Identifier id,std::string name, SimCore::EntityKind entityKind)
|
||||||
|
:ID_(id),Name(name),EntityKind(entityKind)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SimTrack::SimTrack(SimCore::Identifier id ,WHISPER::SourceType sourcetype,SimCore::EntityKind entityKind )
|
SimTrack::SimTrack(SimCore::Identifier id ,WHISPER::SourceType sourcetype,SimCore::EntityKind entityKind )
|
||||||
:ID_(id),SourceType_(sourcetype)
|
:ID_(id),SourceType_(sourcetype)
|
||||||
@@ -78,6 +90,10 @@ namespace SimCore
|
|||||||
|
|
||||||
messages::SimTrack::SimTrack SimTrack;
|
messages::SimTrack::SimTrack SimTrack;
|
||||||
|
|
||||||
|
if (Name.isValid()) SimTrack.set_conatactname(Name.getValue());
|
||||||
|
else SimTrack.set_conatactname(" ");
|
||||||
|
|
||||||
|
|
||||||
if (position_.isValid())
|
if (position_.isValid())
|
||||||
{
|
{
|
||||||
SimTrack.mutable_geocentricposition()->set_x(position_.getGeocentricPos()(SimCore::X));
|
SimTrack.mutable_geocentricposition()->set_x(position_.getGeocentricPos()(SimCore::X));
|
||||||
@@ -132,18 +148,18 @@ namespace SimCore
|
|||||||
WHISPER::SourceType sourcetype = (WHISPER::SourceType)trackMsg.contactsourcetype();
|
WHISPER::SourceType sourcetype = (WHISPER::SourceType)trackMsg.contactsourcetype();
|
||||||
SimCore::EntityKind entityKind = (SimCore::EntityKind)trackMsg.contactenvironemnt();
|
SimCore::EntityKind entityKind = (SimCore::EntityKind)trackMsg.contactenvironemnt();
|
||||||
|
|
||||||
SimCore::SimTrack track(id,sourcetype,entityKind);
|
SimCore::SimTrack track(id,trackMsg.conatactname(),entityKind);
|
||||||
|
|
||||||
|
if (trackMsg.has_contactsourcetype())
|
||||||
|
{
|
||||||
|
track.SourceType_ = (WHISPER::SourceType)trackMsg.contactsourcetype();
|
||||||
|
}
|
||||||
|
|
||||||
if (trackMsg.has_geocentricposition())
|
if (trackMsg.has_geocentricposition())
|
||||||
{
|
{
|
||||||
track.setPosition(trackMsg.mutable_geocentricposition()->x(), trackMsg.mutable_geocentricposition()->y(), trackMsg.mutable_geocentricposition()->z());
|
track.setPosition(trackMsg.mutable_geocentricposition()->x(), trackMsg.mutable_geocentricposition()->y(), trackMsg.mutable_geocentricposition()->z());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trackMsg.has_contactcourse())
|
|
||||||
{
|
|
||||||
track.Course.setValue(trackMsg.contactcourse());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (trackMsg.has_contactspeed())
|
if (trackMsg.has_contactspeed())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user