X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FTankProperties.hxx;h=838e7dbc3f8447c5ab001a7153f108f1f4b38266;hb=7041ed907891f7be0205cafe13b218f9f2767efa;hp=27a2e9f40f11835655ec0b66d0320451f6033922;hpb=e3fe296eaa57e9bb79e9713da2a817b34e5a4040;p=flightgear.git diff --git a/src/FDM/TankProperties.hxx b/src/FDM/TankProperties.hxx index 27a2e9f40..838e7dbc3 100644 --- a/src/FDM/TankProperties.hxx +++ b/src/FDM/TankProperties.hxx @@ -34,6 +34,9 @@ public: TankProperties( const TankProperties & ); const TankProperties & operator = ( const TankProperties & ); + void bind(); + void unbind(); + double getContent_kg() const; void setContent_kg( double value ); @@ -64,28 +67,43 @@ public: double getCapacity_gal_imp() const; void setCapacity_gal_imp( double value ); + double getUnusable_m3() const; + void setUnusable_m3( double value ); + + double getUnusable_gal_us() const; + void setUnusable_gal_us( double value ); + + double getUnusable_gal_imp() const; + void setUnusable_gal_imp( double value ); + double getContent_norm() const; void setContent_norm( double value ); + bool getEmpty() const; + protected: simgear::TiedPropertyList _tiedProperties; double _content_kg; double _density_kgpm3; double _capacity_m3; + double _unusable_m3; }; class TankPropertiesList : std::vector > { 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; - + private: simgear::TiedPropertyList _tiedProperties; };