aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/ConnectedMachineView.xaml
blob: 45f1c9b26c34835ab7235fa5800b87d7a3c8617d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<UserControl x:Class="Tango.MachineStudio.UI.Views.ConnectedMachineView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:integration="clr-namespace:Tango.Integration.Services;assembly=Tango.Integration"
             xmlns:integ="clr-namespace:Tango.Integration.Operation;assembly=Tango.Integration"
             xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
             xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Tango.MachineStudio.UI.Views"
             mc:Ignorable="d" 
              d:DesignHeight="300" d:DesignWidth="300" Width="600" Height="400" Background="White" DataContext="{Binding ConnectedMachineViewVM, Source={StaticResource Locator}}">

    <UserControl.Resources>
        <converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"></converters:BooleanToVisibilityConverter>
        <converters:BooleanToVisibilityInverseConverter x:Key="BooleanToVisibilityInverseConverter"></converters:BooleanToVisibilityInverseConverter>
        <converters:BooleanInverseConverter x:Key="BooleanInverseConverter"></converters:BooleanInverseConverter>
        <converters:ByteArrayToFileSizeConverter x:Key="ByteArrayToFileSizeConverter" />
    </UserControl.Resources>

    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="80"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>

            <Grid>
                <StackPanel Orientation="Horizontal" Margin="10">
                    <ContentControl Content="{Binding ApplicationManager.ConnectedMachine}">
                        <ContentControl.Resources>
                            <DataTemplate DataType="{x:Type integration:ExternalBridgeTcpClient}">
                                <Image Source="/Images/external-bridge-tcp.png" Width="48" Height="48" RenderOptions.BitmapScalingMode="Fant"></Image>
                            </DataTemplate>

                            <DataTemplate DataType="{x:Type integration:ExternalBridgeUsbClient}">
                                <Image Source="/Images/external-bridge-usb.png" Width="48" Height="48" RenderOptions.BitmapScalingMode="Fant"></Image>
                            </DataTemplate>
                        </ContentControl.Resources>
                    </ContentControl>
                  
                    <TextBlock Text="Machine Connection" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="20"></TextBlock>
                </StackPanel>
            </Grid>

            <Grid Grid.Row="1" Margin="10 0 10 10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="1*"/>
                    <RowDefinition Height="50"/>
                </Grid.RowDefinitions>

                <Grid d:DataContext="{d:DesignInstance Type=integ:MachineOperator, IsDesignTimeCreatable=False}">
                    <ContentControl Content="{Binding ApplicationManager.ConnectedMachine}">
                        <ContentControl.Resources>
                            <DataTemplate DataType="{x:Type integration:ExternalBridgeTcpClient}">
                                <controls:TableGrid RowHeight="22">
                                    <TextBlock FontWeight="SemiBold" Text="Serial Number:" />
                                    <TextBlock Text="{Binding SerialNumber}" />
                                    <TextBlock FontWeight="SemiBold" Text="Name:" />
                                    <TextBlock Text="{Binding Machine.Name}" />
                                    <TextBlock FontWeight="SemiBold" Text="Organization:" />
                                    <TextBlock Text="{Binding Machine.Organization.Name}" />
                                    <TextBlock FontWeight="SemiBold" Text="Embedded Software Version:" />
                                    <TextBlock Text="{Binding DeviceInformation.Version}" />
                                    <TextBlock FontWeight="SemiBold" Text="IP Address:" />
                                    <TextBlock Text="{Binding IPAddress}" />
                                    <TextBlock FontWeight="SemiBold" Text="Total Bytes Sent:" />
                                    <TextBlock Text="{Binding Adapter.TotalBytesSent,Converter={StaticResource ByteArrayToFileSizeConverter},Mode=OneWay}" />
                                    <TextBlock FontWeight="SemiBold" Text="Total Bytes Received:" />
                                    <TextBlock Text="{Binding Adapter.TotalBytesReceived,Converter={StaticResource ByteArrayToFileSizeConverter},Mode=OneWay}" />
                                    <TextBlock FontWeight="SemiBold" Text="Transfer Rate:" />
                                    <TextBlock>
                                        <Run Text="{Binding Adapter.TransferRate,Converter={StaticResource ByteArrayToFileSizeConverter},Mode=OneWay}"></Run>
                                        <Run Text="/ second"></Run>
                                    </TextBlock>
                                    <TextBlock FontWeight="SemiBold" Text="Enable Diagnostics:" />
                                    <ToggleButton IsChecked="{Binding EnableDiagnostics}" HorizontalAlignment="Left"></ToggleButton>
                                    <TextBlock FontWeight="SemiBold" Text="Enable Embedded Debug Logs:" />
                                    <ToggleButton IsChecked="{Binding EnableEmbeddedDebugging}" HorizontalAlignment="Left"></ToggleButton>
                                </controls:TableGrid>
                            </DataTemplate>

                            <DataTemplate DataType="{x:Type integration:ExternalBridgeUsbClient}">
                                <controls:TableGrid RowHeight="22">
                                    <TextBlock FontWeight="SemiBold" Text="Serial Number:" />
                                    <TextBlock Text="{Binding SerialNumber}" />
                                    <TextBlock FontWeight="SemiBold" Text="Name:" />
                                    <TextBlock Text="{Binding Machine.Name}" />
                                    <TextBlock FontWeight="SemiBold" Text="Organization:" />
                                    <TextBlock Text="{Binding Machine.Organization.Name}" />
                                    <TextBlock FontWeight="SemiBold" Text="Embedded Software Version:" />
                                    <TextBlock Text="{Binding DeviceInformation.Version}" />
                                    <TextBlock FontWeight="SemiBold" Text="COM Port:" />
                                    <TextBlock Text="{Binding ComPort}" />
                                    <TextBlock FontWeight="SemiBold" Text="Device:" />
                                    <TextBlock Text="{Binding Device}" />
                                    <TextBlock FontWeight="SemiBold" Text="Total Bytes Sent:" />
                                    <TextBlock Text="{Binding Adapter.TotalBytesSent,Converter={StaticResource ByteArrayToFileSizeConverter},Mode=OneWay}" />
                                    <TextBlock FontWeight="SemiBold" Text="Total Bytes Received:" />
                                    <TextBlock Text="{Binding Adapter.TotalBytesReceived,Converter={StaticResource ByteArrayToFileSizeConverter},Mode=OneWay}" />
                                    <TextBlock FontWeight="SemiBold" Text="Transfer Rate:" />
                                    <TextBlock>
                                        <Run Text="{Binding Adapter.TransferRate,Converter={StaticResource ByteArrayToFileSizeConverter},Mode=OneWay}"></Run>
                                        <Run Text="/ second"></Run>
                                    </TextBlock>
                                    <TextBlock FontWeight="SemiBold" Text="Enable Diagnostics:" />
                                    <ToggleButton IsChecked="{Binding EnableDiagnostics}" HorizontalAlignment="Left"></ToggleButton>
                                    <TextBlock FontWeight="SemiBold" Text="Enable Embedded Debug Logs:" />
                                    <ToggleButton IsChecked="{Binding EnableEmbeddedDebugging}" HorizontalAlignment="Left"></ToggleButton>
                                </controls:TableGrid>
                            </DataTemplate>
                        </ContentControl.Resources>
                    </ContentControl>
                </Grid>

                <Grid Grid.Row="1">
                    <Button HorizontalAlignment="Right" Width="140" Command="{Binding DisconnectCommand}">DISCONNECT</Button>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</UserControl>
