Sierra Toolkit Version of the Day
FileSystem.hpp
00001 /*------------------------------------------------------------------------*/
00002 /*                 Copyright 2010 Sandia Corporation.                     */
00003 /*  Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive   */
00004 /*  license for use of this work by or on behalf of the U.S. Government.  */
00005 /*  Export of this program may require a license from the                 */
00006 /*  United States Government.                                             */
00007 /*------------------------------------------------------------------------*/
00008 
00009 #ifndef stk_util_environment_platform_FileSystem_hpp
00010 #define stk_util_environment_platform_FileSystem_hpp
00011 
00012 namespace sierra stk {
00013 
00018 
00028 bool path_exists(const std::string &path);
00029 
00030 
00045 bool path_access(const std::string &path, int mode);
00046 
00047 
00059 bool path_read_access(const std::string &path);
00060 
00072 bool path_write_access(const std::string &path);
00073 
00074 
00085 bool read_lock(int fd);
00086 
00087 
00098 bool write_lock(int fd);
00099 
00100 
00112 bool append_lock(int fd);
00113 
00114 
00126 bool release_lock(int fd);
00127 
00131 
00132 } // namespace stk
00133 
00134 #endif // stk_util_environment_platform_FileSystem_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends