X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fprops%2Fcondition.hxx;h=4341c2397e77bd5aa9768f679f980b2f5a0f68c7;hb=645cae184b7bbf3a578f142d874eff20765ba8eb;hp=f18e4b84b210191c7267d2c932ef7f30e509d10f;hpb=3ac5ff0cac4dfecc62e6deb440bb0aa309ff42c9;p=simgear.git diff --git a/simgear/props/condition.hxx b/simgear/props/condition.hxx index f18e4b84..4341c239 100644 --- a/simgear/props/condition.hxx +++ b/simgear/props/condition.hxx @@ -10,6 +10,7 @@ #ifndef __SG_CONDITION_HXX #define __SG_CONDITION_HXX +#include #include #include @@ -34,8 +35,11 @@ public: SGCondition (); virtual ~SGCondition (); virtual bool test () const = 0; + virtual void collectDependentProperties(std::set& props) const { } }; +typedef SGSharedPtr SGConditionRef; + /** * Base class for a conditional components. @@ -54,7 +58,7 @@ public: virtual const SGCondition * getCondition () const { return _condition; } virtual bool test () const; private: - SGSharedPtr _condition; + SGConditionRef _condition; };