Emergency 20 Dokumentation  4.2.0
HostList.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
15 
17 
18 
19 //[-------------------------------------------------------]
20 //[ Namespace ]
21 //[-------------------------------------------------------]
22 namespace em5
23 {
24  namespace packet
25  {
26 
27 
28  //[-------------------------------------------------------]
29  //[ Classes ]
30  //[-------------------------------------------------------]
36  {
37 
38 
39  //[-------------------------------------------------------]
40  //[ Public definitions ]
41  //[-------------------------------------------------------]
42  public:
43  static const uint32 PACKET_ID;
44 
45 
46  //[-------------------------------------------------------]
47  //[ Public methods ]
48  //[-------------------------------------------------------]
49  public:
54  HostList();
55 
56  void setHostList(const std::vector<multiplayer::HostEntry>& hostList);
57  const std::vector<multiplayer::HostEntry>& getHostList() const;
58 
59 
60  //[--------------------------------------------------------]
61  //[ Public virtual em5::packet::SerializedPacket methods ]
62  //[--------------------------------------------------------]
63  public:
64  virtual void serialize(qsf::BinarySerializer& serializer) override;
65 
66 
67  //[-------------------------------------------------------]
68  //[ Private data ]
69  //[-------------------------------------------------------]
70  private:
71  std::vector<multiplayer::HostEntry> mHostList;
72 
73 
74  };
75 
76 
77 //[-------------------------------------------------------]
78 //[ Namespace ]
79 //[-------------------------------------------------------]
80  } // packet
81 } // em5
Definition: ActionPriority.h:13
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
static const uint32 PACKET_ID
Definition: HostList.h:43
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
TODO(co) Comment me.
Definition: BinaryPacket.h:108
TODO(co) Comment me.
Definition: HostList.h:35
Binary serializer class.
Definition: BinarySerializer.h:35