diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-15 15:26:00 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-15 15:26:00 +0300 |
| commit | 4a1c6d6322ef7e5021df6190920e42dc0bc06df9 (patch) | |
| tree | 428f32a98b4339977e4c8c931df6b09b266af018 /Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc | |
| parent | e1ce4bbfebc27e9c0ce2b4d305246407273aaed0 (diff) | |
| download | Tango-4a1c6d6322ef7e5021df6190920e42dc0bc06df9.tar.gz Tango-4a1c6d6322ef7e5021df6190920e42dc0bc06df9.zip | |
Embedded Mirta project in solution.
Diffstat (limited to 'Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc')
| -rw-r--r-- | Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc | 177 |
1 files changed, 145 insertions, 32 deletions
diff --git a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc index 220d70a86..37cd6db00 100644 --- a/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc +++ b/Software/Visual_Studio/Native/Tango.ProtoTest/PMR/StubMotorEncoderResponse.pb.cc @@ -60,6 +60,7 @@ const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, motorspeed_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, motordirection_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, status_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StubMotorEncoderResponse, statusword_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(StubMotorEncoderResponse)}, @@ -108,14 +109,14 @@ void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\036StubMotorEncoderResponse.proto\022\017Tango." - "PMR.Stubs\"\201\001\n\030StubMotorEncoderResponse\022\021" + "PMR.Stubs\"\225\001\n\030StubMotorEncoderResponse\022\021" "\n\tEncoderId\030\001 \001(\r\022\026\n\016EncoderVersion\030\002 \001(" "\r\022\022\n\nMotorSpeed\030\003 \001(\005\022\026\n\016MotorDirection\030" - "\004 \001(\010\022\016\n\006Status\030\005 \001(\010B\033\n\031com.twine.tango" - ".pmr.stubsb\006proto3" + "\004 \001(\010\022\016\n\006Status\030\005 \001(\t\022\022\n\nStatusWord\030\006 \001(" + "\rB\033\n\031com.twine.tango.pmr.stubsb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 218); + descriptor, 238); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "StubMotorEncoderResponse.proto", &protobuf_RegisterTypes); } @@ -143,6 +144,7 @@ const int StubMotorEncoderResponse::kEncoderVersionFieldNumber; const int StubMotorEncoderResponse::kMotorSpeedFieldNumber; const int StubMotorEncoderResponse::kMotorDirectionFieldNumber; const int StubMotorEncoderResponse::kStatusFieldNumber; +const int StubMotorEncoderResponse::kStatusWordFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 StubMotorEncoderResponse::StubMotorEncoderResponse() @@ -158,16 +160,21 @@ StubMotorEncoderResponse::StubMotorEncoderResponse(const StubMotorEncoderRespons _internal_metadata_(NULL), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); + status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.status().size() > 0) { + status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_); + } ::memcpy(&encoderid_, &from.encoderid_, - static_cast<size_t>(reinterpret_cast<char*>(&status_) - - reinterpret_cast<char*>(&encoderid_)) + sizeof(status_)); + static_cast<size_t>(reinterpret_cast<char*>(&statusword_) - + reinterpret_cast<char*>(&encoderid_)) + sizeof(statusword_)); // @@protoc_insertion_point(copy_constructor:Tango.PMR.Stubs.StubMotorEncoderResponse) } void StubMotorEncoderResponse::SharedCtor() { + status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&encoderid_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&status_) - - reinterpret_cast<char*>(&encoderid_)) + sizeof(status_)); + reinterpret_cast<char*>(&statusword_) - + reinterpret_cast<char*>(&encoderid_)) + sizeof(statusword_)); _cached_size_ = 0; } @@ -177,6 +184,7 @@ StubMotorEncoderResponse::~StubMotorEncoderResponse() { } void StubMotorEncoderResponse::SharedDtor() { + status_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void StubMotorEncoderResponse::SetCachedSize(int size) const { @@ -208,9 +216,10 @@ void StubMotorEncoderResponse::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&encoderid_, 0, static_cast<size_t>( - reinterpret_cast<char*>(&status_) - - reinterpret_cast<char*>(&encoderid_)) + sizeof(status_)); + reinterpret_cast<char*>(&statusword_) - + reinterpret_cast<char*>(&encoderid_)) + sizeof(statusword_)); _internal_metadata_.Clear(); } @@ -280,14 +289,30 @@ bool StubMotorEncoderResponse::MergePartialFromCodedStream( break; } - // bool Status = 5; + // string Status = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == - static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { + static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_status())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->status().data(), static_cast<int>(this->status().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "Tango.PMR.Stubs.StubMotorEncoderResponse.Status")); + } else { + goto handle_unusual; + } + break; + } + + // uint32 StatusWord = 6; + case 6: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &status_))); + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &statusword_))); } else { goto handle_unusual; } @@ -340,9 +365,19 @@ void StubMotorEncoderResponse::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->motordirection(), output); } - // bool Status = 5; - if (this->status() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->status(), output); + // string Status = 5; + if (this->status().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->status().data(), static_cast<int>(this->status().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubMotorEncoderResponse.Status"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 5, this->status(), output); + } + + // uint32 StatusWord = 6; + if (this->statusword() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->statusword(), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { @@ -379,9 +414,20 @@ void StubMotorEncoderResponse::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->motordirection(), target); } - // bool Status = 5; - if (this->status() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->status(), target); + // string Status = 5; + if (this->status().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->status().data(), static_cast<int>(this->status().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "Tango.PMR.Stubs.StubMotorEncoderResponse.Status"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 5, this->status(), target); + } + + // uint32 StatusWord = 6; + if (this->statusword() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->statusword(), target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { @@ -401,6 +447,13 @@ size_t StubMotorEncoderResponse::ByteSizeLong() const { ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } + // string Status = 5; + if (this->status().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->status()); + } + // uint32 EncoderId = 1; if (this->encoderid() != 0) { total_size += 1 + @@ -427,9 +480,11 @@ size_t StubMotorEncoderResponse::ByteSizeLong() const { total_size += 1 + 1; } - // bool Status = 5; - if (this->status() != 0) { - total_size += 1 + 1; + // uint32 StatusWord = 6; + if (this->statusword() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->statusword()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -461,6 +516,10 @@ void StubMotorEncoderResponse::MergeFrom(const StubMotorEncoderResponse& from) { ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; + if (from.status().size() > 0) { + + status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_); + } if (from.encoderid() != 0) { set_encoderid(from.encoderid()); } @@ -473,8 +532,8 @@ void StubMotorEncoderResponse::MergeFrom(const StubMotorEncoderResponse& from) { if (from.motordirection() != 0) { set_motordirection(from.motordirection()); } - if (from.status() != 0) { - set_status(from.status()); + if (from.statusword() != 0) { + set_statusword(from.statusword()); } } @@ -502,11 +561,12 @@ void StubMotorEncoderResponse::Swap(StubMotorEncoderResponse* other) { } void StubMotorEncoderResponse::InternalSwap(StubMotorEncoderResponse* other) { using std::swap; + status_.Swap(&other->status_); swap(encoderid_, other->encoderid_); swap(encoderversion_, other->encoderversion_); swap(motorspeed_, other->motorspeed_); swap(motordirection_, other->motordirection_); - swap(status_, other->status_); + swap(statusword_, other->statusword_); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } @@ -575,19 +635,72 @@ void StubMotorEncoderResponse::set_motordirection(bool value) { // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.MotorDirection) } -// bool Status = 5; +// string Status = 5; void StubMotorEncoderResponse::clear_status() { - status_ = false; + status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } -bool StubMotorEncoderResponse::status() const { +const ::std::string& StubMotorEncoderResponse::status() const { // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) - return status_; + return status_.GetNoArena(); } -void StubMotorEncoderResponse::set_status(bool value) { +void StubMotorEncoderResponse::set_status(const ::std::string& value) { - status_ = value; + status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) } +#if LANG_CXX11 +void StubMotorEncoderResponse::set_status(::std::string&& value) { + + status_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) +} +#endif +void StubMotorEncoderResponse::set_status(const char* value) { + GOOGLE_DCHECK(value != NULL); + + status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) +} +void StubMotorEncoderResponse::set_status(const char* value, size_t size) { + + status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast<const char*>(value), size)); + // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) +} +::std::string* StubMotorEncoderResponse::mutable_status() { + + // @@protoc_insertion_point(field_mutable:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) + return status_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +::std::string* StubMotorEncoderResponse::release_status() { + // @@protoc_insertion_point(field_release:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) + + return status_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +void StubMotorEncoderResponse::set_allocated_status(::std::string* status) { + if (status != NULL) { + + } else { + + } + status_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), status); + // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Stubs.StubMotorEncoderResponse.Status) +} + +// uint32 StatusWord = 6; +void StubMotorEncoderResponse::clear_statusword() { + statusword_ = 0u; +} +::google::protobuf::uint32 StubMotorEncoderResponse::statusword() const { + // @@protoc_insertion_point(field_get:Tango.PMR.Stubs.StubMotorEncoderResponse.StatusWord) + return statusword_; +} +void StubMotorEncoderResponse::set_statusword(::google::protobuf::uint32 value) { + + statusword_ = value; + // @@protoc_insertion_point(field_set:Tango.PMR.Stubs.StubMotorEncoderResponse.StatusWord) +} #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
