Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGFileSystem.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *             Copyright (C) 2000-2003 by the OpenSG Forum                   *
00006  *                                                                           *
00007  *                            www.opensg.org                                 *
00008  *                                                                           *
00009  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00010  *                                                                           *
00011 \*---------------------------------------------------------------------------*/
00012 /*---------------------------------------------------------------------------*\
00013  *                                License                                    *
00014  *                                                                           *
00015  * This library is free software; you can redistribute it and/or modify it   *
00016  * under the terms of the GNU Library General Public License as published    *
00017  * by the Free Software Foundation, version 2.                               *
00018  *                                                                           *
00019  * This library is distributed in the hope that it will be useful, but       *
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00022  * Library General Public License for more details.                          *
00023  *                                                                           *
00024  * You should have received a copy of the GNU Library General Public         *
00025  * License along with this library; if not, write to the Free Software       *
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00027  *                                                                           *
00028 \*---------------------------------------------------------------------------*/
00029 /*---------------------------------------------------------------------------*\
00030  *                                Changes                                    *
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 /* _OSGFILESYSTEM_H_ */
00121 
00122 
00123 
00124 

Generated on Thu Aug 25 04:04:56 2005 for OpenSG by  doxygen 1.4.3