]> git.mxchange.org Git - simgear.git/blobdiff - simgear/hla/HLADataType.cxx
hla: Remove deprecated methods from HLAObjectClass
[simgear.git] / simgear / hla / HLADataType.cxx
index b22fb218be97f16a72140e0ea6d7b31696ac5b52..ec3359338c81e3cc5f36db6e75ed9b5cc3beccdc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2009 - 2010  Mathias Froehlich - Mathias.Froehlich@web.de
+// 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
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 
+#ifdef HAVE_CONFIG_H
+#  include <simgear_config.h>
+#endif
+
+#include <simgear/compiler.h>
+
 #include "HLADataType.hxx"
 
 #include "HLADataElement.hxx"
@@ -39,12 +45,6 @@ HLADataType::accept(HLADataTypeVisitor& visitor) const
     visitor.apply(*this);
 }
 
-const HLADataTypeReference*
-HLADataType::toDataTypeReference() const
-{
-    return 0;
-}
-
 const HLABasicDataType*
 HLADataType::toBasicDataType() const
 {
@@ -69,12 +69,25 @@ HLADataType::toFixedRecordDataType() const
     return 0;
 }
 
-const HLAVariantDataType*
-HLADataType::toVariantDataType() const
+const HLAVariantRecordDataType*
+HLADataType::toVariantRecordDataType() const
 {
     return 0;
 }
 
+bool
+HLADataType::recomputeAlignment()
+{
+    unsigned alignment = getAlignment();
+    _recomputeAlignmentImplementation();
+    return alignment != getAlignment();
+}
+
+void
+HLADataType::releaseDataTypeReferences()
+{
+}
+
 void
 HLADataType::setAlignment(unsigned alignment)
 {
@@ -85,20 +98,9 @@ HLADataType::setAlignment(unsigned alignment)
         _alignment = alignment;
 }
 
-HLADataTypeReference::~HLADataTypeReference()
-{
-}
-
 void
-HLADataTypeReference::accept(HLADataTypeVisitor& visitor) const
-{
-    visitor.apply(*this);
-}
-
-const HLADataTypeReference*
-HLADataTypeReference::toDataTypeReference() const
+HLADataType::_recomputeAlignmentImplementation()
 {
-    return this;
 }
 
 }