FUtils/FUDateTime.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2005-2007 Feeling Software Inc.
00003     Portions of the code are:
00004     Copyright (C) 2005-2007 Sony Computer Entertainment America
00005     
00006     MIT License: http://www.opensource.org/licenses/mit-license.php
00007 */
00008 
00014 #ifndef _FU_DATETIME_H_
00015 #define _FU_DATETIME_H_
00016 
00024 class FCOLLADA_EXPORT FUDateTime
00025 {
00026 private:
00027     // To be more friendly, 'day' and 'month' are 1-indexed
00028     uint32 seconds;
00029     uint32 minutes;
00030     uint32 hour;
00031     uint32 day;
00032     uint32 month;
00033     uint32 year;
00034 
00035 public:
00037     FUDateTime();
00040     FUDateTime(const FUDateTime& time);
00042     ~FUDateTime();
00043 
00046     inline uint32 GetSeconds() const { return seconds; }
00049     inline uint32 GetMinutes() const { return minutes; }
00052     inline uint32 GetHour() const { return hour; }
00056     inline uint32 GetDay() const { return day; }
00059     inline uint32 GetMonth() const { return month; }
00063     inline uint32 GetYear() const { return year; }
00064 
00068     inline void SetSeconds(uint32 _seconds) { seconds = _seconds; }
00072     inline void SetMinutes(uint32 _minutes) { minutes = _minutes; }
00076     inline void SetHour(uint32 _hour) { hour = _hour; }
00080     inline void SetDay(uint32 _day) { day = _day; }
00084     inline void SetMonth(uint32 _month) { month = _month; }
00088     inline void SetYear(uint32 _year) { year = _year; }
00089 
00093     static FUDateTime GetNow();
00094 };
00095 
00096 #endif // _FU_DATETIME_H_

Generated on Thu Feb 14 16:58:35 2008 for FCollada by  doxygen 1.4.6-NO