WSF
WsfXIO_Destination.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFXIO_DESTINATION_HPP
13#define WSFXIO_DESTINATION_HPP
14
15#include "wsf_export.h"
16
17#include <vector>
18
19class PakSocketIO;
21class WsfXIO_Packet;
22
26{
27public:
28 void Add(WsfXIO_Connection* aConnectionPtr);
29
30 void Remove(WsfXIO_Connection* aConnectionPtr);
31
32 void RemoveAll(WsfXIO_Connection* aConnectionPtr);
33
35 bool IsEmpty() const { return mIO_List.empty(); }
36
39 const std::vector<PakSocketIO*>& GetIO_List() const { return mIO_List; }
40
41 void Send(WsfXIO_Packet& aPkt);
42
43 const std::vector<WsfXIO_Connection*>& GetConnections() { return mConnectionList; }
44
45private:
46 void RebuildIO_List();
47 std::vector<WsfXIO_Connection*> mConnectionList;
48 std::vector<PakSocketIO*> mIO_List;
49};
50
51#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfXIO_Connection.hpp:37
Definition WsfXIO_Destination.hpp:26
void RemoveAll(WsfXIO_Connection *aConnectionPtr)
Definition WsfXIO_Destination.cpp:37
const std::vector< WsfXIO_Connection * > & GetConnections()
Definition WsfXIO_Destination.hpp:43
bool IsEmpty() const
Returns true if the destination is null.
Definition WsfXIO_Destination.hpp:35
const std::vector< PakSocketIO * > & GetIO_List() const
Definition WsfXIO_Destination.hpp:39
void Remove(WsfXIO_Connection *aConnectionPtr)
Removes a connection from the list.
Definition WsfXIO_Destination.cpp:28
void Add(WsfXIO_Connection *aConnectionPtr)
Definition WsfXIO_Destination.cpp:21
Base class for XIO Packets. Provides the header information.
Definition WsfXIO_Packet.hpp:46
Copyrights Multiple, All Rights Reserved