AdvertiseOptions.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef __IGN_TRANSPORT_ADVERTISEOPTIONS_HH_INCLUDED__
19 #define __IGN_TRANSPORT_ADVERTISEOPTIONS_HH_INCLUDED__
20 
21 #include <memory>
22 
24 
25 namespace ignition
26 {
27  namespace transport
28  {
30 
33  enum class Scope_t
34  {
37  PROCESS,
40  HOST,
42  ALL
43  };
44 
51  {
53  public: AdvertiseOptions();
54 
57  public: AdvertiseOptions(const AdvertiseOptions &_other);
58 
60  public: virtual ~AdvertiseOptions();
61 
65  public: AdvertiseOptions &operator=(const AdvertiseOptions &_other);
66 
71  public: const Scope_t &Scope() const;
72 
77  public: void SetScope(const Scope_t &_scope);
78 
81  protected: std::unique_ptr<transport::AdvertiseOptionsPrivate> dataPtr;
82  };
83  }
84 }
85 #endif
Topic/service available to any subscriber (default scope).
#define IGNITION_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:56
std::unique_ptr< transport::AdvertiseOptionsPrivate > dataPtr
Definition: AdvertiseOptions.hh:81
Definition: AdvertiseOptionsPrivate.hh:30
Topic/service only available to subscribers in the same process as the publisher. ...
ignition/transport/AdvertiseOptions.hh
Definition: AdvertiseOptions.hh:50
Scope_t
Definition: AdvertiseOptions.hh:33
Definition: AdvertiseOptions.hh:25
Topic/service only available to subscribers in the same machine as the publisher. ...