File indexing completed on 2025-01-18 10:05:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _UTL_HeaderFile
0018 #define _UTL_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_CString.hxx>
0025 #include <Storage_Error.hxx>
0026 #include <Storage_OpenMode.hxx>
0027 #include <Standard_Integer.hxx>
0028 class TCollection_ExtendedString;
0029 class Storage_BaseDriver;
0030 class Storage_Data;
0031 class OSD_Path;
0032 class OSD_FileIterator;
0033 class TCollection_AsciiString;
0034 class Standard_GUID;
0035 class Resource_Manager;
0036
0037
0038
0039 class UTL
0040 {
0041 public:
0042
0043 DEFINE_STANDARD_ALLOC
0044
0045
0046 Standard_EXPORT static TCollection_ExtendedString xgetenv (const Standard_CString aCString);
0047
0048 Standard_EXPORT static Storage_Error OpenFile (const Handle(Storage_BaseDriver)& aFile,
0049 const TCollection_ExtendedString& aName,
0050 const Storage_OpenMode aMode);
0051
0052 Standard_EXPORT static void AddToUserInfo (const Handle(Storage_Data)& aData, const TCollection_ExtendedString& anInfo);
0053
0054 Standard_EXPORT static OSD_Path Path (const TCollection_ExtendedString& aFileName);
0055
0056 Standard_EXPORT static TCollection_ExtendedString Disk (const OSD_Path& aPath);
0057
0058 Standard_EXPORT static TCollection_ExtendedString Trek (const OSD_Path& aPath);
0059
0060 Standard_EXPORT static TCollection_ExtendedString Name (const OSD_Path& aPath);
0061
0062 Standard_EXPORT static TCollection_ExtendedString Extension (const OSD_Path& aPath);
0063
0064 Standard_EXPORT static OSD_FileIterator FileIterator (const OSD_Path& aPath, const TCollection_ExtendedString& aMask);
0065
0066 Standard_EXPORT static TCollection_ExtendedString Extension (const TCollection_ExtendedString& aFileName);
0067
0068 Standard_EXPORT static TCollection_ExtendedString LocalHost();
0069
0070 Standard_EXPORT static TCollection_ExtendedString ExtendedString (const TCollection_AsciiString& anAsciiString);
0071
0072 Standard_EXPORT static Standard_GUID GUID (const TCollection_ExtendedString& anXString);
0073
0074 Standard_EXPORT static Standard_Boolean Find (const Handle(Resource_Manager)& aResourceManager, const TCollection_ExtendedString& aResourceName);
0075
0076 Standard_EXPORT static TCollection_ExtendedString Value (const Handle(Resource_Manager)& aResourceManager, const TCollection_ExtendedString& aResourceName);
0077
0078 Standard_EXPORT static Standard_Integer IntegerValue (const TCollection_ExtendedString& anExtendedString);
0079
0080 Standard_EXPORT static Standard_CString CString (const TCollection_ExtendedString& anExtendedString);
0081
0082 Standard_EXPORT static Standard_Boolean IsReadOnly (const TCollection_ExtendedString& aFileName);
0083
0084
0085
0086
0087 protected:
0088
0089
0090
0091
0092
0093 private:
0094
0095
0096
0097
0098
0099 };
0100
0101
0102
0103
0104
0105
0106
0107 #endif