VR-Forces 4.1 Class Documentation
DtTerrainOperationRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtTerrainOperationRecord.h,v $ $Revision: 1.7 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtTerrainOperationRecord_H_
14 #define DtTerrainOperationRecord_H_
15 
16 #include <makArchives/makArchives.h>
17 
18 namespace makArchives
19 {
23  {
24 
25  public:
26 
27  enum OperationType { NoOp, Add };
28  enum InputType { NoInput, Patch, FeatureLayer, Generic };
33  VisualizationAndSimulation
34  };
35 
38 
41 
43  DtTerrainOperationRecord& operator=(const DtTerrainOperationRecord& orig);
44 
47 
49  bool operator==(const DtTerrainOperationRecord& record) const;
50 
52  void setOperationType(OperationType opType);
53 
55  OperationType operationType() const;
56 
58  void setInputType(InputType inType);
59 
61  InputType inputType() const;
62 
64  void setTargetApplication(TargetApplication targetApplication);
65 
67  TargetApplication targetApplication() const;
68 
70  void setIndex(int index);
71 
73  int index() const;
74 
75  protected:
76 
77 
78  friend class boost::serialization::access;
79 
83  template<class Archive>
84  void serialize(Archive & ar, const unsigned int version)
85  {
86  ar & BOOST_SERIALIZATION_NVP(myOperationType);
87  ar & BOOST_SERIALIZATION_NVP(myInputType);
88  if (version > 0)
89  {
90  ar & BOOST_SERIALIZATION_NVP(myTargetApplication);
91  }
92 
93  ar & BOOST_SERIALIZATION_NVP(myIndex);
94  }
95 
96 
97  protected:
98 
102  int myIndex;
103 
104 
105  };
106 }
107 
109 
110 #endif
111 

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)