classaflibdatetime.html
来自「一个共享源码的音频库5(doc 文档)」· HTML 代码 · 共 763 行 · 第 1/2 页
HTML
763 行
<!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>aflibDateTime class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.15 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>aflibDateTime Class Reference</h1>Date Time class. <a href="#_details">More...</a><p><code>#include <<a class="el" href="aflibDateTime_8h-source.html">aflibDateTime.h</a>></code><p><a href="classaflibDateTime-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a0">aflibDateTime</a> ()</td></tr><tr><td> </td><td><font size=-1><em>Constructor with no parameters.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a1">aflibDateTime</a> (int year, int month, int day, int hour, int minute, int second)</td></tr><tr><td> </td><td><font size=-1><em>Constructor with parameters as integer values.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a2">aflibDateTime</a> (string date, string time)</td></tr><tr><td> </td><td><font size=-1><em>Constructor with parameters as strings.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a3">~aflibDateTime</a> ()</td></tr><tr><td> </td><td><font size=-1><em>Destructor.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a4">operator<</a> (const aflibDateTime &date) const</td></tr><tr><td> </td><td><font size=-1><em>Comparision operator.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a5">operator<=</a> (const aflibDateTime &date) const</td></tr><tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a6">operator==</a> (const aflibDateTime &date) const</td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a7">setYear</a> (int year)</td></tr><tr><td> </td><td><font size=-1><em>Sets the year.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a8">getYear</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Gets the year.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a9">setMonth</a> (int month)</td></tr><tr><td> </td><td><font size=-1><em>Sets the month.</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a10">getMonth</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Gets the month.</em> <a href="#a10">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a11">setDay</a> (int day)</td></tr><tr><td> </td><td><font size=-1><em>Sets the day.</em> <a href="#a11">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a12">getDay</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Gets the day.</em> <a href="#a12">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a13">setHour</a> (int hour)</td></tr><tr><td> </td><td><font size=-1><em>Sets the hour.</em> <a href="#a13">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a14">getHour</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Gets the hour.</em> <a href="#a14">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a15">setMinute</a> (int minute)</td></tr><tr><td> </td><td><font size=-1><em>Sets the minute.</em> <a href="#a15">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a16">getMinute</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Gets the minute.</em> <a href="#a16">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a17">setSecond</a> (int second)</td></tr><tr><td> </td><td><font size=-1><em>Sets the second.</em> <a href="#a17">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a18">getSecond</a> () const</td></tr><tr><td> </td><td><font size=-1><em>Gets the second.</em> <a href="#a18">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classaflibDateTime.html#a19">setCurrentTime</a> ()</td></tr><tr><td> </td><td><font size=-1><em>Sets the date and time to the current date and time.</em> <a href="#a19">More...</a><em></em></font><br><br></td></tr><tr><td colspan=2><br><h2>Friends</h2></td></tr><tr><td nowrap align=right valign=top>ostream & </td><td valign=bottom><a class="el" href="classaflibDateTime.html#l0">operator<<</a> (ostream &o, const aflibDateTime &date)</td></tr><tr><td> </td><td><font size=-1><em>Outputs data and time to a stream.</em> <a href="#l0">More...</a><em></em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Date Time class.<p>This class simply holds a date and time. It can be used by other classes such as the <a class="el" href="classaflibAudioRecorder.html">aflibAudioRecorder</a> class that requires a date and time. It provides for storing a date and time, printing a date and time, and comparing two dates and times. <p><hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="aflibDateTime::aflibDateTime"></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"> aflibDateTime::aflibDateTime </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Constructor with no parameters.<p> </td> </tr></table><a name="a1" doxytag="aflibDateTime::aflibDateTime"></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"> aflibDateTime::aflibDateTime </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></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>month</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>day</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>hour</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>minute</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>second</em></td> </tr> <tr> <td></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>Constructor with parameters as integer values.<p> </td> </tr></table><a name="a2" doxytag="aflibDateTime::aflibDateTime"></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"> aflibDateTime::aflibDateTime </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">string </td> <td class="mdname" nowrap> <em>date</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>string </td> <td class="mdname" nowrap> <em>time</em></td> </tr> <tr> <td></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>Constructor with parameters as strings.<p>This constructor takes a date and a time as a string. The date must be in the format MM/DD/YYYY. The time must be in the format HH:MM:SS. </td> </tr></table><a name="a3" doxytag="aflibDateTime::~aflibDateTime"></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"> aflibDateTime::~aflibDateTime </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Destructor.<p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a name="a12" doxytag="aflibDateTime::getDay"></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 aflibDateTime::getDay </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Gets the day.<p> </td> </tr></table><a name="a14" doxytag="aflibDateTime::getHour"></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 aflibDateTime::getHour </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Gets the hour.<p> </td> </tr></table><a name="a16" doxytag="aflibDateTime::getMinute"></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 aflibDateTime::getMinute </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Gets the minute.<p> </td> </tr></table><a name="a10" doxytag="aflibDateTime::getMonth"></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 aflibDateTime::getMonth </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Gets the month.<p> </td> </tr></table><a name="a18" doxytag="aflibDateTime::getSecond"></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 aflibDateTime::getSecond </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Gets the second.<p> </td> </tr></table><a name="a8" doxytag="aflibDateTime::getYear"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?