VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSoundMapRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2012 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 
64  virtual bool compare(const DtEntitySoundMapRecord& other) const;
65 
68  virtual void swap(DtEntitySoundMapRecord& other);
69 
70  protected:
71 
72  friend class boost::serialization::access;
73 
77  template<class Archive>
78  void serialize( Archive& ar, const unsigned int /*version*/ )
79  {
80  ar & BOOST_SERIALIZATION_NVP(myEntityType);
81  ar & BOOST_SERIALIZATION_NVP(myFilename);
82  }
83 
84  protected:
85  std::string myEntityType;
86  std::string myFilename;
87  };
88 
89 
93  : public DtEntitySoundMapRecord
94  {
95  public:
96 
99 
102 
104  virtual ~DtFireSoundMapRecord();
105 
108 
110  virtual void setDuration(double seconds);
111  virtual double duration() const;
112 
114  virtual void setSoundChannel(int chan);
115  virtual int soundChannel() const;
116 
120  virtual bool compare(const DtFireSoundMapRecord& other) const;
121 
124  virtual void swap(DtFireSoundMapRecord& other);
125 
126  protected:
127 
128  friend class boost::serialization::access;
129 
133  template<class Archive>
134  void serialize( Archive& ar, const unsigned int /*version*/ )
135  {
136  ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(DtEntitySoundMapRecord);
137  ar & BOOST_SERIALIZATION_NVP(myDuration);
138  ar & BOOST_SERIALIZATION_NVP(myChannel);
139  }
140 
141  protected:
142  double myDuration;
144  };
145 
146 
150  : public DtFireSoundMapRecord
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 setDetonation(int boom);
183  virtual int detonation() 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  ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(DtFireSoundMapRecord);
205  ar & BOOST_SERIALIZATION_NVP(myDetonation);
206  }
207 
208  protected:
210  };
211 }
212 
214 BOOST_CLASS_VERSION( makVrv::DtFireSoundMapRecord, 0 )
215 BOOST_CLASS_VERSION( makVrv::DtDetonationSoundMapRecord, 0 )

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)