aflibdatetime_8h-source.html
来自「一个共享源码的音频库5(doc 文档)」· HTML 代码 · 共 138 行
HTML
138 行
<!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.h Source File</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.h</h1><a href="aflibDateTime_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>00002 <font class="comment"> * Copyright: (C) 1999-2001 Bruce W. Forsberg</font>00003 <font class="comment"> *</font>00004 <font class="comment"> * This library is free software; you can redistribute it and/or</font>00005 <font class="comment"> * modify it under the terms of the GNU Lesser General Public</font>00006 <font class="comment"> * License as published by the Free Software Foundation; either</font>00007 <font class="comment"> * version 2.1 of the License, or any later version.</font>00008 <font class="comment"> *</font>00009 <font class="comment"> * This library is distributed in the hope that it will be useful,</font>00010 <font class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</font>00011 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>00012 <font class="comment"> * Lesser General Public License for more details.</font>00013 <font class="comment"> *</font>00014 <font class="comment"> * You should have received a copy of the GNU Lesser General Public</font>00015 <font class="comment"> * License along with this library; if not, write to the Free Software</font>00016 <font class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</font>00017 <font class="comment"> *</font>00018 <font class="comment"> * Bruce Forsberg forsberg@tns.net</font>00019 <font class="comment"> *</font>00020 <font class="comment"> */</font>00021 00022 <font class="preprocessor">#ifndef _AFLIBDATETIME_H_</font>00023 <font class="preprocessor"></font><font class="preprocessor">#define _AFLIBDATETIME_H_</font>00024 <font class="preprocessor"></font>00025 00026 <font class="preprocessor">#ifdef HAVE_CONFIG_H</font>00027 <font class="preprocessor"></font><font class="preprocessor">#include <config.h></font>00028 <font class="preprocessor">#endif</font>00029 <font class="preprocessor"></font>00030 <font class="preprocessor">#include <iostream></font>00031 00032 <font class="preprocessor">#include <string></font>00033 <font class="keyword">using</font> std::string;00034 <font class="keyword">using</font> std::ostream;00035 00036 00045 <font class="keyword">class </font><a class="code" href="classaflibDateTime.html">aflibDateTime</a> {00046 00047 <font class="keyword">public</font>:00048 00049 <a class="code" href="classaflibDateTime.html#a0">aflibDateTime</a> ();00050 00051 <a class="code" href="classaflibDateTime.html#a0">aflibDateTime</a> (00052 <font class="keywordtype">int</font> year,00053 <font class="keywordtype">int</font> month,00054 <font class="keywordtype">int</font> day,00055 <font class="keywordtype">int</font> hour,00056 <font class="keywordtype">int</font> minute,00057 <font class="keywordtype">int</font> second);00058 00059 <a class="code" href="classaflibDateTime.html#a0">aflibDateTime</a> (00060 string date,00061 string time);00062 00063 <a class="code" href="classaflibDateTime.html#a3">~aflibDateTime</a>();00064 00065 <font class="keywordtype">bool</font>00066 <a class="code" href="classaflibDateTime.html#a4">operator < </a>(<font class="keyword">const</font> <a class="code" href="classaflibDateTime.html">aflibDateTime</a>& date) <font class="keyword">const</font>;00067 00068 <font class="keywordtype">bool</font>00069 <a class="code" href="classaflibDateTime.html#a5">operator <= </a>(<font class="keyword">const</font> <a class="code" href="classaflibDateTime.html">aflibDateTime</a>& date) <font class="keyword">const</font>;00070 00071 <font class="keywordtype">bool</font>00072 <a class="code" href="classaflibDateTime.html#a6">operator == </a>(<font class="keyword">const</font> <a class="code" href="classaflibDateTime.html">aflibDateTime</a>& date) <font class="keyword">const</font>;00073 00074 <font class="keyword">friend</font> ostream&00075 <a class="code" href="classaflibDateTime.html#a0">operator << </a>(00076 ostream& o,00077 <font class="keyword">const</font> <a class="code" href="classaflibDateTime.html">aflibDateTime</a>& date);00078 00079 <font class="keywordtype">void</font>00080 <a class="code" href="classaflibDateTime.html#a7">setYear</a>(<font class="keywordtype">int</font> year);00081 00082 <font class="keywordtype">int</font>00083 <a class="code" href="classaflibDateTime.html#a8">getYear</a>() <font class="keyword">const</font>;00084 00085 <font class="keywordtype">void</font>00086 <a class="code" href="classaflibDateTime.html#a9">setMonth</a>(<font class="keywordtype">int</font> month);00087 00088 <font class="keywordtype">int</font>00089 <a class="code" href="classaflibDateTime.html#a10">getMonth</a>() <font class="keyword">const</font>;00090 00091 <font class="keywordtype">void</font>00092 <a class="code" href="classaflibDateTime.html#a11">setDay</a>(<font class="keywordtype">int</font> day);00093 00094 <font class="keywordtype">int</font>00095 <a class="code" href="classaflibDateTime.html#a12">getDay</a>() <font class="keyword">const</font>;00096 00097 <font class="keywordtype">void</font>00098 <a class="code" href="classaflibDateTime.html#a13">setHour</a>(<font class="keywordtype">int</font> hour);00099 00100 <font class="keywordtype">int</font>00101 <a class="code" href="classaflibDateTime.html#a14">getHour</a>() <font class="keyword">const</font>;00102 00103 <font class="keywordtype">void</font>00104 <a class="code" href="classaflibDateTime.html#a15">setMinute</a>(<font class="keywordtype">int</font> minute);00105 00106 <font class="keywordtype">int</font>00107 <a class="code" href="classaflibDateTime.html#a16">getMinute</a>() <font class="keyword">const</font>;00108 00109 <font class="keywordtype">void</font>00110 <a class="code" href="classaflibDateTime.html#a17">setSecond</a>(<font class="keywordtype">int</font> second);00111 00112 <font class="keywordtype">int</font>00113 <a class="code" href="classaflibDateTime.html#a18">getSecond</a>() <font class="keyword">const</font>;00114 00115 <font class="keywordtype">void</font>00116 <a class="code" href="classaflibDateTime.html#a19">setCurrentTime</a>();00117 00118 00119 <font class="keyword">private</font>:00120 00121 <font class="keywordtype">int</font> _year;00122 <font class="keywordtype">int</font> _month;00123 <font class="keywordtype">int</font> _day;00124 <font class="keywordtype">int</font> _hour;00125 <font class="keywordtype">int</font> _minute;00126 <font class="keywordtype">int</font> _second;00127 00128 };00129 00130 00131 <font class="preprocessor">#endif</font></pre></div><hr><address align="right"><small>Generated on Wed May 8 20:51:06 2002 for Open Source Audio Library Project 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.15 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?