00001 /* 00002 Copyright 2003 by Marc J. Rochkind. All rights reserved. 00003 May be copied only for purposes and under conditions described 00004 on the Web page www.basepath.com/aup/copyright.htm. 00005 00006 The Example Files are provided "as is," without any warranty; 00007 without even the implied warranty of merchantability or fitness 00008 for a particular purpose. The author and his publisher are not 00009 responsible for any damages, direct or incidental, resulting 00010 from the use or non-use of these Example Files. 00011 00012 The Example Files may contain defects, and some contain deliberate 00013 coding mistakes that were included for educational reasons. 00014 You are responsible for determining if and how the Example Files 00015 are to be used. 00016 00017 */ 00018 #ifndef _UXDIR_HPP_ 00019 #define _UXDIR_HPP_ 00020 00021 #include <sys/uio.h> 00022 #include <utime.h> 00023 00024 #include "uxfile.hpp" 00025 00026 namespace Ux { 00027 00028 /** 00029 \ingroup Ux 00030 */ 00031 class Dir : public File { 00032 public: 00033 Dir(int f = -1, char *p = NULL, ssize_t s = -1) 00034 : File(f, p, s) 00035 { } 00036 Dir(char *p, ssize_t s = -1) 00037 : File(-1, p, s) 00038 { } 00039 00040 void mkdir(mode_t perms = PERM_DIRECTORY); 00041 void rmdir(void); 00042 }; 00043 00044 } // namespace 00045 00046 #endif // _UXDIR_HPP_