VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDateTimeRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtDateTimeRecord_H_
11 #define DtDateTimeRecord_H_
12 
14 
15 namespace makArchives
16 {
20  {
21  public:
22 
25 
28 
30  DtDateTimeRecord& operator=(const DtDateTimeRecord& orig);
31 
34 
36  void setYear(int year);
37 
39  int year() const;
40 
42  void setMonth(int month);
43 
45  int month() const;
46 
48  void setDayOfTheMonth(int day);
49 
51  int dayOfTheMonth() const;
52 
54  void setHour(int hour);
55 
57  int hour() const;
58 
60  void setMinute(int minute);
61 
63  int minute() const;
64 
66  void setSecond(double second);
67 
69  double second() const;
70 
72  void setTimeScale(double timeScale);
73 
75  double timeScale() const;
76 
77  protected:
78 
79  friend class boost::serialization::access;
80 
84  template<class Archive>
85  void serialize(Archive & ar, const unsigned int version)
86  {
87  ar & BOOST_SERIALIZATION_NVP(myYear);
88  ar & BOOST_SERIALIZATION_NVP(myMonth);
89  ar & BOOST_SERIALIZATION_NVP(myDayOfTheMonth);
90  ar & BOOST_SERIALIZATION_NVP(myHour);
91  ar & BOOST_SERIALIZATION_NVP(myMinute);
92  ar & BOOST_SERIALIZATION_NVP(mySecond);
93  ar & BOOST_SERIALIZATION_NVP(myTimeScale);
94  }
95 
96  int myYear;
97  int myMonth;
99  int myHour;
100  int myMinute;
101  double mySecond;
102  double myTimeScale;
103  };
104 }
105 
106 #endif
107 
int myDayOfTheMonth
Definition: DtDateTimeRecord.h:98
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtDateTimeRecord.h:85
double myTimeScale
Definition: DtDateTimeRecord.h:102
Record of application-wide date/time settings.
Definition: DtDateTimeRecord.h:19
Contains DLL export macros.
int myMonth
Definition: DtDateTimeRecord.h:97
int myYear
Definition: DtDateTimeRecord.h:96
int myHour
Definition: DtDateTimeRecord.h:99
int myMinute
Definition: DtDateTimeRecord.h:100
double mySecond
Definition: DtDateTimeRecord.h:101
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)