OSDN Git Service

Infパケットに共通の抽象クラスを設定
[yubeshi/yubeshi.git] / Yubeshi / Ubx / Inf.cs
diff --git a/Yubeshi/Ubx/Inf.cs b/Yubeshi/Ubx/Inf.cs
new file mode 100755 (executable)
index 0000000..374bff5
--- /dev/null
@@ -0,0 +1,36 @@
+/*\r
+ *     Yubeshi GPS Parser\r
+ *\r
+ *     This software is distributed under a zlib-style license.\r
+ *     See license.txt for more information.\r
+ */\r
+\r
+using System;\r
+using System.Collections.Generic;\r
+using System.Text;\r
+\r
+namespace Yubeshi.Ubx\r
+{\r
+    public abstract class Inf : Packet\r
+    {\r
+        #region constructors\r
+\r
+        public Inf(byte[] sentence, int length)\r
+            : base(sentence, length)\r
+        {\r
+        }\r
+\r
+        #endregion\r
+\r
+        #region properties\r
+\r
+        public string Message\r
+        {\r
+            get\r
+            {\r
+                return Encoding.ASCII.GetString(Raw, 6, Raw.Length - 8);\r
+            }\r
+        }\r
+        #endregion\r
+    }\r
+}\r