VR-Forces 4.7 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 /******************************************************************************
6 ** $RCSfile: DtDateTimeRecord.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtDateTimeRecord_H_
14 #define DtDateTimeRecord_H_
15 
17 
18 namespace makArchives
19 {
23  {
24  public:
25 
28 
31 
33  DtDateTimeRecord& operator=(const DtDateTimeRecord& orig);
34 
37 
39  void setYear(int year);
40 
42  int year() const;
43 
45  void setMonth(int month);
46 
48  int month() const;
49 
51  void setDayOfTheMonth(int day);
52 
54  int dayOfTheMonth() const;
55 
57  void setHour(int hour);
58 
60  int hour() const;
61 
63  void setMinute(int minute);
64 
66  int minute() const;
67 
69  void setSecond(double second);
70 
72  double second() const;
73 
75  void setTimeScale(double timeScale);
76 
78  double timeScale() const;
79 
80  protected:
81 
82  friend class boost::serialization::access;
83 
87  template<class Archive>
88  void serialize(Archive & ar, const unsigned int version)
89  {
90  ar & BOOST_SERIALIZATION_NVP(myYear);
91  ar & BOOST_SERIALIZATION_NVP(myMonth);
92  ar & BOOST_SERIALIZATION_NVP(myDayOfTheMonth);
93  ar & BOOST_SERIALIZATION_NVP(myHour);
94  ar & BOOST_SERIALIZATION_NVP(myMinute);
95  ar & BOOST_SERIALIZATION_NVP(mySecond);
96  ar & BOOST_SERIALIZATION_NVP(myTimeScale);
97  }
98 
99  int myYear;
100  int myMonth;
102  int myHour;
103  int myMinute;
104  double mySecond;
105  double myTimeScale;
106  };
107 }
108 
109 #endif
110 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)