_unusable_m3(0.0)
{
_tiedProperties.setRoot( rootNode );
+}
+
+void TankProperties::bind()
+{
_tiedProperties.Tie("level-kg", this, &TankProperties::getContent_kg, &TankProperties::setContent_kg );
_tiedProperties.Tie("density-kgpm3", this, &TankProperties::getDensity_kgpm3, &TankProperties::setDensity_kgpm3 );
_tiedProperties.Tie("capacity-m3", this, &TankProperties::getCapacity_m3, &TankProperties::setCapacity_m3 );
return capacity > SGLimitsd::min() ? content / capacity : 0.0;
}
+void TankPropertiesList::bind()
+{
+ for( const_iterator it = begin(); it != end(); ++it ) {
+ (*it)->bind();
+ }
+}
+
void TankPropertiesList::unbind()
{
for( const_iterator it = begin(); it != end(); ++it ) {
TankProperties( const TankProperties & );
const TankProperties & operator = ( const TankProperties & );
+ void bind();
void unbind();
double getContent_kg() const;
public:
TankPropertiesList( SGPropertyNode_ptr rootNode );
+ void bind();
+ void unbind();
+
double getTotalContent_lbs() const;
double getTotalContent_kg() const;
double getTotalContent_gal_us() const;
double getTotalContent_gal_imp() const;
double getTotalContent_m3() const;
double getTotalContent_norm() const;
-
- void unbind();
private:
simgear::TiedPropertyList _tiedProperties;