VR-Forces 4.1.1 Class Documentation
DtTacticalGraphicsSettingsRecord.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 namespace makArchives
15 {
16 
20  {
21  public:
22 
25 
27 
29 
32 
33  void setTacticalGraphicsEnabled(bool enabled);
34  void setTacticalGraphicsIndicatorsEnabled(bool enabled);
35  void setTacticalGraphicsHeightAboveTerrainLinesEnabled(bool enabled);
36  void setTacticalGraphicsHeightAboveTerrainMode(unsigned mode);
37  void setRemoteGraphicsEnabled(bool enabled);
38 
39  bool tacticalGraphicsEnabled() const;
40  bool tacticalGraphicsIndicatorsEnabled() const;
41  bool tacticalGraphicsHeightAboveTerrainLinesEnabled() const;
42  unsigned tacticalGraphicsHeightAboveTerrainMode() const;
43  bool remoteGraphicsEnabled() const;
44 
45  protected:
46 
47  friend class boost::serialization::access;
48 
52  template<class Archive> void serialize( Archive & ar, const unsigned int version )
53  {
54  if ( version != 3 )
55  {
56  ar & BOOST_SERIALIZATION_NVP(myTacticalGraphicsEnabled);
57  }
58  ar & BOOST_SERIALIZATION_NVP(myTacticalGraphicsIndicatorsEnabled);
59 
60  if(version >= 1)
61  {
62  if ( version != 3 )
63  {
64  ar & BOOST_SERIALIZATION_NVP(myTacticalGraphicsHeightAboveTerrainLinesEnabled);
65  }
66  ar & BOOST_SERIALIZATION_NVP(myTacticalGraphicsHeightAboveTerrainMode);
67  }
68 
69  if(version >= 2 && version < 5 )
70  {
71  ar & BOOST_SERIALIZATION_NVP(myTacticalGraphicsIndicatorsOnSelectedEnabled);
72  }
73 
74  if (version >= 6)
75  {
76  ar & BOOST_SERIALIZATION_NVP(myRemoteGraphicsEnabled);
77  }
78  }
79 
80  protected:
81 
88 
89  };
90 
91 }
92 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)