LiveMetarProperties::~LiveMetarProperties()
{
+ _tiedProperties.Untie();
}
void LiveMetarProperties::update( double dt )
bool _enabled;
bool __enabled;
simgear::TiedPropertyList _tiedProperties;
- ; typedef std::vector<LiveMetarProperties_ptr> MetarPropertiesList;
+ typedef std::vector<LiveMetarProperties_ptr> MetarPropertiesList;
MetarPropertiesList _metarProperties;
};
{
}
+void TankProperties::unbind()
+{
+ _tiedProperties.Untie();
+}
+
double TankProperties::getContent_kg() const
{
return _content_kg;
return capacity > SGLimitsd::min() ? content / capacity : 0.0;
}
-
+void TankPropertiesList::unbind()
+{
+ for( const_iterator it = begin(); it != end(); ++it ) {
+ (*it)->unbind();
+ }
+ _tiedProperties.Untie();
+}
TankProperties( const TankProperties & );
const TankProperties & operator = ( const TankProperties & );
+ void unbind();
+
double getContent_kg() const;
void setContent_kg( double value );
double getTotalContent_m3() const;
double getTotalContent_norm() const;
+ void unbind();
+
private:
simgear::TiedPropertyList _tiedProperties;
};
void FDMShell::unbind()
{
if( _impl ) _impl->unbind();
+ _tankProperties.unbind();
}
void FDMShell::update(double dt)
delete current_panel;
delete ATC_mgr;
+ controls->unbind();
delete controls;
delete channel_options_list;