00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef _OSGFILESYSTEM_H_
00040 #define _OSGFILESYSTEM_H_
00041 #ifdef __sgi
00042 #pragma once
00043 #endif
00044
00045 #include "OSGBaseTypes.h"
00046
00047 #include <sys/types.h>
00048 #include <sys/stat.h>
00049
00050 #ifdef __sgi
00051 #include <sys/fs/efs_ino.h>
00052 #endif
00053
00054 #ifndef WIN32
00055 #include <fnmatch.h>
00056 #include <dirent.h>
00057 #include <unistd.h>
00058 #include <vector>
00059 #else
00060 #include <windows.h>
00061 #include <direct.h>
00062 #include <vector>
00063 #endif
00064
00065 #include <string>
00066
00067 OSG_BEGIN_NAMESPACE
00068
00073 namespace AccessFlags
00074 {
00079 const UInt32 None = 0x00;
00080 const UInt32 IsReadable = 0x01;
00081 const UInt32 IsWriteable = 0x02;
00082
00084 }
00085
00086 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00087
00088 namespace File
00089 {
00090 static bool tstAttr(const Char8 *szFilename,
00091 UInt32 uiAccessFlags);
00092 }
00093
00094 namespace Directory
00095 {
00096 static bool tstAttr (const Char8 *szDirname,
00097 UInt32 uiAccessFlags);
00098
00099 static Char8 *getCurrent(void);
00100
00101 static bool setCurrent(const Char8 *szDirname,
00102 const Char8 *szPattern);
00103
00104 static std::vector<Char8 *> *getEntries(const Char8 *szDirname);
00105 }
00106
00107 namespace Path
00108 {
00109 static void fixWinNetworkPath(std::string &path);
00110 }
00111
00112 #endif
00113
00114 OSG_END_NAMESPACE
00115
00116 #include "OSGFileSystem.inl"
00117
00118 #define OSGFILESYSTEM_HEADER_CVSID "@(#)$Id: $"
00119
00120 #endif
00121
00122
00123
00124