]> git.mxchange.org Git - simgear.git/blobdiff - simgear/hla/HLAInteractionClass.hxx
First working version of DOM like Canvas event handling
[simgear.git] / simgear / hla / HLAInteractionClass.hxx
index 4e1d15315b13108d95b1407299d0ff5ea7619b8c..6b614912c2800e3475ce820b7f1b5188aa27b0b6 100644 (file)
@@ -41,6 +41,9 @@ public:
 
     const std::string& getName() const;
 
+    /// return the federate this interaction class belongs to
+    const SGWeakPtr<HLAFederate>& getFederate() const;
+
     HLASubscriptionType getSubscriptionType() const;
     void setSubscriptionType(HLASubscriptionType subscriptionType);
 
@@ -56,8 +59,9 @@ public:
     const HLADataType* getParameterDataType(unsigned index) const;
     void setParameterDataType(unsigned index, const SGSharedPtr<const HLADataType>& dataType);
 
-    HLADataElement::IndexPathPair getIndexPathPair(const HLADataElement::StringPathPair& stringPathPair) const;
-    HLADataElement::IndexPathPair getIndexPathPair(const std::string& path) const;
+    /// Get the attribute data element index for the given path, return true if successful
+    bool getDataElementIndex(HLADataElementIndex& dataElementIndex, const std::string& path) const;
+    HLADataElementIndex getDataElementIndex(const std::string& path) const;
 
     virtual bool subscribe();
     virtual bool unsubscribe();