diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/Debugging')
3 files changed, 483 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogCategory.cs b/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogCategory.cs new file mode 100644 index 000000000..e142d959a --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogCategory.cs @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DebugLogCategory.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 { + + /// <summary>Holder for reflection information generated from DebugLogCategory.proto</summary> + public static partial class DebugLogCategoryReflection { + + #region Descriptor + /// <summary>File descriptor for DebugLogCategory.proto</summary> + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DebugLogCategoryReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZEZWJ1Z0xvZ0NhdGVnb3J5LnByb3RvEhNUYW5nby5QTVIuRGVidWdnaW5n", + "Kk0KEERlYnVnTG9nQ2F0ZWdvcnkSCAoESW5mbxAAEgsKB1dhcm5pbmcQARIJ", + "CgVFcnJvchACEgwKCENyaXRpY2FsEAMSCQoFRGVidWcQBEIfCh1jb20udHdp", + "bmUudGFuZ28ucG1yLmRlYnVnZ2luZ2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.Debugging.DebugLogCategory), }, null)); + } + #endregion + + } + #region Enums + public enum DebugLogCategory { + [pbr::OriginalName("Info")] Info = 0, + [pbr::OriginalName("Warning")] Warning = 1, + [pbr::OriginalName("Error")] Error = 2, + [pbr::OriginalName("Critical")] Critical = 3, + [pbr::OriginalName("Debug")] Debug = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogRequest.cs b/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogRequest.cs new file mode 100644 index 000000000..a64d091d7 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogRequest.cs @@ -0,0 +1,131 @@ +// 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 { + + /// <summary>Holder for reflection information generated from DebugLogRequest.proto</summary> + public static partial class DebugLogRequestReflection { + + #region Descriptor + /// <summary>File descriptor for DebugLogRequest.proto</summary> + 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<DebugLogRequest> { + private static readonly pb::MessageParser<DebugLogRequest> _parser = new pb::MessageParser<DebugLogRequest>(() => new DebugLogRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<DebugLogRequest> 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 new file mode 100644 index 000000000..de812f536 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Debugging/DebugLogResponse.cs @@ -0,0 +1,303 @@ +// 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 { + + /// <summary>Holder for reflection information generated from DebugLogResponse.proto</summary> + public static partial class DebugLogResponseReflection { + + #region Descriptor + /// <summary>File descriptor for DebugLogResponse.proto</summary> + 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", + "AyABKAkSDgoGRmlsdGVyGAQgASgNEg8KB01lc3NhZ2UYBSABKAkSEAoITW9k", + "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<DebugLogResponse> { + private static readonly pb::MessageParser<DebugLogResponse> _parser = new pb::MessageParser<DebugLogResponse>(() => new DebugLogResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser<DebugLogResponse> 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); + } + + /// <summary>Field number for the "Category" field.</summary> + 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; + } + } + + /// <summary>Field number for the "FileName" field.</summary> + 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"); + } + } + + /// <summary>Field number for the "LineNumber" field.</summary> + public const int LineNumberFieldNumber = 3; + private string lineNumber_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string LineNumber { + get { return lineNumber_; } + set { + lineNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// <summary>Field number for the "Filter" field.</summary> + public const int FilterFieldNumber = 4; + private uint filter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Filter { + get { return filter_; } + set { + filter_ = value; + } + } + + /// <summary>Field number for the "Message" field.</summary> + 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"); + } + } + + /// <summary>Field number for the "ModuleId" field.</summary> + 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.Length != 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.Length != 0) { + output.WriteRawTag(26); + output.WriteString(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.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(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.Length != 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 26: { + LineNumber = input.ReadString(); + break; + } + case 32: { + Filter = input.ReadUInt32(); + break; + } + case 42: { + Message = input.ReadString(); + break; + } + case 48: { + ModuleId = input.ReadUInt32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code |
