// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Units_ShiftedUnit_HeaderFile #define _Units_ShiftedUnit_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Units_ShiftedUnit_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Units_Unit_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Handle_Units_Quantity_HeaderFile #include #endif #ifndef _Handle_Units_Token_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class Units_Quantity; class Units_Token; //! This class is useful to describe units with a
//! shifted origin in relation to another unit. A well
//! known example is the Celsius degrees in relation
//! to Kelvin degrees. The shift of the Celsius origin
//! is 273.15 Kelvin degrees.
class Units_ShiftedUnit : public Units_Unit { public: //! Creates and returns a shifted unit. is the
//! name of the unit, is the usual abbreviation
//! of the unit, is the value in relation to the
//! International System of Units, and is the gap
//! in relation to another unit.
//!
//! For example Celcius dregee of temperature is an
//! instance of ShiftedUnit with equal to 1. and
//! equal to 273.15.
Standard_EXPORT Units_ShiftedUnit(const Standard_CString aname,const Standard_CString asymbol,const Standard_Real avalue,const Standard_Real amove,const Handle(Units_Quantity)& aquantity); //! Creates and returns a unit. is the name of
//! the unit, is the usual abbreviation of the
//! unit.
Standard_EXPORT Units_ShiftedUnit(const Standard_CString aname,const Standard_CString asymbol); //! Creates and returns a unit. is the name of
//! the unit.
Standard_EXPORT Units_ShiftedUnit(const Standard_CString aname); //! Sets the field to
Standard_EXPORT void Move(const Standard_Real amove) ; //! Returns the shifted value .
Standard_EXPORT Standard_Real Move() const; //! This redefined method returns a ShiftedToken object.
Standard_EXPORT virtual Handle_Units_Token Token() const; Standard_EXPORT virtual void Dump(const Standard_Integer ashift,const Standard_Integer alevel) const; DEFINE_STANDARD_RTTI(Units_ShiftedUnit) protected: private: Standard_Real themove; }; // other Inline functions and methods (like "C++: function call" methods) #endif