FairMQ  1.4.33
C++ Message Queuing Library and Framework
DDSEnvironment.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_DDSENVIRONMENT_H
10 #define FAIR_MQ_SDK_DDSENVIRONMENT_H
11 
12 #include <boost/filesystem.hpp>
13 #include <memory>
14 #include <ostream>
15 
16 namespace fair::mq::sdk
17 {
18 
23 class DDSEnvironment
24 {
25  public:
26  using Path = boost::filesystem::path;
27 
28  DDSEnvironment();
29  explicit DDSEnvironment(Path);
30 
31  auto GetLocation() const -> Path;
32  auto GetConfigHome() const -> Path;
33 
34  friend auto operator<<(std::ostream& os, DDSEnvironment env) -> std::ostream&;
35  private:
36  struct Impl;
37  std::shared_ptr<Impl> fImpl;
38 };
39 
40 using DDSEnv = DDSEnvironment;
41 
42 } // namespace fair::mq::sdk
43 
44 #endif /* FAIR_MQ_SDK_DDSENVIRONMENT_H */
fair::mq::sdk::DDSEnvironment
Sets up the DDS environment (object helper)
Definition: DDSEnvironment.h:30
fair::mq::sdk::DDSEnvironment::Impl
Definition: DDSEnvironment.cxx:29

privacy