VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSoundMapRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2017 MaK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
10 
11 #pragma once
12 
14 
16 
17 #include <string>
18 #include <vector>
19 
20 namespace makVrv
21 {
22 
26  {
27  public:
28 
31 
34 
36  virtual ~DtEntitySoundMapRecord();
37 
40 
43  virtual bool operator<(const DtEntitySoundMapRecord& rhs) const;
44 
47  virtual bool operator==(const DtEntitySoundMapRecord& rhs) const ;
48 
51  virtual bool operator!=(const DtEntitySoundMapRecord& rhs) const;
52 
54  virtual void setEntityType(const std::string& entity);
55  virtual const std::string& entityType() const;
56 
58  virtual void setFilename(const std::string& filename);
59  virtual const std::string& filename() const;
60 
62  virtual void setDecibels(float decibels);
63  virtual float decibels() const;
64 
68  virtual bool compare(const DtEntitySoundMapRecord& other) const;
69 
72  virtual void swap(DtEntitySoundMapRecord& other);
73 
74  protected:
75 
76  friend class boost::serialization::access;
77 
81  template<class Archive>
82  void serialize( Archive& ar, const unsigned int version )
83  {
84  ar & BOOST_SERIALIZATION_NVP(myEntityType);
85  ar & BOOST_SERIALIZATION_NVP(myFilename);
86  if(version > 0)
87  {
88  ar & BOOST_SERIALIZATION_NVP(myDecibels);
89  }
90  }
91 
92  protected:
93  std::string myEntityType;
94  std::string myFilename;
95  float myDecibels;
96  };
97 
98 
102  : public DtEntitySoundMapRecord
103  {
104  public:
105 
108 
111 
113  virtual ~DtFireSoundMapRecord();
114 
117 
121  virtual bool compare(const DtFireSoundMapRecord& other) const;
122 
125  virtual void swap(DtFireSoundMapRecord& other);
126 
127  protected:
128 
129  friend class boost::serialization::access;
130 
134  template<class Archive>
135  void serialize( Archive& ar, const unsigned int version )
136  {
137  if(version > 0)
138  {
139  ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(DtEntitySoundMapRecord);
140  }
141  }
142 
143  protected:
144  };
145 
146 
150  : public DtEntitySoundMapRecord
151  {
152  public:
153 
156 
159 
161  virtual ~DtDetonationSoundMapRecord();
162 
165 
169  virtual bool operator<(const DtEntitySoundMapRecord& rhs) const;
170 
174  virtual bool operator==(const DtEntitySoundMapRecord& rhs) const ;
175 
179  virtual bool operator!=(const DtEntitySoundMapRecord& rhs) const;
180 
182  virtual void setDetonationResult(int boom);
183  virtual int detonationResult() const;
184 
188  virtual bool compare(const DtDetonationSoundMapRecord& other) const;
189 
192  virtual void swap(DtDetonationSoundMapRecord& other);
193 
194  protected:
195 
196  friend class boost::serialization::access;
197 
201  template<class Archive>
202  void serialize( Archive& ar, const unsigned int version )
203  {
204  if(version > 0)
205  {
206  ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(DtEntitySoundMapRecord);
207  ar & BOOST_SERIALIZATION_NVP(myDetonationResult);
208  }
209  }
210 
211  protected:
213  };
214 }
215 
217 BOOST_CLASS_VERSION( makVrv::DtFireSoundMapRecord, 1 )
218 BOOST_CLASS_VERSION( makVrv::DtDetonationSoundMapRecord, 1 )

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)