ogle/protobuf/io/coded_stream.h> #include <google/protobuf/wire_format_lite_inl.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) namespace Tango { namespace PMR { namespace Integration { class DirectSynchronizationResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<DirectSynchronizationResponse> _instance; } _DirectSynchronizationResponse_default_instance_; namespace protobuf_DirectSynchronizationResponse_2eproto { namespace { ::google::protobuf::Metadata file_level_metadata[1]; } // namespace PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ::google::protobuf::internal::AuxillaryParseTableField(), }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, }; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DirectSynchronizationResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DirectSynchronizationResponse, localdb_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(DirectSynchronizationResponse)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast<const ::google::protobuf::Message*>(&_DirectSynchronizationResponse_default_instance_), }; namespace { void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "DirectSynchronizationResponse.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); } } // namespace void TableStruct::InitDefaultsImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::internal::InitProtobufDefaults(); _DirectSynchronizationResponse_default_instance_._instance.DefaultConstruct(); ::google::protobuf::internal::OnShutdownDestroyMessage( &_DirectSynchronizationResponse_default_instance_);} void InitDefaults() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); } namespace { void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n#DirectSynchronizationResponse.proto\022\025T" "ango.PMR.Integration\"0\n\035DirectSynchroniz" "ationResponse\022\017\n\007LocalDB\030\001 \001(\014B!\n\037com.tw" "ine.tango.pmr.integrationb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 153); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "DirectSynchronizationResponse.proto", &protobuf_RegisterTypes); } } // anonymous namespace void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_DirectSynchronizationResponse_2eproto // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int DirectSynchronizationResponse::kLocalDBFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 DirectSynchronizationResponse::DirectSynchronizationResponse() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_DirectSynchronizationResponse_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:Tango.PMR.Integration.DirectSynchronizationResponse) } DirectSynchronizationResponse::DirectSynchronizationResponse(const DirectSynchronizationResponse& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); localdb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.localdb().size() > 0) { localdb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.localdb_); } // @@protoc_insertion_point(copy_constructor:Tango.PMR.Integration.DirectSynchronizationResponse) } void DirectSynchronizationResponse::SharedCtor() { localdb_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _cached_size_ = 0; } DirectSynchronizationResponse::~DirectSynchronizationResponse() { // @@protoc_insertion_point(destructor:Tango.PMR.Integration.DirectSynchronizationResponse) SharedDtor(); } void DirectSynchronizationResponse::SharedDtor() { localdb_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void DirectSynchronizationResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* DirectSynchronizationResponse::descriptor() { protobuf_DirectSynchronizationResponse_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_DirectSynchronizationResponse_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const DirectSynchronizationResponse& DirectSynchronizationResponse::default_instance() { protobuf_DirectSynchronizationResponse_2eproto::InitDefaults(); return *internal_default_instance(); } DirectSynchronizationResponse* DirectSynchronizationResponse::New(::google::protobuf::Arena* arena) const { DirectSynchronizationResponse* n = new DirectSynchronizationResponse; if (arena != NULL) { arena->Own(n); } return n; } void DirectSynchronizationResponse::Clear() { // @@protoc_insertion_point(message_clear_start:Tango.PMR.Integration.DirectSynchronizationResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; localdb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } bool DirectSynchronizationResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:Tango.PMR.Integration.DirectSynchronizationResponse) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // bytes LocalDB = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->mutable_localdb())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:Tango.PMR.Integration.DirectSynchronizationResponse) return true; failure: // @@protoc_insertion_point(parse_failure:Tango.PMR.Integration.DirectSynchronizationResponse) return false; #undef DO_ } void DirectSynchronizationResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Tango.PMR.Integration.DirectSynchronizationResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // bytes LocalDB = 1; if (this->localdb().size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 1, this->localdb(), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:Tango.PMR.Integration.DirectSynchronizationResponse) } ::google::protobuf::uint8* DirectSynchronizationResponse::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Integration.DirectSynchronizationResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // bytes LocalDB = 1; if (this->localdb().size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( 1, this->localdb(), target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:Tango.PMR.Integration.DirectSynchronizationResponse) return target; } size_t DirectSynchronizationResponse::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Integration.DirectSynchronizationResponse) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // bytes LocalDB = 1; if (this->localdb().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->localdb()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void DirectSynchronizationResponse::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Integration.DirectSynchronizationResponse) GOOGLE_DCHECK_NE(&from, this); const DirectSynchronizationResponse* source = ::google::protobuf::internal::DynamicCastToGenerated<const DirectSynchronizationResponse>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Integration.DirectSynchronizationResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Integration.DirectSynchronizationResponse) MergeFrom(*source); } } void DirectSynchronizationResponse::MergeFrom(const DirectSynchronizationResponse& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Integration.DirectSynchronizationResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.localdb().size() > 0) { localdb_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.localdb_); } } void DirectSynchronizationResponse::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Integration.DirectSynchronizationResponse) if (&from == this) return; Clear(); MergeFrom(from); } void DirectSynchronizationResponse::CopyFrom(const DirectSynchronizationResponse& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Integration.DirectSynchronizationResponse) if (&from == this) return; Clear(); MergeFrom(from); } bool DirectSynchronizationResponse::IsInitialized() const { return true; } void DirectSynchronizationResponse::Swap(DirectSynchronizationResponse* other) { if (other == this) return; InternalSwap(other); } void DirectSynchronizationResponse::InternalSwap(DirectSynchronizationResponse* other) { using std::swap; localdb_.Swap(&other->localdb_); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata DirectSynchronizationResponse::GetMetadata() const { protobuf_DirectSynchronizationResponse_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_DirectSynchronizationResponse_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // DirectSynchronizationResponse // bytes LocalDB = 1; void DirectSynchronizationResponse::clear_localdb() { localdb_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } const ::std::string& DirectSynchronizationResponse::localdb() const { // @@protoc_insertion_point(field_get:Tango.PMR.Integration.DirectSynchronizationResponse.LocalDB) return localdb_.GetNoArena(); } void DirectSynchronizationResponse::set_localdb(const ::std::string& value) { localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:Tango.PMR.Integration.DirectSynchronizationResponse.LocalDB) } #if LANG_CXX11 void DirectSynchronizationResponse::set_localdb(::std::string&& value) { localdb_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Integration.DirectSynchronizationResponse.LocalDB) } #endif void DirectSynchronizationResponse::set_localdb(const char* value) { GOOGLE_DCHECK(value != NULL); localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Tango.PMR.Integration.DirectSynchronizationResponse.LocalDB) } void DirectSynchronizationResponse::set_localdb(const void* value, size_t size) { localdb_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast<const char*>(value), size)); // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Integration.DirectSynchronizationResponse.LocalDB) } ::std::string* DirectSynchronizationResponse::mutable_localdb() { // @@protoc_insertion_point(field_mutable:Tango.PMR.Integration.DirectSynchronizationResponse.LocalDB) return localdb_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* DirectSynchronizationResponse::release_localdb() { // @@protoc_insertion_point(field_release:Tango.PMR.Integration.DirectSynchronizationResponse.LocalDB) return localdb_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void DirectSynchronizationResponse::set_allocated_localdb(::std::string* localdb) { if (localdb != NULL) { } else { } localdb_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), localdb); // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Integration.DirectSynchronizationResponse.LocalDB) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Integration } // namespace PMR } // namespace Tango // @@protoc_insertion_point(global_scope)