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

📄 classfile__c.html

📁 用来介绍ZIG Library游戏网络引擎的文档
💻 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>file_c 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="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>file_c Class Reference</h1>Represents a name of a file or a directory, relative or not, has operations for extracting or adding path, file name, extension, etc. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="pfilesys_8h-source.html">pfilesys.h</a>&gt;</code><p><a href="classfile__c-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 Methods</h2></td></tr><tr><td nowrap align=right valign=top><a name="a0" doxytag="file_c::file_c"></a>&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a0">file_c</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>default ctor</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a1" doxytag="file_c::file_c"></a>&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a1">file_c</a> (std::string spec, bool force_path_only=false)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>ctor. if force_path == true, then the last component of the spec is forced to be understoodas part of the path (that is, no filename)</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a2" doxytag="file_c::~file_c"></a>virtual&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a2">~file_c</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>dtor</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a3" doxytag="file_c::file_c"></a>&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a3">file_c</a> (const file_c &amp;f)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>copy ctor</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a4" doxytag="file_c::operator="></a>file_c &amp;&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a4">operator=</a> (const file_c &amp;f)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>assignment operator</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a5" doxytag="file_c::make_dir"></a>bool&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a5">make_dir</a> (std::string dirname)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>create a sub-directory of the current path. example, if this <a class="el" href="classfile__c.html#a15">get_path()</a> equals"c:\somedir" then make_dir("subdir") makes the directory "c:\somedir\subdir"returns true on success.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a6" doxytag="file_c::remove_dir"></a>bool&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a6">remove_dir</a> (std::string dirname)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>remove a directory; see <a class="el" href="classfile__c.html#a5">make_dir()</a>. returns true on success.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a7" doxytag="file_c::delete_file"></a>bool&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a7">delete_file</a> (std::string filename="")</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>delete file; see <a class="el" href="classfile__c.html#a5">make_dir()</a>. returns true on success.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a8" doxytag="file_c::set"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a8">set</a> (std::string spec, bool force_path_only=false)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>set new path/file/ext. if force_path == true, then the last component of the spec is forcedto be understood as part of the path (that is, no filename)</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a9" doxytag="file_c::replace_filename"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a9">replace_filename</a> (std::string newfilename)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>change file name/ext over the same path</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a10" doxytag="file_c::replace_path"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a10">replace_path</a> (std::string newpath)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>change the path over the same filename</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a11" doxytag="file_c::cd"></a>void&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a11">cd</a> (std::string dir)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>append another directory to the path</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a12" doxytag="file_c::get_absolute"></a>std::string&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a12">get_absolute</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>get absolute device+path+name+extension (if possible)</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a13" doxytag="file_c::get_filename"></a>std::string&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a13">get_filename</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>get filename + extension</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a14" doxytag="file_c::get_name"></a>std::string&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a14">get_name</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>get name (no extension)</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a15" doxytag="file_c::get_path"></a>std::string&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a15">get_path</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>get root path</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a16" doxytag="file_c::get_extension"></a>std::string&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#a16">get_extension</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>get file extension</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 name="m0" doxytag="file_c::size"></a>int&nbsp;</td><td valign=bottom><a class="el" href="classfile__c.html#m0">size</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>file size, when file_c is used to return a result from <a class="el" href="classfile__finder__c.html">file_finder_c</a></em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Represents a name of a file or a directory, relative or not, has operations for extracting or adding path, file name, extension, etc.<p><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="pfilesys_8h-source.html">pfilesys.h</a><li>pfilesys.cpp</ul><hr><address style="align: right;"><small>Generated on Mon Jan 24 21:14:23 2005 for ZIG 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 + -