VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSkyConditionRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSkyConditionRecord.h,v $ $Revision: 1.1.2.1 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
17 #include <vrfExtObjects/vrfWeatherStateEnums.h>
18 
19 namespace makArchives
20 {
25  {
26  public:
27 
28  typedef std::vector<makArchives::DtCloudLayerRecord> DtCloudRecordList;
29 
32 
34  DtSkyConditionRecord(std::string name, DtVrfWeatherCloudState type );
35 
38 
40  DtSkyConditionRecord& operator=(const DtSkyConditionRecord& orig);
41 
43  bool operator==(const DtSkyConditionRecord& orig) const;
44 
47 
49  virtual std::string skyConditionName() const;
50 
51  virtual DtVrfWeatherCloudState skyConditionType() const;
52 
54  virtual const DtCloudRecordList& cloudRecordList() const;
55 
57  virtual void setCloudRecordList(const DtCloudRecordList& records);
58 
60  virtual void setSkyConditionName(const std::string& name);
61 
62  virtual void setSkyConditionType(DtVrfWeatherCloudState conditionType);
63 
65  virtual void addCloudRecord(const makArchives::DtCloudLayerRecord& rec);
66 
67  protected:
68 
69  friend class boost::serialization::access;
70 
74  template<class Archive>
75  void serialize(Archive & ar, const unsigned int version)
76  {
77  ar & BOOST_SERIALIZATION_NVP(mySkyConditionName);
78  ar & BOOST_SERIALIZATION_NVP(myCloudList);
79  if ( version >= 1 )
80  {
81  ar & BOOST_SERIALIZATION_NVP(mySkyConditionType);
82  }
83  }
84 
85  protected:
86  std::string mySkyConditionName;
87  DtVrfWeatherCloudState mySkyConditionType;
89  };
90 }
92 
93 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)