VR-Forces 4.0.4 Class Documentation
include/makArchives/DtDateTimeRecord.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtDateTimeRecord.h,v $ $Revision: 1.3 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtDateTimeRecord_H_
00014 #define DtDateTimeRecord_H_
00015 
00016 #include <makArchives/makArchives.h>
00017 #include <vector>
00018 
00019 namespace makArchives
00020 {
00023    class DT_DLL_MAKARCHIVES DtDateTimeRecord
00024    {
00025    public:      
00026 
00028       DtDateTimeRecord();
00029 
00031       DtDateTimeRecord(const DtDateTimeRecord& orig);
00032 
00034       DtDateTimeRecord& operator=(const DtDateTimeRecord& orig);
00035 
00037       ~DtDateTimeRecord();
00038 
00040       void setYear(int year);
00041 
00043       int year() const;
00044 
00046       void setMonth(int month);
00047 
00049       int month() const;
00050 
00052       void setDayOfTheMonth(int day);
00053 
00055       int dayOfTheMonth() const;
00056 
00058       void setHour(int hour);
00059 
00061       int hour() const;
00062 
00064       void setMinute(int minute);
00065 
00067       int minute() const;
00068 
00070       void setSecond(double second);
00071 
00073       double second() const;
00074 
00076       void setTimeScale(double timeScale);
00077 
00079       double timeScale() const;
00080       
00081    protected:
00082 
00083       friend class boost::serialization::access;
00084 
00088       template<class Archive>
00089       void serialize(Archive & ar, const unsigned int version)
00090       {
00091          ar & BOOST_SERIALIZATION_NVP(myYear);
00092          ar & BOOST_SERIALIZATION_NVP(myMonth);
00093          ar & BOOST_SERIALIZATION_NVP(myDayOfTheMonth);
00094          ar & BOOST_SERIALIZATION_NVP(myHour);
00095          ar & BOOST_SERIALIZATION_NVP(myMinute);
00096          ar & BOOST_SERIALIZATION_NVP(mySecond);
00097          ar & BOOST_SERIALIZATION_NVP(myTimeScale);
00098       }
00099 
00100       int myYear;
00101       int myMonth;
00102       int myDayOfTheMonth;
00103       int myHour;
00104       int myMinute;
00105       double mySecond;
00106       double myTimeScale;
00107    };
00108 }
00109 
00110 #endif
00111 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)