📄 struct_file_module_1_1_disk_file.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>libpion: FileModule::DiskFile Struct Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.2 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><div class="nav"><a class="el" href="class_file_module.html">FileModule</a>::<a class="el" href="struct_file_module_1_1_disk_file.html">DiskFile</a></div><h1>FileModule::DiskFile Struct Reference</h1><!-- doxytag: class="FileModule::DiskFile" --><code>#include <<a class="el" href="_file_module_8hpp-source.html">FileModule.hpp</a>></code><p><a href="struct_file_module_1_1_disk_file-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>data type representing files on disk <p><p>Definition at line <a class="el" href="_file_module_8hpp-source.html#l00122">122</a> of file <a class="el" href="_file_module_8hpp-source.html">FileModule.hpp</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7d8b2752d7d788108a1aa0c3790c27fd"></a><!-- doxytag: member="FileModule::DiskFile::DiskFile" ref="7d8b2752d7d788108a1aa0c3790c27fd" args="(void)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#7d8b2752d7d788108a1aa0c3790c27fd">DiskFile</a> (void)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">constructors for convenience <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bb065fcdc762e3c792458945c9c5354d"></a><!-- doxytag: member="FileModule::DiskFile::DiskFile" ref="bb065fcdc762e3c792458945c9c5354d" args="(const boost::filesystem::path &path, char *content, unsigned long size, std::time_t modified, const std::string &mime)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#bb065fcdc762e3c792458945c9c5354d">DiskFile</a> (const boost::filesystem::path &path, char *content, unsigned long size, std::time_t modified, const std::string &mime)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b60a58a57d7a32adb62b1c0e5d20f0df"></a><!-- doxytag: member="FileModule::DiskFile::update" ref="b60a58a57d7a32adb62b1c0e5d20f0df" args="(void)" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#b60a58a57d7a32adb62b1c0e5d20f0df">update</a> (void)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">updates the file_size and last_modified timestamp to disk <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a726bc66b4d290fe09c1edf02179aae6"></a><!-- doxytag: member="FileModule::DiskFile::read" ref="a726bc66b4d290fe09c1edf02179aae6" args="(void)" -->void </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#a726bc66b4d290fe09c1edf02179aae6">read</a> (void)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">reads content from disk into file_content buffer <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#5035f7db79097b1420ff056ac2632ec3">checkUpdated</a> (void)</td></tr><tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41a8575deadf1d75d6aaeb76c057300c"></a><!-- doxytag: member="FileModule::DiskFile::file_path" ref="41a8575deadf1d75d6aaeb76c057300c" args="" -->boost::filesystem::path </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#41a8575deadf1d75d6aaeb76c057300c">file_path</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">path to the cached file <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="11122c2b7e3117e02662fb9b597f9a55"></a><!-- doxytag: member="FileModule::DiskFile::file_content" ref="11122c2b7e3117e02662fb9b597f9a55" args="" -->boost::shared_array< char > </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#11122c2b7e3117e02662fb9b597f9a55">file_content</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">content of the cached file <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bca608cf97377af55fa929895c9fb469"></a><!-- doxytag: member="FileModule::DiskFile::file_size" ref="bca608cf97377af55fa929895c9fb469" args="" -->unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#bca608cf97377af55fa929895c9fb469">file_size</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">size of the file's content <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4295e8fe34d30c0cbc6e838bcae3a651"></a><!-- doxytag: member="FileModule::DiskFile::last_modified" ref="4295e8fe34d30c0cbc6e838bcae3a651" args="" -->std::time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#4295e8fe34d30c0cbc6e838bcae3a651">last_modified</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">timestamp that the cached file was last modified (0 = cache disabled) <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc967ce35332fea0dd00f6ab9a12df9a"></a><!-- doxytag: member="FileModule::DiskFile::last_modified_string" ref="cc967ce35332fea0dd00f6ab9a12df9a" args="" -->std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#cc967ce35332fea0dd00f6ab9a12df9a">last_modified_string</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">timestamp that the cached file was last modified (string format) <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1d1ffa0623d297951030e8c69a1d749"></a><!-- doxytag: member="FileModule::DiskFile::mime_type" ref="a1d1ffa0623d297951030e8c69a1d749" args="" -->std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_file_module_1_1_disk_file.html#a1d1ffa0623d297951030e8c69a1d749">mime_type</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">mime type for the cached file <br></td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="5035f7db79097b1420ff056ac2632ec3"></a><!-- doxytag: member="FileModule::DiskFile::checkUpdated" ref="5035f7db79097b1420ff056ac2632ec3" args="(void)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">bool FileModule::DiskFile::checkUpdated </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>checks if the file has been updated and updates vars if it has<p><dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the file was updated </dd></dl><p>Definition at line <a class="el" href="_file_module_8cpp-source.html#l00469">469</a> of file <a class="el" href="_file_module_8cpp-source.html">FileModule.cpp</a>.<p>References <a class="el" href="_file_module_8hpp-source.html#l00142">file_path</a>, <a class="el" href="_file_module_8hpp-source.html#l00146">file_size</a>, <a class="el" href="_file_module_8hpp-source.html#l00148">last_modified</a>, <a class="el" href="_file_module_8hpp-source.html#l00150">last_modified_string</a>, and <a class="el" href="_file_module_8cpp-source.html#l00455">read()</a>.</div></div><p><hr>The documentation for this struct was generated from the following files:<ul><li>/Users/mdickey/code/libpion-export/modules/<a class="el" href="_file_module_8hpp-source.html">FileModule.hpp</a><li>/Users/mdickey/code/libpion-export/modules/<a class="el" href="_file_module_8cpp-source.html">FileModule.cpp</a></ul><hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 19 13:29:23 2007 for libpion by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -