1 // Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #ifndef UNV164_Structure_HeaderFile
24 #define UNV164_Structure_HeaderFile
26 // Universal Dataset Number: 164
30 // Revision Date: 19-AUG-1987
31 // -----------------------------------------------------------------------
33 // Record 1: FORMAT(I10,20A1,I10)
34 // Field 1 -- units code
35 // = 1 - SI: Meter (newton)
36 // = 2 - BG: Foot (pound f)
37 // = 3 - MG: Meter (kilogram f)
38 // = 4 - BA: Foot (poundal)
39 // = 5 - MM: mm (milli newton)
40 // = 6 - CM: cm (centi newton)
41 // = 7 - IN: Inch (pound f)
42 // = 8 - GM: mm (kilogram f)
43 // = 9 - US: USER_DEFINED
44 // = 10- MN: mm (newton)
45 // Field 2 -- units description (used for
46 // documentation only)
47 // Field 3 -- temperature mode
50 // Record 2: FORMAT(3D25.17)
51 // Unit factors for converting universal file units to SI.
52 // To convert from universal file units to SI divide by
53 // the appropriate factor listed below.
56 // Field 3 -- temperature
57 // Field 4 -- temperature offset
64 // 3.28083989501312334D+00 2.24808943099710480D-01 1.79999999999999999D+00
65 // 4.59670000000000002D+02
68 #include "SMESH_DriverUNV.hxx"
74 enum { LENGTH_FACTOR, FORCE_FACTOR, TEMP_FACTOR, TEMP_OFFSET };
76 struct MESHDRIVERUNV_EXPORT TRecord
79 std::string units_description;
85 MESHDRIVERUNV_EXPORT void
86 Read(std::ifstream& in_stream, TRecord& theUnitsRecord);
88 MESHDRIVERUNV_EXPORT void
89 Write(std::ofstream& out_stream );