torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::TimeStamp Class Reference

Represents the time in Universal Time Coordinate (year, month, day, hour, minute, second) More...

#include <TimeStamp.hpp>

Public Member Functions

 TimeStamp (uint32_t inYear, uint32_t inMonth, uint32_t inDay, uint32_t inHour, uint32_t inMinute, uint32_t inSecond)
 
 TimeStamp ()
 
 ~TimeStamp () throw ()
 
 TimeStamp (const TimeStamp &source)
 
TimeStampoperator= (const TimeStamp &source)
 
uint32_t getYear () const
 
void setYear (const uint32_t &inYear)
 
uint32_t getMonth () const
 
void setMonth (const uint32_t &inMonth)
 
uint32_t getDay () const
 
void setDay (const uint32_t &inDay)
 
uint32_t getHour () const
 
void setHour (const uint32_t &inHour)
 
uint32_t getMinute () const
 
void setMinute (uint32_t inMinute)
 
uint32_t getSecond () const
 
void setSecond (uint32_t inSecond)
 

Private Attributes

uint32_t mYear
 
uint32_t mMonth
 
uint32_t mDay
 
uint32_t mHour
 
uint32_t mMinute
 
uint32_t mSecond
 

Detailed Description

Represents the time in Universal Time Coordinate (year, month, day, hour, minute, second)

Definition at line 29 of file TimeStamp.hpp.

Constructor & Destructor Documentation

torc::generic::TimeStamp::TimeStamp ( uint32_t  inYear,
uint32_t  inMonth,
uint32_t  inDay,
uint32_t  inHour,
uint32_t  inMinute,
uint32_t  inSecond 
)

Definition at line 21 of file TimeStamp.cpp.

22  : mYear(inYear), mMonth(inMonth), mDay(inDay),
23  mHour(inHour), mMinute(inMinute), mSecond(inSecond) {}
torc::generic::TimeStamp::TimeStamp ( )

Definition at line 25 of file TimeStamp.cpp.

torc::generic::TimeStamp::~TimeStamp ( )
throw (
)

Definition at line 42 of file TimeStamp.cpp.

42 {}
torc::generic::TimeStamp::TimeStamp ( const TimeStamp source)

Definition at line 27 of file TimeStamp.cpp.

27  : mYear(source.mYear), mMonth(source.mMonth),
28  mDay(source.mDay), mHour(source.mHour), mMinute(source.mMinute), mSecond(source.mSecond) {}

Member Function Documentation

uint32_t torc::generic::TimeStamp::getDay ( ) const
inline

Get day information

Returns
mDay

Definition at line 158 of file TimeStamp.hpp.

158  {
159  return mDay;
160 }

+ Here is the caller graph for this function:

uint32_t torc::generic::TimeStamp::getHour ( ) const
inline

Get hour information

Returns
mHour

Definition at line 167 of file TimeStamp.hpp.

167  {
168  return mHour;
169 }

+ Here is the caller graph for this function:

uint32_t torc::generic::TimeStamp::getMinute ( ) const
inline

Get minute information

Returns
mMinute

Definition at line 176 of file TimeStamp.hpp.

176  {
177  return mMinute;
178 }

+ Here is the caller graph for this function:

uint32_t torc::generic::TimeStamp::getMonth ( ) const
inline

Get month information

Returns
mMonth

Definition at line 149 of file TimeStamp.hpp.

149  {
150  return mMonth;
151 }

+ Here is the caller graph for this function:

uint32_t torc::generic::TimeStamp::getSecond ( ) const
inline

Get second information

Returns
mSecond

Definition at line 185 of file TimeStamp.hpp.

185  {
186  return mSecond;
187 }

+ Here is the caller graph for this function:

uint32_t torc::generic::TimeStamp::getYear ( ) const
inline

Get year information

Returns
mYear

Definition at line 140 of file TimeStamp.hpp.

140  {
141  return mYear;
142 }

+ Here is the caller graph for this function:

TimeStamp & torc::generic::TimeStamp::operator= ( const TimeStamp source)

Definition at line 30 of file TimeStamp.cpp.

30  {
31  if(this != &source) {
32  mYear = source.mYear;
33  mMonth = source.mMonth;
34  mDay = source.mDay;
35  mHour = source.mHour;
36  mMinute = source.mMinute;
37  mSecond = source.mSecond;
38  }
39  return *this;
40 }
void torc::generic::TimeStamp::setDay ( const uint32_t &  inDay)

Set day information

Parameters
[in]inDayDay information

Definition at line 67 of file TimeStamp.cpp.

67  {
68  mDay = inDay;
69 }
void torc::generic::TimeStamp::setHour ( const uint32_t &  inHour)

Set hour information

Parameters
[in]inHourHour information

Definition at line 76 of file TimeStamp.cpp.

76  {
77  mHour = inHour;
78 }
void torc::generic::TimeStamp::setMinute ( uint32_t  inMinute)

Set minute information

Parameters
[in]inMinuteMinute information

Definition at line 85 of file TimeStamp.cpp.

85  {
86  mMinute = inMinute;
87 }
void torc::generic::TimeStamp::setMonth ( const uint32_t &  inMonth)

Set month information

Parameters
[in]inMonthMonth information

Definition at line 58 of file TimeStamp.cpp.

58  {
59  mMonth = inMonth;
60 }
void torc::generic::TimeStamp::setSecond ( uint32_t  inSecond)

Set second information

Parameters
[in]inSecondSecond information

Definition at line 94 of file TimeStamp.cpp.

94  {
95  mSecond = inSecond;
96 }
void torc::generic::TimeStamp::setYear ( const uint32_t &  inYear)

Set year information

Parameters
[in]inYearYear information

Definition at line 49 of file TimeStamp.cpp.

49  {
50  mYear = inYear;
51 }

Field Documentation

uint32_t torc::generic::TimeStamp::mDay
private

Definition at line 33 of file TimeStamp.hpp.

uint32_t torc::generic::TimeStamp::mHour
private

Definition at line 34 of file TimeStamp.hpp.

uint32_t torc::generic::TimeStamp::mMinute
private

Definition at line 35 of file TimeStamp.hpp.

uint32_t torc::generic::TimeStamp::mMonth
private

Definition at line 32 of file TimeStamp.hpp.

uint32_t torc::generic::TimeStamp::mSecond
private

Definition at line 36 of file TimeStamp.hpp.

uint32_t torc::generic::TimeStamp::mYear
private

Definition at line 31 of file TimeStamp.hpp.


The documentation for this class was generated from the following files: