This file is indexed.

/usr/include/oce/Units.hxx is in liboce-foundation-dev 0.18.2-2build1.

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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// 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_HeaderFile
#define _Units_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Standard_CString.hxx>
#include <Handle_Units_UnitsDictionary.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_Units_Quantity.hxx>
#include <Handle_Units_Lexicon.hxx>
#include <Handle_Units_Dimensions.hxx>
#include <Standard_Real.hxx>
class Units_UnitsDictionary;
class Units_Quantity;
class Units_Lexicon;
class Units_Dimensions;
class Units_Dimensions;
class Units_Unit;
class Units_UtsSequence;
class Units_UnitsSequence;
class Units_ShiftedUnit;
class Units_Token;
class Units_ShiftedToken;
class Units_TksSequence;
class Units_TokensSequence;
class Units_Quantity;
class Units_QtsSequence;
class Units_QuantitiesSequence;
class Units_UnitsDictionary;
class Units_UnitsSystem;
class Units_Explorer;
class Units_Sentence;
class Units_MathSentence;
class Units_UnitSentence;
class Units_Lexicon;
class Units_UnitsLexicon;
class Units_Measurement;
class Units_SequenceNodeOfUtsSequence;
class Units_SequenceNodeOfTksSequence;
class Units_SequenceNodeOfQtsSequence;


//! This  package provides all the  facilities  to create
//! and question a dictionary of  units,  and also  to
//! manipulate measurements which are real values with
//! units.
class Units 
{
public:

  DEFINE_STANDARD_ALLOC

  
  //! Defines the location of the file containing all the
  //! information useful in creating the dictionary of all
  //! the units known to the system.
  Standard_EXPORT static   void UnitsFile (const Standard_CString afile) ;
  
  //! Defines the location of the file containing the lexicon
  //! useful in manipulating composite units.
  Standard_EXPORT static   void LexiconFile (const Standard_CString afile) ;
  
  //! Returns a unique instance of the dictionary of units.
  //! If <amode> is True, then it forces the recomputation of
  //! the dictionary of units.
  Standard_EXPORT static   Handle(Units_UnitsDictionary) DictionaryOfUnits (const Standard_Boolean amode = Standard_False) ;
  
  //! Returns a unique quantity instance corresponding to <aquantity>.
  Standard_EXPORT static   Handle(Units_Quantity) Quantity (const Standard_CString aquantity) ;
  
  //! Returns the first quantity string founded from the unit <aUnit>.
  Standard_EXPORT static   Standard_CString FirstQuantity (const Standard_CString aunit) ;
  
  //! Returns a unique instance of the Units_Lexicon.
  //! If <amode> is True, it forces the recomputation of
  //! the dictionary of units, and by consequence the
  //! completion of the Units_Lexicon.
  Standard_EXPORT static   Handle(Units_Lexicon) LexiconUnits (const Standard_Boolean amode = Standard_True) ;
  
  //! Return a unique instance of LexiconFormula.
  Standard_EXPORT static   Handle(Units_Lexicon) LexiconFormula() ;
  
  //! Returns always the same instance of Dimensions.
  Standard_EXPORT static   Handle(Units_Dimensions) NullDimensions() ;
  
  //! Converts <avalue> expressed in <afirstunit> into the <asecondunit>.
  Standard_EXPORT static   Standard_Real Convert (const Standard_Real avalue, const Standard_CString afirstunit, const Standard_CString asecondunit) ;
  
  Standard_EXPORT static   Standard_Real ToSI (const Standard_Real aData, const Standard_CString aUnit) ;
  
  Standard_EXPORT static   Standard_Real ToSI (const Standard_Real aData, const Standard_CString aUnit, Handle(Units_Dimensions)& aDim) ;
  
  Standard_EXPORT static   Standard_Real FromSI (const Standard_Real aData, const Standard_CString aUnit) ;
  
  Standard_EXPORT static   Standard_Real FromSI (const Standard_Real aData, const Standard_CString aUnit, Handle(Units_Dimensions)& aDim) ;
  
  //! return the dimension associated to the Type
  Standard_EXPORT static   Handle(Units_Dimensions) Dimensions (const Standard_CString aType) ;




protected:





private:




friend class Units_Dimensions;
friend class Units_Unit;
friend class Units_UtsSequence;
friend class Units_UnitsSequence;
friend class Units_ShiftedUnit;
friend class Units_Token;
friend class Units_ShiftedToken;
friend class Units_TksSequence;
friend class Units_TokensSequence;
friend class Units_Quantity;
friend class Units_QtsSequence;
friend class Units_QuantitiesSequence;
friend class Units_UnitsDictionary;
friend class Units_UnitsSystem;
friend class Units_Explorer;
friend class Units_Sentence;
friend class Units_MathSentence;
friend class Units_UnitSentence;
friend class Units_Lexicon;
friend class Units_UnitsLexicon;
friend class Units_Measurement;
friend class Units_SequenceNodeOfUtsSequence;
friend class Units_SequenceNodeOfTksSequence;
friend class Units_SequenceNodeOfQtsSequence;

};







#endif // _Units_HeaderFile