From c14073e78d2c5b9569f91f47609d431da48ba706 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 6 May 2018 13:50:14 +0300 Subject: Added start/stop diagnostics and debugging on PMR. Added device info to connected machine view. Added enable/disable diagnostics/debugging to connected machine view. Improved transfer rate calculation. --- .../Tango.PMR/Debugging/DebugLogRequest.cs | 131 --------- .../Tango.PMR/Debugging/DebugLogResponse.cs | 303 --------------------- .../Tango.PMR/Debugging/StartDebugLogRequest.cs | 131 +++++++++ .../Tango.PMR/Debugging/StartDebugLogResponse.cs | 303 +++++++++++++++++++++ .../Tango.PMR/Debugging/StopDebugLogRequest.cs | 131 +++++++++ .../Tango.PMR/Debugging/StopDebugLogResponse.cs | 131 +++++++++ 6 files changed, 696 insertions(+), 434 deletions(-) delete mode 100644 Software/Visual_Studio/Tango.PMR/Debugging/DebugLogRequest.cs delete mode 100644 Software/Visual_Studio/Tango.PMR/Debugging/DebugLogResponse.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Debugging/StartDebugLogRequest.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Debugging/StartDebugLogResponse.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Debugging/StopDebugLogRequest.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Debugging/StopDebugLogResponse.cs (limited to 'Software/Visual_Studio/Tango.PMR/Debugging') diff --git a/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogRequest.cs b/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogRequest.cs deleted file mode 100644 index a64d091d7..000000000 --- a/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogRequest.cs +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DebugLogRequest.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Tango.PMR.Debugging { - - /// Holder for reflection information generated from DebugLogRequest.proto - public static partial class DebugLogRequestReflection { - - #region Descriptor - /// File descriptor for DebugLogRequest.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DebugLogRequestReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChVEZWJ1Z0xvZ1JlcXVlc3QucHJvdG8SE1RhbmdvLlBNUi5EZWJ1Z2dpbmci", - "EQoPRGVidWdMb2dSZXF1ZXN0Qh8KHWNvbS50d2luZS50YW5nby5wbXIuZGVi", - "dWdnaW5nYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Debugging.DebugLogRequest), global::Tango.PMR.Debugging.DebugLogRequest.Parser, null, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class DebugLogRequest : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DebugLogRequest()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Tango.PMR.Debugging.DebugLogRequestReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DebugLogRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DebugLogRequest(DebugLogRequest other) : this() { - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DebugLogRequest Clone() { - return new DebugLogRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as DebugLogRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(DebugLogRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(DebugLogRequest other) { - if (other == null) { - return; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogResponse.cs b/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogResponse.cs deleted file mode 100644 index b7112f262..000000000 --- a/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogResponse.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DebugLogResponse.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Tango.PMR.Debugging { - - /// Holder for reflection information generated from DebugLogResponse.proto - public static partial class DebugLogResponseReflection { - - #region Descriptor - /// File descriptor for DebugLogResponse.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DebugLogResponseReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ChZEZWJ1Z0xvZ1Jlc3BvbnNlLnByb3RvEhNUYW5nby5QTVIuRGVidWdnaW5n", - "GhZEZWJ1Z0xvZ0NhdGVnb3J5LnByb3RvIqQBChBEZWJ1Z0xvZ1Jlc3BvbnNl", - "EjcKCENhdGVnb3J5GAEgASgOMiUuVGFuZ28uUE1SLkRlYnVnZ2luZy5EZWJ1", - "Z0xvZ0NhdGVnb3J5EhAKCEZpbGVOYW1lGAIgASgJEhIKCkxpbmVOdW1iZXIY", - "AyABKA0SDgoGRmlsdGVyGAQgASgNEg8KB01lc3NhZ2UYBSABKAkSEAoITW9k", - "dWxlSWQYBiABKA1CHwodY29tLnR3aW5lLnRhbmdvLnBtci5kZWJ1Z2dpbmdi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Tango.PMR.Debugging.DebugLogCategoryReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Debugging.DebugLogResponse), global::Tango.PMR.Debugging.DebugLogResponse.Parser, new[]{ "Category", "FileName", "LineNumber", "Filter", "Message", "ModuleId" }, null, null, null) - })); - } - #endregion - - } - #region Messages - public sealed partial class DebugLogResponse : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DebugLogResponse()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::Tango.PMR.Debugging.DebugLogResponseReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DebugLogResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DebugLogResponse(DebugLogResponse other) : this() { - category_ = other.category_; - fileName_ = other.fileName_; - lineNumber_ = other.lineNumber_; - filter_ = other.filter_; - message_ = other.message_; - moduleId_ = other.moduleId_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DebugLogResponse Clone() { - return new DebugLogResponse(this); - } - - /// Field number for the "Category" field. - public const int CategoryFieldNumber = 1; - private global::Tango.PMR.Debugging.DebugLogCategory category_ = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::Tango.PMR.Debugging.DebugLogCategory Category { - get { return category_; } - set { - category_ = value; - } - } - - /// Field number for the "FileName" field. - public const int FileNameFieldNumber = 2; - private string fileName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FileName { - get { return fileName_; } - set { - fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "LineNumber" field. - public const int LineNumberFieldNumber = 3; - private uint lineNumber_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint LineNumber { - get { return lineNumber_; } - set { - lineNumber_ = value; - } - } - - /// Field number for the "Filter" field. - public const int FilterFieldNumber = 4; - private uint filter_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint Filter { - get { return filter_; } - set { - filter_ = value; - } - } - - /// Field number for the "Message" field. - public const int MessageFieldNumber = 5; - private string message_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Message { - get { return message_; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ModuleId" field. - public const int ModuleIdFieldNumber = 6; - private uint moduleId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint ModuleId { - get { return moduleId_; } - set { - moduleId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as DebugLogResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(DebugLogResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Category != other.Category) return false; - if (FileName != other.FileName) return false; - if (LineNumber != other.LineNumber) return false; - if (Filter != other.Filter) return false; - if (Message != other.Message) return false; - if (ModuleId != other.ModuleId) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Category != 0) hash ^= Category.GetHashCode(); - if (FileName.Length != 0) hash ^= FileName.GetHashCode(); - if (LineNumber != 0) hash ^= LineNumber.GetHashCode(); - if (Filter != 0) hash ^= Filter.GetHashCode(); - if (Message.Length != 0) hash ^= Message.GetHashCode(); - if (ModuleId != 0) hash ^= ModuleId.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Category != 0) { - output.WriteRawTag(8); - output.WriteEnum((int) Category); - } - if (FileName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FileName); - } - if (LineNumber != 0) { - output.WriteRawTag(24); - output.WriteUInt32(LineNumber); - } - if (Filter != 0) { - output.WriteRawTag(32); - output.WriteUInt32(Filter); - } - if (Message.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Message); - } - if (ModuleId != 0) { - output.WriteRawTag(48); - output.WriteUInt32(ModuleId); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Category != 0) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); - } - if (FileName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); - } - if (LineNumber != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LineNumber); - } - if (Filter != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Filter); - } - if (Message.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); - } - if (ModuleId != 0) { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ModuleId); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(DebugLogResponse other) { - if (other == null) { - return; - } - if (other.Category != 0) { - Category = other.Category; - } - if (other.FileName.Length != 0) { - FileName = other.FileName; - } - if (other.LineNumber != 0) { - LineNumber = other.LineNumber; - } - if (other.Filter != 0) { - Filter = other.Filter; - } - if (other.Message.Length != 0) { - Message = other.Message; - } - if (other.ModuleId != 0) { - ModuleId = other.ModuleId; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - category_ = (global::Tango.PMR.Debugging.DebugLogCategory) input.ReadEnum(); - break; - } - case 18: { - FileName = input.ReadString(); - break; - } - case 24: { - LineNumber = input.ReadUInt32(); - break; - } - case 32: { - Filter = input.ReadUInt32(); - break; - } - case 42: { - Message = input.ReadString(); - break; - } - case 48: { - ModuleId = input.ReadUInt32(); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Debugging/StartDebugLogRequest.cs b/Software/Visual_Studio/Tango.PMR/Debugging/StartDebugLogRequest.cs new file mode 100644 index 000000000..a6f00805b --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Debugging/StartDebugLogRequest.cs @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartDebugLogRequest.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.Debugging { + + /// Holder for reflection information generated from StartDebugLogRequest.proto + public static partial class StartDebugLogRequestReflection { + + #region Descriptor + /// File descriptor for StartDebugLogRequest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartDebugLogRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTdGFydERlYnVnTG9nUmVxdWVzdC5wcm90bxITVGFuZ28uUE1SLkRlYnVn", + "Z2luZyIWChRTdGFydERlYnVnTG9nUmVxdWVzdEIfCh1jb20udHdpbmUudGFu", + "Z28ucG1yLmRlYnVnZ2luZ2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Debugging.StartDebugLogRequest), global::Tango.PMR.Debugging.StartDebugLogRequest.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StartDebugLogRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartDebugLogRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.Debugging.StartDebugLogRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartDebugLogRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartDebugLogRequest(StartDebugLogRequest other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartDebugLogRequest Clone() { + return new StartDebugLogRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StartDebugLogRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StartDebugLogRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StartDebugLogRequest other) { + if (other == null) { + return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Debugging/StartDebugLogResponse.cs b/Software/Visual_Studio/Tango.PMR/Debugging/StartDebugLogResponse.cs new file mode 100644 index 000000000..107442cd2 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Debugging/StartDebugLogResponse.cs @@ -0,0 +1,303 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StartDebugLogResponse.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.Debugging { + + /// Holder for reflection information generated from StartDebugLogResponse.proto + public static partial class StartDebugLogResponseReflection { + + #region Descriptor + /// File descriptor for StartDebugLogResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StartDebugLogResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTdGFydERlYnVnTG9nUmVzcG9uc2UucHJvdG8SE1RhbmdvLlBNUi5EZWJ1", + "Z2dpbmcaFkRlYnVnTG9nQ2F0ZWdvcnkucHJvdG8iqQEKFVN0YXJ0RGVidWdM", + "b2dSZXNwb25zZRI3CghDYXRlZ29yeRgBIAEoDjIlLlRhbmdvLlBNUi5EZWJ1", + "Z2dpbmcuRGVidWdMb2dDYXRlZ29yeRIQCghGaWxlTmFtZRgCIAEoCRISCgpM", + "aW5lTnVtYmVyGAMgASgNEg4KBkZpbHRlchgEIAEoDRIPCgdNZXNzYWdlGAUg", + "ASgJEhAKCE1vZHVsZUlkGAYgASgNQh8KHWNvbS50d2luZS50YW5nby5wbXIu", + "ZGVidWdnaW5nYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.Debugging.DebugLogCategoryReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Debugging.StartDebugLogResponse), global::Tango.PMR.Debugging.StartDebugLogResponse.Parser, new[]{ "Category", "FileName", "LineNumber", "Filter", "Message", "ModuleId" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StartDebugLogResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StartDebugLogResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.Debugging.StartDebugLogResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartDebugLogResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartDebugLogResponse(StartDebugLogResponse other) : this() { + category_ = other.category_; + fileName_ = other.fileName_; + lineNumber_ = other.lineNumber_; + filter_ = other.filter_; + message_ = other.message_; + moduleId_ = other.moduleId_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StartDebugLogResponse Clone() { + return new StartDebugLogResponse(this); + } + + /// Field number for the "Category" field. + public const int CategoryFieldNumber = 1; + private global::Tango.PMR.Debugging.DebugLogCategory category_ = 0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.Debugging.DebugLogCategory Category { + get { return category_; } + set { + category_ = value; + } + } + + /// Field number for the "FileName" field. + public const int FileNameFieldNumber = 2; + private string fileName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string FileName { + get { return fileName_; } + set { + fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "LineNumber" field. + public const int LineNumberFieldNumber = 3; + private uint lineNumber_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint LineNumber { + get { return lineNumber_; } + set { + lineNumber_ = value; + } + } + + /// Field number for the "Filter" field. + public const int FilterFieldNumber = 4; + private uint filter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Filter { + get { return filter_; } + set { + filter_ = value; + } + } + + /// Field number for the "Message" field. + public const int MessageFieldNumber = 5; + private string message_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Message { + get { return message_; } + set { + message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ModuleId" field. + public const int ModuleIdFieldNumber = 6; + private uint moduleId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ModuleId { + get { return moduleId_; } + set { + moduleId_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StartDebugLogResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StartDebugLogResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Category != other.Category) return false; + if (FileName != other.FileName) return false; + if (LineNumber != other.LineNumber) return false; + if (Filter != other.Filter) return false; + if (Message != other.Message) return false; + if (ModuleId != other.ModuleId) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Category != 0) hash ^= Category.GetHashCode(); + if (FileName.Length != 0) hash ^= FileName.GetHashCode(); + if (LineNumber != 0) hash ^= LineNumber.GetHashCode(); + if (Filter != 0) hash ^= Filter.GetHashCode(); + if (Message.Length != 0) hash ^= Message.GetHashCode(); + if (ModuleId != 0) hash ^= ModuleId.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Category != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) Category); + } + if (FileName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(FileName); + } + if (LineNumber != 0) { + output.WriteRawTag(24); + output.WriteUInt32(LineNumber); + } + if (Filter != 0) { + output.WriteRawTag(32); + output.WriteUInt32(Filter); + } + if (Message.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Message); + } + if (ModuleId != 0) { + output.WriteRawTag(48); + output.WriteUInt32(ModuleId); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Category != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); + } + if (FileName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); + } + if (LineNumber != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LineNumber); + } + if (Filter != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Filter); + } + if (Message.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); + } + if (ModuleId != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ModuleId); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StartDebugLogResponse other) { + if (other == null) { + return; + } + if (other.Category != 0) { + Category = other.Category; + } + if (other.FileName.Length != 0) { + FileName = other.FileName; + } + if (other.LineNumber != 0) { + LineNumber = other.LineNumber; + } + if (other.Filter != 0) { + Filter = other.Filter; + } + if (other.Message.Length != 0) { + Message = other.Message; + } + if (other.ModuleId != 0) { + ModuleId = other.ModuleId; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + category_ = (global::Tango.PMR.Debugging.DebugLogCategory) input.ReadEnum(); + break; + } + case 18: { + FileName = input.ReadString(); + break; + } + case 24: { + LineNumber = input.ReadUInt32(); + break; + } + case 32: { + Filter = input.ReadUInt32(); + break; + } + case 42: { + Message = input.ReadString(); + break; + } + case 48: { + ModuleId = input.ReadUInt32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Debugging/StopDebugLogRequest.cs b/Software/Visual_Studio/Tango.PMR/Debugging/StopDebugLogRequest.cs new file mode 100644 index 000000000..94ba8fafb --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Debugging/StopDebugLogRequest.cs @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StopDebugLogRequest.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.Debugging { + + /// Holder for reflection information generated from StopDebugLogRequest.proto + public static partial class StopDebugLogRequestReflection { + + #region Descriptor + /// File descriptor for StopDebugLogRequest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StopDebugLogRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChlTdG9wRGVidWdMb2dSZXF1ZXN0LnByb3RvEhNUYW5nby5QTVIuRGVidWdn", + "aW5nIhUKE1N0b3BEZWJ1Z0xvZ1JlcXVlc3RCHwodY29tLnR3aW5lLnRhbmdv", + "LnBtci5kZWJ1Z2dpbmdiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Debugging.StopDebugLogRequest), global::Tango.PMR.Debugging.StopDebugLogRequest.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StopDebugLogRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StopDebugLogRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.Debugging.StopDebugLogRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopDebugLogRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopDebugLogRequest(StopDebugLogRequest other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopDebugLogRequest Clone() { + return new StopDebugLogRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StopDebugLogRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StopDebugLogRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StopDebugLogRequest other) { + if (other == null) { + return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Debugging/StopDebugLogResponse.cs b/Software/Visual_Studio/Tango.PMR/Debugging/StopDebugLogResponse.cs new file mode 100644 index 000000000..a3b7adaab --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Debugging/StopDebugLogResponse.cs @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StopDebugLogResponse.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.Debugging { + + /// Holder for reflection information generated from StopDebugLogResponse.proto + public static partial class StopDebugLogResponseReflection { + + #region Descriptor + /// File descriptor for StopDebugLogResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static StopDebugLogResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTdG9wRGVidWdMb2dSZXNwb25zZS5wcm90bxITVGFuZ28uUE1SLkRlYnVn", + "Z2luZyIWChRTdG9wRGVidWdMb2dSZXNwb25zZUIfCh1jb20udHdpbmUudGFu", + "Z28ucG1yLmRlYnVnZ2luZ2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Debugging.StopDebugLogResponse), global::Tango.PMR.Debugging.StopDebugLogResponse.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class StopDebugLogResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StopDebugLogResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.Debugging.StopDebugLogResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopDebugLogResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopDebugLogResponse(StopDebugLogResponse other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StopDebugLogResponse Clone() { + return new StopDebugLogResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StopDebugLogResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StopDebugLogResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StopDebugLogResponse other) { + if (other == null) { + return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code -- cgit v1.3.1