aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/MachineStatus
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-25 14:42:26 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-05-25 14:42:26 +0300
commit12e1d8aa9466d6777d7591ebc59e7f968804c78e (patch)
tree43e133ef0dd8fc230c3e4c3c1814f6acfc58e5fd /Software/Visual_Studio/Tango.PMR/MachineStatus
parenta7d1b350a7e6789942bd755f4a8dd48fb15a1a0a (diff)
downloadTango-12e1d8aa9466d6777d7591ebc59e7f968804c78e.tar.gz
Tango-12e1d8aa9466d6777d7591ebc59e7f968804c78e.zip
Implemented spool presence.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/MachineStatus')
-rw-r--r--Software/Visual_Studio/Tango.PMR/MachineStatus/MachineStatus.cs46
-rw-r--r--Software/Visual_Studio/Tango.PMR/MachineStatus/SpoolState.cs45
2 files changed, 83 insertions, 8 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineStatus.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineStatus.cs
index a077f2207..dc2713128 100644
--- a/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineStatus.cs
+++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/MachineStatus.cs
@@ -23,16 +23,18 @@ namespace Tango.PMR.MachineStatus {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChNNYWNoaW5lU3RhdHVzLnByb3RvEhdUYW5nby5QTVIuTWFjaGluZVN0YXR1",
- "cxoSTWFjaGluZVN0YXRlLnByb3RvGhJJRFNQYWNrTGV2ZWwucHJvdG8ioAEK",
- "DU1hY2hpbmVTdGF0dXMSNAoFU3RhdGUYASABKA4yJS5UYW5nby5QTVIuTWFj",
- "aGluZVN0YXR1cy5NYWNoaW5lU3RhdGUSPQoOSURTUGFja3NMZXZlbHMYAiAD",
- "KAsyJS5UYW5nby5QTVIuTWFjaGluZVN0YXR1cy5JRFNQYWNrTGV2ZWwSGgoS",
- "T3ZlcmFsbFRlbXBlcmF0dXJlGAMgASgBQiMKIWNvbS50d2luZS50YW5nby5w",
- "bXIubWFjaGluZXN0YXR1c2IGcHJvdG8z"));
+ "cxoSTWFjaGluZVN0YXRlLnByb3RvGhJJRFNQYWNrTGV2ZWwucHJvdG8aEFNw",
+ "b29sU3RhdGUucHJvdG8i2QEKDU1hY2hpbmVTdGF0dXMSNAoFU3RhdGUYASAB",
+ "KA4yJS5UYW5nby5QTVIuTWFjaGluZVN0YXR1cy5NYWNoaW5lU3RhdGUSPQoO",
+ "SURTUGFja3NMZXZlbHMYAiADKAsyJS5UYW5nby5QTVIuTWFjaGluZVN0YXR1",
+ "cy5JRFNQYWNrTGV2ZWwSGgoST3ZlcmFsbFRlbXBlcmF0dXJlGAMgASgBEjcK",
+ "ClNwb29sU3RhdGUYBCABKA4yIy5UYW5nby5QTVIuTWFjaGluZVN0YXR1cy5T",
+ "cG9vbFN0YXRlQiMKIWNvbS50d2luZS50YW5nby5wbXIubWFjaGluZXN0YXR1",
+ "c2IGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { global::Tango.PMR.MachineStatus.MachineStateReflection.Descriptor, global::Tango.PMR.MachineStatus.IDSPackLevelReflection.Descriptor, },
+ new pbr::FileDescriptor[] { global::Tango.PMR.MachineStatus.MachineStateReflection.Descriptor, global::Tango.PMR.MachineStatus.IDSPackLevelReflection.Descriptor, global::Tango.PMR.MachineStatus.SpoolStateReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.MachineStatus), global::Tango.PMR.MachineStatus.MachineStatus.Parser, new[]{ "State", "IDSPacksLevels", "OverallTemperature" }, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.MachineStatus.MachineStatus), global::Tango.PMR.MachineStatus.MachineStatus.Parser, new[]{ "State", "IDSPacksLevels", "OverallTemperature", "SpoolState" }, null, null, null)
}));
}
#endregion
@@ -66,6 +68,7 @@ namespace Tango.PMR.MachineStatus {
state_ = other.state_;
iDSPacksLevels_ = other.iDSPacksLevels_.Clone();
overallTemperature_ = other.overallTemperature_;
+ spoolState_ = other.spoolState_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -105,6 +108,17 @@ namespace Tango.PMR.MachineStatus {
}
}
+ /// <summary>Field number for the "SpoolState" field.</summary>
+ public const int SpoolStateFieldNumber = 4;
+ private global::Tango.PMR.MachineStatus.SpoolState spoolState_ = 0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public global::Tango.PMR.MachineStatus.SpoolState SpoolState {
+ get { return spoolState_; }
+ set {
+ spoolState_ = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as MachineStatus);
@@ -121,6 +135,7 @@ namespace Tango.PMR.MachineStatus {
if (State != other.State) return false;
if(!iDSPacksLevels_.Equals(other.iDSPacksLevels_)) return false;
if (OverallTemperature != other.OverallTemperature) return false;
+ if (SpoolState != other.SpoolState) return false;
return true;
}
@@ -130,6 +145,7 @@ namespace Tango.PMR.MachineStatus {
if (State != 0) hash ^= State.GetHashCode();
hash ^= iDSPacksLevels_.GetHashCode();
if (OverallTemperature != 0D) hash ^= OverallTemperature.GetHashCode();
+ if (SpoolState != 0) hash ^= SpoolState.GetHashCode();
return hash;
}
@@ -149,6 +165,10 @@ namespace Tango.PMR.MachineStatus {
output.WriteRawTag(25);
output.WriteDouble(OverallTemperature);
}
+ if (SpoolState != 0) {
+ output.WriteRawTag(32);
+ output.WriteEnum((int) SpoolState);
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -161,6 +181,9 @@ namespace Tango.PMR.MachineStatus {
if (OverallTemperature != 0D) {
size += 1 + 8;
}
+ if (SpoolState != 0) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SpoolState);
+ }
return size;
}
@@ -176,6 +199,9 @@ namespace Tango.PMR.MachineStatus {
if (other.OverallTemperature != 0D) {
OverallTemperature = other.OverallTemperature;
}
+ if (other.SpoolState != 0) {
+ SpoolState = other.SpoolState;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -198,6 +224,10 @@ namespace Tango.PMR.MachineStatus {
OverallTemperature = input.ReadDouble();
break;
}
+ case 32: {
+ spoolState_ = (global::Tango.PMR.MachineStatus.SpoolState) input.ReadEnum();
+ break;
+ }
}
}
}
diff --git a/Software/Visual_Studio/Tango.PMR/MachineStatus/SpoolState.cs b/Software/Visual_Studio/Tango.PMR/MachineStatus/SpoolState.cs
new file mode 100644
index 000000000..cd1b5c48c
--- /dev/null
+++ b/Software/Visual_Studio/Tango.PMR/MachineStatus/SpoolState.cs
@@ -0,0 +1,45 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: SpoolState.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.MachineStatus {
+
+ /// <summary>Holder for reflection information generated from SpoolState.proto</summary>
+ public static partial class SpoolStateReflection {
+
+ #region Descriptor
+ /// <summary>File descriptor for SpoolState.proto</summary>
+ public static pbr::FileDescriptor Descriptor {
+ get { return descriptor; }
+ }
+ private static pbr::FileDescriptor descriptor;
+
+ static SpoolStateReflection() {
+ byte[] descriptorData = global::System.Convert.FromBase64String(
+ string.Concat(
+ "ChBTcG9vbFN0YXRlLnByb3RvEhdUYW5nby5QTVIuTWFjaGluZVN0YXR1cyol",
+ "CgpTcG9vbFN0YXRlEgoKBkFic2VudBAAEgsKB1ByZXNlbnQQAUIjCiFjb20u",
+ "dHdpbmUudGFuZ28ucG1yLm1hY2hpbmVzdGF0dXNiBnByb3RvMw=="));
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
+ new pbr::FileDescriptor[] { },
+ new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.MachineStatus.SpoolState), }, null));
+ }
+ #endregion
+
+ }
+ #region Enums
+ public enum SpoolState {
+ [pbr::OriginalName("Absent")] Absent = 0,
+ [pbr::OriginalName("Present")] Present = 1,
+ }
+
+ #endregion
+
+}
+
+#endregion Designer generated code