classvttime.html
来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 129 行
HTML
129 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>vtdata library: vtTime Class 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.4.5 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li id="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><h1>vtTime Class Reference</h1><!-- doxytag: class="vtTime" --><a href="classvtTime-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 Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classvtTime.html#5eb40c2663303fd3e40afab66a49e41a">SetDate</a> (int year, int month, int day)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="da5d86c920122baf137fbccac45afc4b"></a><!-- doxytag: member="vtTime::GetDate" ref="da5d86c920122baf137fbccac45afc4b" args="(int &year, int &month, int &day) const " -->void </td><td class="memItemRight" valign="bottom"><b>GetDate</b> (int &year, int &month, int &day) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4a749f29ccc32b8173b6e9ceaa681570"></a><!-- doxytag: member="vtTime::SetTimeOfDay" ref="4a749f29ccc32b8173b6e9ceaa681570" args="(int hr, int min, int sec)" -->void </td><td class="memItemRight" valign="bottom"><b>SetTimeOfDay</b> (int hr, int min, int sec)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="49543a0a7c8f84d41f7f9fd345934e1b"></a><!-- doxytag: member="vtTime::GetTimeOfDay" ref="49543a0a7c8f84d41f7f9fd345934e1b" args="(int &hr, int &min, int &sec) const " -->void </td><td class="memItemRight" valign="bottom"><b>GetTimeOfDay</b> (int &hr, int &min, int &sec) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fdfc3ba3527d1223a141cb2e4cf5993a"></a><!-- doxytag: member="vtTime::GetSecondOfDay" ref="fdfc3ba3527d1223a141cb2e4cf5993a" args="() const " -->int </td><td class="memItemRight" valign="bottom"><b>GetSecondOfDay</b> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d9ee2f05f0a7f741cbd5fcfd458aa3c3"></a><!-- doxytag: member="vtTime::GetTime" ref="d9ee2f05f0a7f741cbd5fcfd458aa3c3" args="() const " -->time_t </td><td class="memItemRight" valign="bottom"><b>GetTime</b> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="41e70f370d3a0b23fdeb8b9348d6e438"></a><!-- doxytag: member="vtTime::GetTM" ref="41e70f370d3a0b23fdeb8b9348d6e438" args="() const " -->const tm & </td><td class="memItemRight" valign="bottom"><b>GetTM</b> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bc9ef0a51ccfbc4f571ddeef7dd519ab"></a><!-- doxytag: member="vtTime::Increment" ref="bc9ef0a51ccfbc4f571ddeef7dd519ab" args="(int secs)" -->void </td><td class="memItemRight" valign="bottom"><b>Increment</b> (int secs)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="87fa03a0a4b5f7c4d1cf453c003d1eef"></a><!-- doxytag: member="vtTime::SetFromString" ref="87fa03a0a4b5f7c4d1cf453c003d1eef" args="(const vtString &str)" -->bool </td><td class="memItemRight" valign="bottom"><b>SetFromString</b> (const <a class="el" href="classvtString.html">vtString</a> &str)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="597a03eac2a6744d898ada43ca1333e9"></a><!-- doxytag: member="vtTime::GetAsString" ref="597a03eac2a6744d898ada43ca1333e9" args="()" --><a class="el" href="classvtString.html">vtString</a> </td><td class="memItemRight" valign="bottom"><b>GetAsString</b> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="84a8e679833711441e55d377cda1dbde"></a><!-- doxytag: member="vtTime::GetSystemTime" ref="84a8e679833711441e55d377cda1dbde" args="()" -->void </td><td class="memItemRight" valign="bottom"><b>GetSystemTime</b> ()</td></tr><tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f11ba81cc22236520801ea189a3ea4ac"></a><!-- doxytag: member="vtTime::_UpdateTM" ref="f11ba81cc22236520801ea189a3ea4ac" args="()" -->void </td><td class="memItemRight" valign="bottom"><b>_UpdateTM</b> ()</td></tr><tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="baa6a02974c6da79b704e77147100dec"></a><!-- doxytag: member="vtTime::m_tm" ref="baa6a02974c6da79b704e77147100dec" args="" -->tm </td><td class="memItemRight" valign="bottom"><b>m_tm</b></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0ed0260c379514b35e1f222e3d1f4b7"></a><!-- doxytag: member="vtTime::m_time" ref="b0ed0260c379514b35e1f222e3d1f4b7" args="" -->time_t </td><td class="memItemRight" valign="bottom"><b>m_time</b></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class encapsulates time (in increments of whole seconds.)<p>Time is stored both as a time_t value (integer seconds) and as a tm structure (year, month, day, hour, minute, second). The two values are kept in synch.<p>Implementation notes: The functions mktime() and localtime() are used to convert between time_t and tm. Although it seems as if this operating on "local" time, it isn't really; it is just a time value. These functions are used because they are the only bidirectional conversion functions exposed by the ANSI C library - the gmtime() function converts time_t to tm more directly, but there is no corresponding method to convert directly from tm to time_t. <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="5eb40c2663303fd3e40afab66a49e41a"></a><!-- doxytag: member="vtTime::SetDate" ref="5eb40c2663303fd3e40afab66a49e41a" args="(int year, int month, int day)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void vtTime::SetDate </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>year</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>month</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>day</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set the date components of a vtTime value.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>year</em> </td><td>E.g. 2001. </td></tr> <tr><td valign="top"></td><td valign="top"><em>month</em> </td><td>in the range of 1 to 12. </td></tr> <tr><td valign="top"></td><td valign="top"><em>day</em> </td><td>in the range of 1 to 31. </td></tr> </table></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:40:55 2008 for vtdata library by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?