Warning, file /include/opencascade/OSD_FileIterator.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _OSD_FileIterator_HeaderFile
0018 #define _OSD_FileIterator_HeaderFile
0019
0020 #include <OSD_File.hxx>
0021 #include <OSD_Error.hxx>
0022 #include <TCollection_AsciiString.hxx>
0023
0024 class OSD_Path;
0025
0026
0027
0028 class OSD_FileIterator
0029 {
0030 public:
0031
0032 DEFINE_STANDARD_ALLOC
0033
0034
0035
0036 Standard_EXPORT OSD_FileIterator();
0037
0038
0039
0040
0041 Standard_EXPORT OSD_FileIterator(const OSD_Path& where, const TCollection_AsciiString& Mask);
0042
0043 Standard_EXPORT void Destroy();
0044 ~OSD_FileIterator()
0045 {
0046 Destroy();
0047 }
0048
0049
0050 Standard_EXPORT void Initialize (const OSD_Path& where, const TCollection_AsciiString& Mask);
0051
0052
0053
0054 Standard_EXPORT Standard_Boolean More();
0055
0056
0057
0058
0059 Standard_EXPORT void Next();
0060
0061
0062 Standard_EXPORT OSD_File Values();
0063
0064
0065 Standard_EXPORT Standard_Boolean Failed() const;
0066
0067
0068 Standard_EXPORT void Reset();
0069
0070
0071 Standard_EXPORT void Perror();
0072
0073
0074 Standard_EXPORT Standard_Integer Error() const;
0075
0076 private:
0077
0078 OSD_File TheIterator;
0079 Standard_Boolean myFlag;
0080 TCollection_AsciiString myMask;
0081 TCollection_AsciiString myPlace;
0082 OSD_Error myError;
0083
0084
0085 #ifdef _WIN32
0086 Standard_Address myHandle;
0087 Standard_Address myData;
0088 Standard_Boolean myFirstCall;
0089 #else
0090 Standard_Address myDescr;
0091 Standard_Address myEntry;
0092 Standard_Integer myInit;
0093 #endif
0094 };
0095
0096 #endif