]> git.mxchange.org Git - simgear.git/commitdiff
hla: Add new header containing some enums.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 18 Feb 2012 16:13:45 +0000 (17:13 +0100)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 18 Feb 2012 16:13:45 +0000 (17:13 +0100)
simgear/hla/CMakeLists.txt
simgear/hla/HLADataType.hxx
simgear/hla/HLAObjectClass.hxx
simgear/hla/HLATypes.hxx [new file with mode: 0644]

index 02fea2980d91ce1b1ef899ecda3e1d183000dd15..722f1d56487aa7d3b09fbf33e24ad406be2f0d91 100644 (file)
@@ -22,6 +22,7 @@ set(HLA_HEADERS
     HLAOMTXmlVisitor.hxx
     HLAPropertyDataElement.hxx
     HLARawDataElement.hxx
+    HLATypes.hxx
     HLAVariantDataElement.hxx
     HLAVariantDataType.hxx
     HLAVariantRecordDataElement.hxx
index 7b20dafd1ad7c3d909a6e9fbebbae12394b0a58b..c792edd2c46ffe861b55437a93cda7a84f2fafa2 100644 (file)
@@ -34,13 +34,6 @@ class HLAEnumeratedDataType;
 class HLAFixedRecordDataType;
 class HLAVariantRecordDataType;
 
-enum HLAUpdateType {
-    HLAStaticUpdate,
-    HLAPeriodicUpdate,
-    HLAConditionalUpdate,
-    HLAUndefinedUpdate
-};
-
 class HLADataType : public SGWeakReferenced {
 public:
     virtual ~HLADataType();
index 240162230ec603b4ac5b2a7af21e2195c0f3a57d..68ffcc53031525538e0e9e76c35b793b72c97a72 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "HLADataType.hxx"
 #include "HLAObjectInstance.hxx"
+#include "HLATypes.hxx"
 
 namespace simgear {
 
diff --git a/simgear/hla/HLATypes.hxx b/simgear/hla/HLATypes.hxx
new file mode 100644 (file)
index 0000000..931a4aa
--- /dev/null
@@ -0,0 +1,43 @@
+// Copyright (C) 2009 - 2012  Mathias Froehlich - Mathias.Froehlich@web.de
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Library General Public
+// License as published by the Free Software Foundation; either
+// version 2 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Library General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+//
+
+#ifndef HLATypes_hxx
+#define HLATypes_hxx
+
+namespace simgear {
+
+enum HLASubscriptionType {
+    HLAUnsubscribed,
+    HLASubscribedActive,
+    HLASubscribedPassive
+};
+
+enum HLAPublicationType {
+    HLAUnpublished,
+    HLAPublished
+};
+
+enum HLAUpdateType {
+    HLAStaticUpdate,
+    HLAPeriodicUpdate,
+    HLAConditionalUpdate,
+    HLAUndefinedUpdate
+};
+
+} // namespace simgear
+
+#endif