Goby3  3.1.4
2024.02.22
interprocess_common.h
Go to the documentation of this file.
1 // Copyright 2020-2021:
2 // GobySoft, LLC (2013-)
3 // Community contributors (see AUTHORS file)
4 // File authors:
5 // Toby Schneider <toby@gobysoft.org>
6 //
7 //
8 // This file is part of the Goby Underwater Autonomy Project Libraries
9 // ("The Goby Libraries").
10 //
11 // The Goby Libraries are free software: you can redistribute them and/or modify
12 // them under the terms of the GNU Lesser General Public License as published by
13 // the Free Software Foundation, either version 2.1 of the License, or
14 // (at your option) any later version.
15 //
16 // The Goby Libraries are distributed in the hope that they will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU Lesser General Public License for more details.
20 //
21 // You should have received a copy of the GNU Lesser General Public License
22 // along with Goby. If not, see <http://www.gnu.org/licenses/>.
23 
24 #ifndef GOBY_MIDDLEWARE_APPLICATION_DETAIL_INTERPROCESS_COMMON_H
25 #define GOBY_MIDDLEWARE_APPLICATION_DETAIL_INTERPROCESS_COMMON_H
26 
27 namespace goby
28 {
29 namespace middleware
30 {
31 namespace detail
32 {
33 template <typename Config> inline Config make_interprocess_config(Config cfg, std::string app_name)
34 {
35  if (!cfg.has_client_name())
36  cfg.set_client_name(app_name);
37  return cfg;
38 }
39 
40 } // namespace detail
41 } // namespace middleware
42 } // namespace goby
43 
44 #endif
goby
The global namespace for the Goby project.
Definition: acomms_constants.h:33
detail
detail namespace with internal helper functions
Definition: json.hpp:246
goby::middleware::detail::make_interprocess_config
Config make_interprocess_config(Config cfg, std::string app_name)
Definition: interprocess_common.h:33