#include <simgear/structure/SGWeakPtr.hxx>
#include <simgear/structure/SGWeakReferenced.hxx>
#include "RTIData.hxx"
+#include "HLATypes.hxx"
namespace simgear {
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.
/// 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);
virtual void _recomputeAlignmentImplementation();
private:
+ class _DataElementIndexVisitor;
+
std::string _name;
std::string _semantics;
unsigned _alignment;