// 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_Unit_HeaderFile #define _Units_Unit_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Units_Unit_HeaderFile #include #endif #ifndef _Handle_TCollection_HAsciiString_HeaderFile #include #endif #ifndef _Handle_TColStd_HSequenceOfHAsciiString_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Handle_Units_Quantity_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _TCollection_AsciiString_HeaderFile #include #endif #ifndef _Handle_Units_Token_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif class TCollection_HAsciiString; class TColStd_HSequenceOfHAsciiString; class Units_Quantity; class Units_Token; //! This class defines an elementary word contained in
//! a physical quantity.
class Units_Unit : public MMgt_TShared { public: //! Creates and returns a unit. is the name of
//! the unit, is the usual abbreviation of the
//! unit, and is the value in relation to the
//! International System of Units.
Standard_EXPORT Units_Unit(const Standard_CString aname,const Standard_CString asymbol,const Standard_Real avalue,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_Unit(const Standard_CString aname,const Standard_CString asymbol); //! Creates and returns a unit. is the name of
//! the unit.
Standard_EXPORT Units_Unit(const Standard_CString aname); //! Returns the name of the unit
TCollection_AsciiString Name() const; //! Adds a new symbol attached to .
Standard_EXPORT void Symbol(const Standard_CString asymbol) ; //! Returns the value in relation with the International
//! System of Units.
Standard_Real Value() const; //! Returns contained in .
Handle_Units_Quantity Quantity() const; //! Returns the sequence of symbols
Handle_TColStd_HSequenceOfHAsciiString SymbolsSequence() const; //! Sets the value to .
void Value(const Standard_Real avalue) ; //! Sets the physical Quantity to .
void Quantity(const Handle(Units_Quantity)& aquantity) ; //! Starting with , returns a new Token object.
Standard_EXPORT virtual Handle_Units_Token Token() const; //! Compares all the symbols linked within with the
//! name of , and returns True if there is one
//! symbol equal to the name, False otherwise.
Standard_EXPORT Standard_Boolean IsEqual(const Standard_CString astring) const; //! Useful for debugging
Standard_EXPORT virtual void Dump(const Standard_Integer ashift,const Standard_Integer alevel) const; DEFINE_STANDARD_RTTI(Units_Unit) protected: Handle_TColStd_HSequenceOfHAsciiString thesymbolssequence; Standard_Real thevalue; private: Handle_TCollection_HAsciiString thename; Handle_Units_Quantity thequantity; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif