VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 #include <vector>
18 
19 namespace makArchives
20 {
24  {
25  public:
26 
29 
32 
34  DtDateTimeRecord& operator=(const DtDateTimeRecord& orig);
35 
38 
40  void setYear(int year);
41 
43  int year() const;
44 
46  void setMonth(int month);
47 
49  int month() const;
50 
52  void setDayOfTheMonth(int day);
53 
55  int dayOfTheMonth() const;
56 
58  void setHour(int hour);
59 
61  int hour() const;
62 
64  void setMinute(int minute);
65 
67  int minute() const;
68 
70  void setSecond(double second);
71 
73  double second() const;
74 
76  void setTimeScale(double timeScale);
77 
79  double timeScale() const;
80 
81  protected:
82 
83  friend class boost::serialization::access;
84 
88  template<class Archive>
89  void serialize(Archive & ar, const unsigned int version)
90  {
91  ar & BOOST_SERIALIZATION_NVP(myYear);
92  ar & BOOST_SERIALIZATION_NVP(myMonth);
93  ar & BOOST_SERIALIZATION_NVP(myDayOfTheMonth);
94  ar & BOOST_SERIALIZATION_NVP(myHour);
95  ar & BOOST_SERIALIZATION_NVP(myMinute);
96  ar & BOOST_SERIALIZATION_NVP(mySecond);
97  ar & BOOST_SERIALIZATION_NVP(myTimeScale);
98  }
99 
100  int myYear;
101  int myMonth;
103  int myHour;
104  int myMinute;
105  double mySecond;
106  double myTimeScale;
107  };
108 }
109 
110 #endif
111 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)