]> git.mxchange.org Git - simgear.git/blobdiff - simgear/hla/HLADataType.hxx
Windows versionhelpers.h support.
[simgear.git] / simgear / hla / HLADataType.hxx
index e728fa8c6a6bc4d1bdbec5f9ec799a5042951186..ad52958b03502eec99bf789185155a4226e85a33 100644 (file)
@@ -22,6 +22,7 @@
 #include <simgear/structure/SGWeakPtr.hxx>
 #include <simgear/structure/SGWeakReferenced.hxx>
 #include "RTIData.hxx"
+#include "HLATypes.hxx"
 
 namespace simgear {
 
@@ -54,8 +55,6 @@ public:
     virtual const HLAArrayDataType* toArrayDataType() const;
     virtual const HLAEnumeratedDataType* toEnumeratedDataType() const;
     virtual const HLAFixedRecordDataType* toFixedRecordDataType() const;
-    /// deprecated
-    const HLAVariantRecordDataType* toVariantDataType() const { return toVariantRecordDataType(); }
     virtual const HLAVariantRecordDataType* toVariantRecordDataType() const;
 
     /// Recompute the alignment value of this data type.
@@ -65,6 +64,8 @@ public:
     /// required for propper feeing of memory.
     virtual void releaseDataTypeReferences();
 
+    bool getDataElementIndex(HLADataElementIndex& index, const std::string& path, std::string::size_type offset) const;
+
 protected:
     HLADataType(const std::string& name, unsigned alignment = 1);
     void setAlignment(unsigned alignment);
@@ -72,6 +73,8 @@ protected:
     virtual void _recomputeAlignmentImplementation();
 
 private:
+    class _DataElementIndexVisitor;
+
     std::string _name;
     std::string _semantics;
     unsigned _alignment;