VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelDefinitionRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtModelDefinitionRecord.h,v $ $Revision: 1.8 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtModelDefinitionRecord_H_
14 #define DtModelDefinitionRecord_H_
15 
17 #include <string>
18 
19 namespace makArchives
20 {
25  {
26 
27  public:
28 
31 
34 
36  DtModelDefinitionRecord& operator=(const DtModelDefinitionRecord& orig);
37 
40 
42  const std::string& name() const;
43 
45  const std::string& schema() const;
46 
48  const std::string& filename() const;
49 
51  const std::string& coordinateSystem() const;
52 
54  const std::string& coordinateSystemParameters() const;
55 
57  bool flipDds() const;
58 
60  int alphaToCoverageState() const;
61 
63  void setName(const std::string& name);
64 
66  void setSchema(const std::string& schema);
67 
69  void setFilename(const std::string& name);
70 
72  void setCoordinateSystem(const std::string& cs);
73 
76  void setCoordinateSystemParameters(const std::string& csp);
77 
79  void setFlipDds(bool flip_dds);
80 
83  void setAlphaToCoverageState(int state);
84 
85  protected:
86 
87  friend class boost::serialization::access;
88 
92  template<class Archive>
93  void serialize(Archive & ar, const unsigned int version)
94  {
95  ar & BOOST_SERIALIZATION_NVP(myName);
96  ar & BOOST_SERIALIZATION_NVP(myFilename);
97  ar & BOOST_SERIALIZATION_NVP(mySchema);
98  ar & BOOST_SERIALIZATION_NVP(myCoordinateSystem);
99  ar & BOOST_SERIALIZATION_NVP(myCoordinateSystemParameters);
100 
101  if (version >= 1)
102  {
103  ar & BOOST_SERIALIZATION_NVP(myFlipDds);
104  }
105  if (version >= 2)
106  {
107  ar & BOOST_SERIALIZATION_NVP(myAlphaToCoverageState);
108  }
109  }
110 
111 
112  protected:
113 
114  std::string myName;
115  std::string myFilename;
116  std::string mySchema;
117  std::string myCoordinateSystem;
119  bool myFlipDds;
121  };
122 }
123 
125 
126 #endif

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)