⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classpfileinfo.html

📁 pwlib开发文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>PFileInfo class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>PFileInfo Class Reference</h1><code>#include &lt;<a class="el" href="pdirect_8h-source.html">pdirect.h</a>&gt;</code><p><p>Inheritance diagram for PFileInfo:<p><center><img src="classPFileInfo.png" usemap="#PFileInfo_map" border="0" alt=""></center><map name="PFileInfo_map"><area href="classPObject.html" alt="PObject" shape="rect" coords="0,0,62,24"></map><a href="classPFileInfo-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Types</h2></td></tr><tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#s21">FileTypes</a> { <br>&nbsp;&nbsp;<a class="el" href="classPFileInfo.html#s21s0">RegularFile</a> =  1, <a class="el" href="classPFileInfo.html#s21s1">SymbolicLink</a> =  2, <a class="el" href="classPFileInfo.html#s21s2">SubDirectory</a> =  4, <a class="el" href="classPFileInfo.html#s21s3">CharDevice</a> =  8, <br>&nbsp;&nbsp;<a class="el" href="classPFileInfo.html#s21s4">BlockDevice</a> =  16, <a class="el" href="classPFileInfo.html#s21s5">Fifo</a> =  32, <a class="el" href="classPFileInfo.html#s21s6">SocketDevice</a> =  64, <a class="el" href="classPFileInfo.html#s21s7">UnknownFileType</a> =  256, <br>&nbsp;&nbsp;<a class="el" href="classPFileInfo.html#s21s8">AllFiles</a> =  0x1ff<br> }</td></tr><tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#s22">Permissions</a> { <br>&nbsp;&nbsp;<a class="el" href="classPFileInfo.html#s22s9">WorldExecute</a> =  1, <a class="el" href="classPFileInfo.html#s22s10">WorldWrite</a> =  2, <a class="el" href="classPFileInfo.html#s22s11">WorldRead</a> =  4, <a class="el" href="classPFileInfo.html#s22s12">GroupExecute</a> =  8, <br>&nbsp;&nbsp;<a class="el" href="classPFileInfo.html#s22s13">GroupWrite</a> =  16, <a class="el" href="classPFileInfo.html#s22s14">GroupRead</a> =  32, <a class="el" href="classPFileInfo.html#s22s15">UserExecute</a> =  64, <a class="el" href="classPFileInfo.html#s22s16">UserWrite</a> =  128, <br>&nbsp;&nbsp;<a class="el" href="classPFileInfo.html#s22s17">UserRead</a> =  256, <a class="el" href="classPFileInfo.html#s22s18">AllPermissions</a> =  0x1ff, <a class="el" href="classPFileInfo.html#s22s19">DefaultPerms</a> =  UserRead|UserWrite|GroupRead|WorldRead, <a class="el" href="classPFileInfo.html#s22s20">DefaultDirPerms</a> =  DefaultPerms|UserExecute|GroupExecute|WorldExecute<br> }</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>File access permissions for the file.</em> <a href="#s22">More...</a><em></em></font><br><br></td></tr><tr><td colspan=2><br><h2>Public Attributes</h2></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPFileInfo.html#s21">FileTypes</a>&nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#m0">type</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>File type for this file. Only one bit is set at a time here.</em> <a href="#m0"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPTime.html">PTime</a>&nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#m1">created</a></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPTime.html">PTime</a>&nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#m2">modified</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Time of last modifiaction of the file.</em> <a href="#m2"></a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a class="el" href="classPTime.html">PTime</a>&nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#m3">accessed</a></td></tr><tr><td nowrap align=right valign=top>PUInt64&nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#m4">size</a></td></tr><tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#m5">permissions</a></td></tr><tr><td nowrap align=right valign=top>BOOL&nbsp;</td><td valign=bottom><a class="el" href="classPFileInfo.html#m6">hidden</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Class containing the system information on a file path. Information can be obtained on any directory entry event if it is not a "file" in the strictest sense. Sub-directories, devices etc may also have information retrieved. <p><hr><h2>Member Enumeration Documentation</h2><a name="s21" doxytag="PFileInfo::FileTypes"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> enum PFileInfo::FileTypes      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>All types that a particular file path may be. Not all platforms support all of the file types. For example under DOS no file may be of the type <a class="el" href="classPFileInfo.html#s21s1">SymbolicLink</a>#. <dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s21s0" doxytag="RegularFile"></a><em>RegularFile</em></em>&nbsp;</td><td>Ordinary disk file.</td></tr><tr><td valign=top><em><a name="s21s1" doxytag="SymbolicLink"></a><em>SymbolicLink</em></em>&nbsp;</td><td>File path is a symbolic link.</td></tr><tr><td valign=top><em><a name="s21s2" doxytag="SubDirectory"></a><em>SubDirectory</em></em>&nbsp;</td><td>File path is a sub-directory.</td></tr><tr><td valign=top><em><a name="s21s3" doxytag="CharDevice"></a><em>CharDevice</em></em>&nbsp;</td><td>File path is a character device name.</td></tr><tr><td valign=top><em><a name="s21s4" doxytag="BlockDevice"></a><em>BlockDevice</em></em>&nbsp;</td><td>File path is a block device name.</td></tr><tr><td valign=top><em><a name="s21s5" doxytag="Fifo"></a><em>Fifo</em></em>&nbsp;</td><td>File path is a fifo (pipe) device.</td></tr><tr><td valign=top><em><a name="s21s6" doxytag="SocketDevice"></a><em>SocketDevice</em></em>&nbsp;</td><td>File path is a socket device.</td></tr><tr><td valign=top><em><a name="s21s7" doxytag="UnknownFileType"></a><em>UnknownFileType</em></em>&nbsp;</td><td>File path is of an unknown type.</td></tr><tr><td valign=top><em><a name="s21s8" doxytag="AllFiles"></a><em>AllFiles</em></em>&nbsp;</td><td>Mask for all file types.</td></tr></table></dl>    </td>  </tr></table><a name="s22" doxytag="PFileInfo::Permissions"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> enum PFileInfo::Permissions      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>File access permissions for the file.<p><dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s22s9" doxytag="WorldExecute"></a><em>WorldExecute</em></em>&nbsp;</td><td>File has world execute permission.</td></tr><tr><td valign=top><em><a name="s22s10" doxytag="WorldWrite"></a><em>WorldWrite</em></em>&nbsp;</td><td>File has world write permission.</td></tr><tr><td valign=top><em><a name="s22s11" doxytag="WorldRead"></a><em>WorldRead</em></em>&nbsp;</td><td>File has world read permission.</td></tr><tr><td valign=top><em><a name="s22s12" doxytag="GroupExecute"></a><em>GroupExecute</em></em>&nbsp;</td><td>File has group execute permission.</td></tr><tr><td valign=top><em><a name="s22s13" doxytag="GroupWrite"></a><em>GroupWrite</em></em>&nbsp;</td><td>File has group write permission.</td></tr><tr><td valign=top><em><a name="s22s14" doxytag="GroupRead"></a><em>GroupRead</em></em>&nbsp;</td><td>File has group read permission.</td></tr><tr><td valign=top><em><a name="s22s15" doxytag="UserExecute"></a><em>UserExecute</em></em>&nbsp;</td><td>File has owner execute permission.</td></tr><tr><td valign=top><em><a name="s22s16" doxytag="UserWrite"></a><em>UserWrite</em></em>&nbsp;</td><td>File has owner write permission.</td></tr><tr><td valign=top><em><a name="s22s17" doxytag="UserRead"></a><em>UserRead</em></em>&nbsp;</td><td>File has owner read permission.</td></tr><tr><td valign=top><em><a name="s22s18" doxytag="AllPermissions"></a><em>AllPermissions</em></em>&nbsp;</td><td>All possible permissions.</td></tr><tr><td valign=top><em><a name="s22s19" doxytag="DefaultPerms"></a><em>DefaultPerms</em></em>&nbsp;</td><td>Owner read &amp; write plus group and world read permissions.</td></tr><tr><td valign=top><em><a name="s22s20" doxytag="DefaultDirPerms"></a><em>DefaultDirPerms</em></em>&nbsp;</td><td>Owner read &amp; write &amp; execute plus group and world read &amp; exectute permissions.</td></tr></table></dl>    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a name="m3" doxytag="PFileInfo::accessed"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classPTime.html">PTime</a> PFileInfo::accessed      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Time of last access to the file. Not all platforms support a separate access time in which case the last modified time is returned.     </td>  </tr></table><a name="m1" doxytag="PFileInfo::created"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classPTime.html">PTime</a> PFileInfo::created      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Time of file creation of the file. Not all platforms support a separate creation time in which case the last modified time is returned.     </td>  </tr></table><a name="m6" doxytag="PFileInfo::hidden"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> BOOL PFileInfo::hidden      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>File is a hidden file. What constitutes a hidden file is platform dependent, for example under unix it is a file beginning with a '.' character while under MS-DOS there is a file system attribute for it.     </td>  </tr></table><a name="m2" doxytag="PFileInfo::modified"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classPTime.html">PTime</a> PFileInfo::modified      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Time of last modifiaction of the file.<p>    </td>  </tr></table><a name="m5" doxytag="PFileInfo::permissions"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int PFileInfo::permissions      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>A bit mask of all the file acces permissions. See the <a class="el" href="classPFileInfo.html#s22">Permissions</a> enum# for the possible bit values.<p>Not all platforms support all permissions.     </td>  </tr></table><a name="m4" doxytag="PFileInfo::size"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PUInt64 PFileInfo::size      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Size of the file in bytes. This is a quadword or 8 byte value to allow for files greater than 4 gigabytes.     </td>  </tr></table><a name="m0" doxytag="PFileInfo::type"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="classPFileInfo.html#s21">FileTypes</a> PFileInfo::type      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>File type for this file. Only one bit is set at a time here.<p>    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="pdirect_8h-source.html">pdirect.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:15 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -