From: Mathias Froehlich Date: Sat, 18 Feb 2012 16:13:45 +0000 (+0100) Subject: hla: Add new header containing some enums. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=63081c94a1e65d20b6e2680f2238f92c5be2bc76;p=simgear.git hla: Add new header containing some enums. --- diff --git a/simgear/hla/CMakeLists.txt b/simgear/hla/CMakeLists.txt index 02fea298..722f1d56 100644 --- a/simgear/hla/CMakeLists.txt +++ b/simgear/hla/CMakeLists.txt @@ -22,6 +22,7 @@ set(HLA_HEADERS HLAOMTXmlVisitor.hxx HLAPropertyDataElement.hxx HLARawDataElement.hxx + HLATypes.hxx HLAVariantDataElement.hxx HLAVariantDataType.hxx HLAVariantRecordDataElement.hxx diff --git a/simgear/hla/HLADataType.hxx b/simgear/hla/HLADataType.hxx index 7b20dafd..c792edd2 100644 --- a/simgear/hla/HLADataType.hxx +++ b/simgear/hla/HLADataType.hxx @@ -34,13 +34,6 @@ class HLAEnumeratedDataType; class HLAFixedRecordDataType; class HLAVariantRecordDataType; -enum HLAUpdateType { - HLAStaticUpdate, - HLAPeriodicUpdate, - HLAConditionalUpdate, - HLAUndefinedUpdate -}; - class HLADataType : public SGWeakReferenced { public: virtual ~HLADataType(); diff --git a/simgear/hla/HLAObjectClass.hxx b/simgear/hla/HLAObjectClass.hxx index 24016223..68ffcc53 100644 --- a/simgear/hla/HLAObjectClass.hxx +++ b/simgear/hla/HLAObjectClass.hxx @@ -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 index 00000000..931a4aa0 --- /dev/null +++ b/simgear/hla/HLATypes.hxx @@ -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