]> git.mxchange.org Git - simgear.git/blobdiff - simgear/hla/HLADataType.hxx
hla: Use HLADataElementIndices for HLAInteractionClass.
[simgear.git] / simgear / hla / HLADataType.hxx
index 6e15aade4c7e3daf2f86cb53bde0b8ee545b3621..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 {
 
@@ -63,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);
@@ -70,6 +73,8 @@ protected:
     virtual void _recomputeAlignmentImplementation();
 
 private:
+    class _DataElementIndexVisitor;
+
     std::string _name;
     std::string _semantics;
     unsigned _alignment;