]> git.mxchange.org Git - simgear.git/blobdiff - simgear/hla/HLABasicDataElement.cxx
math: Move lerp function into SGMisc.
[simgear.git] / simgear / hla / HLABasicDataElement.cxx
index 69401104cb6c88c0137ea556ffe752e3abc18390..c4b985b91161ee03cda4c51664c82b8d20dee83b 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "HLABasicDataElement.hxx"
 
+#include "HLADataElementVisitor.hxx"
 #include "HLADataTypeVisitor.hxx"
 
 namespace simgear {
@@ -30,6 +31,18 @@ HLABasicDataElement::~HLABasicDataElement()
 {
 }
 
+void
+HLABasicDataElement::accept(HLADataElementVisitor& visitor)
+{
+    visitor.apply(*this);
+}
+
+void
+HLABasicDataElement::accept(HLAConstDataElementVisitor& visitor) const
+{
+    visitor.apply(*this);
+}
+
 const HLABasicDataType*
 HLABasicDataElement::getDataType() const
 {
@@ -112,6 +125,7 @@ void
 HLA##type##DataElement::setValue(ctype value)                                                     \
 {                                                                                                 \
     _value = value;                                                                               \
+    setDirty(true);                                                                               \
 }
 
 IMPLEMENT_TYPED_HLA_BASIC_DATA_ELEMENT(Char, char);