00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_OM_TIMESTAMP_HPP
00017 #define TORC_GENERIC_OM_TIMESTAMP_HPP
00018
00019
00020 #include <boost/cstdint.hpp>
00021
00022 namespace torc {
00023
00024 namespace generic {
00025
00026
00027
00028
00029
00030 class TimeStamp
00031 {
00032 private:
00033 uint32_t mYear;
00034 uint32_t mMonth;
00035 uint32_t mDay;
00036 uint32_t mHour;
00037 uint32_t mMinute;
00038 uint32_t mSecond;
00039
00040 public:
00041 TimeStamp(uint32_t inYear, uint32_t inMonth, uint32_t inDay,
00042 uint32_t inHour, uint32_t inMinute, uint32_t inSecond);
00043
00044 TimeStamp();
00045
00046 ~TimeStamp() throw();
00047
00048 TimeStamp( const TimeStamp & source );
00049
00050 TimeStamp &
00051 operator =(const TimeStamp & source) throw();
00052
00053
00054
00055
00056
00057
00058 inline uint32_t
00059 getYear() const throw();
00060
00061
00062
00063
00064
00065
00066 void
00067 setYear(const uint32_t & inYear) throw();
00068
00069
00070
00071
00072
00073
00074 inline uint32_t
00075 getMonth() const throw();
00076
00077
00078
00079
00080
00081
00082 void
00083 setMonth(const uint32_t & inMonth) throw();
00084
00085
00086
00087
00088
00089
00090 inline uint32_t
00091 getDay() const throw();
00092
00093
00094
00095
00096
00097
00098 void
00099 setDay(const uint32_t & inDay) throw();
00100
00101
00102
00103
00104
00105
00106 inline uint32_t
00107 getHour() const throw();
00108
00109
00110
00111
00112
00113
00114 void
00115 setHour(const uint32_t & inHour) throw();
00116
00117
00118
00119
00120
00121
00122 inline uint32_t
00123 getMinute() const throw();
00124
00125
00126
00127
00128
00129
00130 void
00131 setMinute(uint32_t inMinute) throw();
00132
00133
00134
00135
00136
00137
00138 inline uint32_t
00139 getSecond() const throw();
00140
00141
00142
00143
00144
00145
00146 void
00147 setSecond(uint32_t inSecond) throw();
00148
00149 };
00150
00151
00152
00153
00154
00155 inline uint32_t
00156 TimeStamp::getYear() const throw() {
00157 return mYear;
00158 }
00159
00160
00161
00162
00163
00164
00165 inline uint32_t
00166 TimeStamp::getMonth() const throw() {
00167 return mMonth;
00168 }
00169
00170
00171
00172
00173
00174
00175 inline uint32_t
00176 TimeStamp::getDay() const throw() {
00177 return mDay;
00178 }
00179
00180
00181
00182
00183
00184
00185 inline uint32_t
00186 TimeStamp::getHour() const throw() {
00187 return mHour;
00188 }
00189
00190
00191
00192
00193
00194
00195 inline uint32_t
00196 TimeStamp::getMinute() const throw() {
00197 return mMinute;
00198 }
00199
00200
00201
00202
00203
00204
00205 inline uint32_t
00206 TimeStamp::getSecond() const throw() {
00207 return mSecond;
00208 }
00209
00210
00211 }
00212
00213 }
00214 #endif // TORC_GENERIC_OM_TIMESTAMP_HPP