VR-Forces 4.0.4 Class Documentation
include/makArchives/DtCockpitSettingsRecord.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtCockpitSettingsRecord.h,v $ $Revision: 1.4 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <makArchives/makArchives.h>
00016 
00017 namespace makArchives
00018 {
00021    class DT_DLL_MAKARCHIVES DtCockpitSettingsRecord
00022    {
00023    public:
00024 
00026       DtCockpitSettingsRecord();
00027 
00029       ~DtCockpitSettingsRecord();
00030 
00032       DtCockpitSettingsRecord(const DtCockpitSettingsRecord& orig);
00033 
00035       DtCockpitSettingsRecord& operator=(const DtCockpitSettingsRecord& orig);
00036 
00037       void setDataPath(const std::string& path);
00038       const std::string& dataPath() const;
00039 
00040       void setShowCockpits(bool show);
00041       const bool showCockpits() const;
00042 
00043       void setSmoothingEnabled(bool smooth);
00044       const bool smoothingEnabled() const;
00045 
00046       void setSmoothingPeriod(const double& period);
00047       const double smoothingPeriod() const;
00048 
00049 
00050    protected:
00051 
00053       friend class boost::serialization::access;
00054 
00058       template<class Archive>
00059          void serialize(Archive & ar, const unsigned int version)
00060       {
00061          ar & BOOST_SERIALIZATION_NVP(myDataPath);
00062          ar & BOOST_SERIALIZATION_NVP(myShowHuds);
00063          ar & BOOST_SERIALIZATION_NVP(mySmoothingEnabled);
00064          ar & BOOST_SERIALIZATION_NVP(mySmoothingPeriod);
00065       }
00066 
00067    protected:
00068       std::string myDataPath;
00069       bool myShowHuds;
00070       bool mySmoothingEnabled;
00071       double mySmoothingPeriod;
00072    };
00073 
00074 } //makArchives::

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)