FairMQ  1.4.14
C++ Message Queuing Library and Framework
DDSCollection.h
1 /********************************************************************************
2  * Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #ifndef FAIR_MQ_SDK_DDSCOLLECTION_H
10 #define FAIR_MQ_SDK_DDSCOLLECTION_H
11 
12 // #include <fairmq/sdk/DDSAgent.h>
13 
14 #include <ostream>
15 #include <cstdint>
16 
17 namespace fair {
18 namespace mq {
19 namespace sdk {
20 
26 {
27  public:
28  using Id = std::uint64_t;
29 
30  explicit DDSCollection(Id id)
31  : fId(id)
32  {}
33 
34  Id GetId() const { return fId; }
35 
36  friend auto operator<<(std::ostream& os, const DDSCollection& collection) -> std::ostream&
37  {
38  return os << "DDSCollection id: " << collection.fId;
39  }
40 
41  private:
42  Id fId;
43 };
44 
45 } // namespace sdk
46 } // namespace mq
47 } // namespace fair
48 
49 #endif /* FAIR_MQ_SDK_DDSCOLLECTION_H */
Represents a DDS collection.
Definition: DDSCollection.h:25
Tools for interfacing containers to the transport via polymorphic allocators.
Definition: DeviceRunner.h:23

privacy