open-dis-cpp
TrackJamTarget.h
1 #pragma once
2 
3 #include <dis6/EntityID.h>
4 #include <dis6/utils/DataStream.h>
5 #include <dis6/opendis6_export.h>
6 
7 
8 namespace DIS
9 {
10 // One track/jam target
11 
12 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
13 //
14 // @author DMcG, jkg
15 
16 class OPENDIS6_EXPORT TrackJamTarget
17 {
18 protected:
21 
23  unsigned char _emitterID;
24 
26  unsigned char _beamID;
27 
28 
29  public:
31  virtual ~TrackJamTarget();
32 
33  virtual void marshal(DataStream& dataStream) const;
34  virtual void unmarshal(DataStream& dataStream);
35 
36  EntityID& getTrackJam();
37  const EntityID& getTrackJam() const;
38  void setTrackJam(const EntityID &pX);
39 
40  unsigned char getEmitterID() const;
41  void setEmitterID(unsigned char pX);
42 
43  unsigned char getBeamID() const;
44  void setBeamID(unsigned char pX);
45 
46 
47 virtual int getMarshalledSize() const;
48 
49  bool operator ==(const TrackJamTarget& 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.
unsigned char _beamID
beam ID
Definition: TrackJamTarget.h:26
EntityID _trackJam
track/jam target
Definition: TrackJamTarget.h:20
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
a class to support managing a network buffer.
Definition: DataStream.h:28
Definition: TrackJamTarget.h:16
unsigned char _emitterID
Emitter ID.
Definition: TrackJamTarget.h:23
Definition: EntityID.h:15