source: NonGTP/FCollada/Documentation/_f_u_date_time_8h-source.html @ 964

Revision 964, 6.4 KB checked in by igarcia, 18 years ago (diff)
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>FCollada: FUtils/FUDateTime.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.4.6-NO -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="modules.html"><span>Modules</span></a></li>
12    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13    <li><a href="classes.html"><span>Classes</span></a></li>
14    <li id="current"><a href="files.html"><span>Files</span></a></li>
15    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16  </ul></div>
17<div class="tabs">
18  <ul>
19    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
20    <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
21  </ul></div>
22<h1>FUtils/FUDateTime.h</h1><a href="_f_u_date_time_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
23<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 2006 Feeling Software Inc</span>
24<a name="l00003"></a>00003 <span class="comment">    MIT License: http://www.opensource.org/licenses/mit-license.php</span>
25<a name="l00004"></a>00004 <span class="comment">*/</span>
26<a name="l00005"></a>00005
27<a name="l00011"></a>00011 <span class="preprocessor">#ifndef _FU_DATETIME_H_</span>
28<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define _FU_DATETIME_H_</span>
29<a name="l00013"></a>00013 <span class="preprocessor"></span>
30<a name="l00021"></a><a class="code" href="class_f_u_date_time.html">00021</a> <span class="keyword">class </span>FCOLLADA_EXPORT <a class="code" href="class_f_u_date_time.html">FUDateTime</a>
31<a name="l00022"></a>00022 {
32<a name="l00023"></a>00023 <span class="keyword">private</span>:
33<a name="l00024"></a>00024     <span class="comment">// To be more friendly, 'day' and 'month' are 1-indexed</span>
34<a name="l00025"></a>00025     uint32 seconds;
35<a name="l00026"></a>00026     uint32 minutes;
36<a name="l00027"></a>00027     uint32 hour;
37<a name="l00028"></a>00028     uint32 day;
38<a name="l00029"></a>00029     uint32 month;
39<a name="l00030"></a>00030     uint32 year;
40<a name="l00031"></a>00031
41<a name="l00032"></a>00032 <span class="keyword">public</span>:
42<a name="l00034"></a>00034     <a class="code" href="class_f_u_date_time.html">FUDateTime</a>();
43<a name="l00037"></a>00037 <a class="code" href="class_f_u_date_time.html">FUDateTime</a>(<span class="keyword">const</span> <a class="code" href="class_f_u_date_time.html">FUDateTime</a>&amp; time);
44<a name="l00039"></a>00039     ~<a class="code" href="class_f_u_date_time.html">FUDateTime</a>();
45<a name="l00040"></a>00040
46<a name="l00043"></a><a class="code" href="class_f_u_date_time.html#c6a02c221215238a779bff61093626b2">00043</a>     <span class="keyword">inline</span> uint32 GetSeconds()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> seconds; }
47<a name="l00046"></a><a class="code" href="class_f_u_date_time.html#3ec9ad7624c058a0790c4de0a984702b">00046</a>     <span class="keyword">inline</span> uint32 GetMinutes()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> minutes; }
48<a name="l00049"></a><a class="code" href="class_f_u_date_time.html#be0949d5c8c1d00a2c164ded6e11b30d">00049</a>     <span class="keyword">inline</span> uint32 GetHour()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> hour; }
49<a name="l00053"></a><a class="code" href="class_f_u_date_time.html#98db1109451fbc3e6a1544185a44fb73">00053</a>     <span class="keyword">inline</span> uint32 GetDay()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> day; }
50<a name="l00056"></a><a class="code" href="class_f_u_date_time.html#a5a4762ef4023a8746684fc9306508e4">00056</a>     <span class="keyword">inline</span> uint32 GetMonth()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> month; }
51<a name="l00060"></a><a class="code" href="class_f_u_date_time.html#ffed2783369ecf09a877ed640dd47923">00060</a>     <span class="keyword">inline</span> uint32 GetYear()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> year; }
52<a name="l00061"></a>00061
53<a name="l00065"></a><a class="code" href="class_f_u_date_time.html#c29ee580eb76914ede1b5b1a55720dce">00065</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetSeconds(uint32 _seconds) { seconds = _seconds; }
54<a name="l00069"></a><a class="code" href="class_f_u_date_time.html#defd51182822f0bea94e02087dd6433d">00069</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetMinutes(uint32 _minutes) { minutes = _minutes; }
55<a name="l00073"></a><a class="code" href="class_f_u_date_time.html#e0418848399c02b37a046bd6afe6eb0d">00073</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetHour(uint32 _hour) { hour = _hour; }
56<a name="l00077"></a><a class="code" href="class_f_u_date_time.html#824fc5c8edd8727961c2fe29df8333ed">00077</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetDay(uint32 _day) { day = _day; }
57<a name="l00081"></a><a class="code" href="class_f_u_date_time.html#f409696781158db5961a43c32050f1fd">00081</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetMonth(uint32 _month) { month = _month; }
58<a name="l00085"></a><a class="code" href="class_f_u_date_time.html#1f8eab94e0f884ef3f10b481672d665f">00085</a>     <span class="keyword">inline</span> <span class="keywordtype">void</span> SetYear(uint32 _year) { year = _year; }
59<a name="l00086"></a>00086
60<a name="l00090"></a>00090 <span class="keyword">static</span> <a class="code" href="class_f_u_date_time.html">FUDateTime</a> GetNow();
61<a name="l00091"></a>00091 };
62<a name="l00092"></a>00092
63<a name="l00093"></a>00093 <span class="preprocessor">#endif // _FU_DATETIME_H_</span>
64</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 12 16:44:39 2006 for FCollada by&nbsp;
65<a href="http://www.doxygen.org/index.html">
66<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
67</body>
68</html>
Note: See TracBrowser for help on using the repository browser.