/usr/include/oce/Units_UnitsDictionary.hxx is in liboce-foundation-dev 0.15-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | // 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_UnitsDictionary_HeaderFile
#define _Units_UnitsDictionary_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Units_UnitsDictionary_HeaderFile
#include <Handle_Units_UnitsDictionary.hxx>
#endif
#ifndef _Handle_TCollection_HAsciiString_HeaderFile
#include <Handle_TCollection_HAsciiString.hxx>
#endif
#ifndef _Standard_Time_HeaderFile
#include <Standard_Time.hxx>
#endif
#ifndef _Handle_Units_QuantitiesSequence_HeaderFile
#include <Handle_Units_QuantitiesSequence.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_Units_Dimensions_HeaderFile
#include <Handle_Units_Dimensions.hxx>
#endif
class TCollection_HAsciiString;
class Units_QuantitiesSequence;
class TCollection_AsciiString;
class Units_Dimensions;
//! This class creates a dictionary of all the units <br>
//! you want to know. <br>
class Units_UnitsDictionary : public MMgt_TShared {
public:
//! Returns an empty instance of UnitsDictionary. <br>
Standard_EXPORT Units_UnitsDictionary();
//! Returns a UnitsDictionary object which contains the <br>
//! sequence of all the units you want to consider, <br>
//! physical quantity by physical quantity. <br>
Standard_EXPORT void Creates(const Standard_CString afilename) ;
//! Returns the head of the sequence of physical <br>
//! quantities. <br>
Handle_Units_QuantitiesSequence Sequence() const;
//! Returns true if there has been no modification of the <br>
//! file Units.dat since the creation of the dictionary <br>
//! object, false otherwise. <br>
Standard_EXPORT Standard_Boolean UpToDate() const;
//! Returns for <aquantity> the active unit. <br>
Standard_EXPORT TCollection_AsciiString ActiveUnit(const Standard_CString aquantity) const;
//! Dumps only the sequence of quantities without the <br>
//! units if <alevel> is equal to zero, and for each <br>
//! quantity all the units stored if <alevel> is equal to <br>
//! one. <br>
void Dump(const Standard_Integer alevel) const;
//! Dumps for a designated physical dimensions <br>
//! <adimensions> all the previously stored units. <br>
void Dump(const Handle(Units_Dimensions)& adimensions) const;
DEFINE_STANDARD_RTTI(Units_UnitsDictionary)
protected:
private:
Handle_TCollection_HAsciiString thefilename;
Standard_Time thetime;
Handle_Units_QuantitiesSequence thequantitiessequence;
};
#include <Units_UnitsDictionary.lxx>
// other Inline functions and methods (like "C++: function call" methods)
#endif
|