FairMQ  1.4.33
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::mq::sdk
18 {
19 
24 class DDSCollection
25 {
26  public:
27  using Id = std::uint64_t;
28 
29  explicit DDSCollection(Id id)
30  : fId(id)
31  {}
32 
33  Id GetId() const { return fId; }
34 
35  friend auto operator<<(std::ostream& os, const DDSCollection& collection) -> std::ostream&
36  {
37  return os << "DDSCollection id: " << collection.fId;
38  }
39 
40  private:
41  Id fId;
42 };
43 
44 } // namespace fair::mq::sdk
45 
46 #endif /* FAIR_MQ_SDK_DDSCOLLECTION_H */

privacy