open-dis-cpp
IntercomIdentifier.h
1 #pragma once
2 
3 #include <dis7/utils/DataStream.h>
4 #include <dis7/opendis7_export.h>
5 
6 
7 namespace DIS
8 {
9 // Unique designation of an attached or unattached intercom in an event or exercirse. Section 6.2.48
10 
11 // Copyright (c) 2007-2009, MOVES Institute, Naval Postgraduate School. All rights reserved.
12 //
13 // @author DMcG, jkg
14 
15 class OPENDIS7_EXPORT IntercomIdentifier
16 {
17 protected:
18  unsigned short _siteNumber;
19 
20  unsigned short _applicationNumber;
21 
22  unsigned short _referenceNumber;
23 
24  unsigned short _intercomNumber;
25 
26 
27  public:
29  virtual ~IntercomIdentifier();
30 
31  virtual void marshal(DataStream& dataStream) const;
32  virtual void unmarshal(DataStream& dataStream);
33 
34  unsigned short getSiteNumber() const;
35  void setSiteNumber(unsigned short pX);
36 
37  unsigned short getApplicationNumber() const;
38  void setApplicationNumber(unsigned short pX);
39 
40  unsigned short getReferenceNumber() const;
41  void setReferenceNumber(unsigned short pX);
42 
43  unsigned short getIntercomNumber() const;
44  void setIntercomNumber(unsigned short pX);
45 
46 
47 virtual int getMarshalledSize() const;
48 
49  bool operator ==(const IntercomIdentifier& 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
Definition: IntercomIdentifier.h:15