0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / UTL / UTL.hxx
CommitLineData
42cf5bc1 1// Created on: 1997-11-21
2// Created by: Mister rmi
3// Copyright (c) 1997-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _UTL_HeaderFile
18#define _UTL_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_CString.hxx>
25#include <Storage_Error.hxx>
26#include <Storage_OpenMode.hxx>
42cf5bc1 27#include <Standard_Integer.hxx>
28class TCollection_ExtendedString;
29class Storage_BaseDriver;
30class Storage_Data;
31class OSD_Path;
32class OSD_FileIterator;
33class TCollection_AsciiString;
34class Standard_GUID;
35class Resource_Manager;
36
37
38
39class UTL
40{
41public:
42
43 DEFINE_STANDARD_ALLOC
44
45
46 Standard_EXPORT static TCollection_ExtendedString xgetenv (const Standard_CString aCString);
47
39c8dc70 48 Standard_EXPORT static Storage_Error OpenFile (const Handle(Storage_BaseDriver)& aFile,
49 const TCollection_ExtendedString& aName,
50 const Storage_OpenMode aMode);
42cf5bc1 51
52 Standard_EXPORT static void AddToUserInfo (const Handle(Storage_Data)& aData, const TCollection_ExtendedString& anInfo);
53
54 Standard_EXPORT static OSD_Path Path (const TCollection_ExtendedString& aFileName);
55
56 Standard_EXPORT static TCollection_ExtendedString Disk (const OSD_Path& aPath);
57
58 Standard_EXPORT static TCollection_ExtendedString Trek (const OSD_Path& aPath);
59
60 Standard_EXPORT static TCollection_ExtendedString Name (const OSD_Path& aPath);
61
62 Standard_EXPORT static TCollection_ExtendedString Extension (const OSD_Path& aPath);
63
64 Standard_EXPORT static OSD_FileIterator FileIterator (const OSD_Path& aPath, const TCollection_ExtendedString& aMask);
65
66 Standard_EXPORT static TCollection_ExtendedString Extension (const TCollection_ExtendedString& aFileName);
67
68 Standard_EXPORT static TCollection_ExtendedString LocalHost();
69
70 Standard_EXPORT static TCollection_ExtendedString ExtendedString (const TCollection_AsciiString& anAsciiString);
71
72 Standard_EXPORT static Standard_GUID GUID (const TCollection_ExtendedString& anXString);
73
74 Standard_EXPORT static Standard_Boolean Find (const Handle(Resource_Manager)& aResourceManager, const TCollection_ExtendedString& aResourceName);
75
76 Standard_EXPORT static TCollection_ExtendedString Value (const Handle(Resource_Manager)& aResourceManager, const TCollection_ExtendedString& aResourceName);
77
78 Standard_EXPORT static Standard_Integer IntegerValue (const TCollection_ExtendedString& anExtendedString);
79
80 Standard_EXPORT static Standard_CString CString (const TCollection_ExtendedString& anExtendedString);
81
82 Standard_EXPORT static Standard_Boolean IsReadOnly (const TCollection_ExtendedString& aFileName);
83
84
85
86
87protected:
88
89
90
91
92
93private:
94
95
96
97
98
99};
100
101
102
103
104
105
106
107#endif // _UTL_HeaderFile