open-dis-cpp
TrackJamData.h
1 #pragma once
2 
3 #include <dis7/EntityID.h>
4 #include <dis7/utils/DataStream.h>
5 #include <dis7/opendis7_export.h>
6 
7 
8 namespace DIS
9 {
10 // Track-Jam data Section 6.2.89
11 
12 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
13 //
14 // @author DMcG, jkg
15 
16 class OPENDIS7_EXPORT TrackJamData
17 {
18 protected:
21 
23  unsigned char _emitterNumber;
24 
26  unsigned char _beamNumber;
27 
28 
29  public:
30  TrackJamData();
31  virtual ~TrackJamData();
32 
33  virtual void marshal(DataStream& dataStream) const;
34  virtual void unmarshal(DataStream& dataStream);
35 
36  EntityID& getEntityID();
37  const EntityID& getEntityID() const;
38  void setEntityID(const EntityID &pX);
39 
40  unsigned char getEmitterNumber() const;
41  void setEmitterNumber(unsigned char pX);
42 
43  unsigned char getBeamNumber() const;
44  void setBeamNumber(unsigned char pX);
45 
46 
47 virtual int getMarshalledSize() const;
48 
49  bool operator ==(const TrackJamData& rhs) const;
50 };
51 }
52 
53 // Copyright (c) 1995-2009 held by the author(s). All rights reserved.
54 // Redistribution and use in source and binary forms, with or without
55 // modification, are permitted provided that the following conditions
56 // are met:
57 //
58 // * Redistributions of source code must retain the above copyright
59 // notice, this list of conditions and the following disclaimer.
60 // * Redistributions in binary form must reproduce the above copyright
61 // notice, this list of conditions and the following disclaimer
62 // in the documentation and/or other materials provided with the
63 // distribution.
64 // * Neither the names of the Naval Postgraduate School (NPS)
65 // Modeling Virtual Environments and Simulation (MOVES) Institute
66 // (http://www.nps.edu and http://www.MovesInstitute.org)
67 // nor the names of its contributors may be used to endorse or
68 // promote products derived from this software without specific
69 // prior written permission.
70 //
71 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
72 // AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
73 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
74 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
75 // COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
76 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
77 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
78 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
79 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
80 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
81 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
82 // POSSIBILITY OF SUCH DAMAGE.
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
a class to support managing a network buffer.
Definition: DataStream.h:28
EntityID _entityID
the entity tracked or illumated, or an emitter beam targeted with jamming
Definition: TrackJamData.h:20
unsigned char _emitterNumber
Emitter system associated with the entity.
Definition: TrackJamData.h:23
Definition: EntityID.h:15
Definition: TrackJamData.h:16
unsigned char _beamNumber
Beam associated with the entity.
Definition: TrackJamData.h:26