NodePrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 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_NODEPRIVATE_HH_INCLUDED__
19 #define __IGN_TRANSPORT_NODEPRIVATE_HH_INCLUDED__
20 
21 #include <string>
22 #include <unordered_set>
23 
27 
28 namespace ignition
29 {
30  namespace transport
31  {
32  class NodeShared;
33 
37  {
39  public: NodePrivate() = default;
40 
42  public: virtual ~NodePrivate() = default;
43 
45  public: std::unordered_set<std::string> topicsSubscribed;
46 
48  public: std::unordered_set<std::string> topicsAdvertised;
49 
51  public: std::unordered_set<std::string> srvsAdvertised;
52 
54  public: std::string nUuid;
55 
58  public: NodeShared *shared = NodeShared::Instance();
59 
61  public: std::string partition = hostname() + ":" + username();
62 
64  public: std::string ns = "";
65 
68  };
69  }
70 }
71 #endif
#define IGNITION_VISIBLE
Use to represent "symbol visible" if supported.
Definition: Helpers.hh:56
std::string nUuid
Node UUID. This ID is unique for each node.
Definition: NodePrivate.hh:54
std::unordered_set< std::string > srvsAdvertised
The list of service calls advertised by this node.
Definition: NodePrivate.hh:51
static NodeShared * Instance()
NodeShared is a singleton.
A class for customizing the behavior of the Node.
Definition: NodeOptions.hh:35
std::unordered_set< std::string > topicsSubscribed
The list of topics subscribed by this node.
Definition: NodePrivate.hh:45
std::unordered_set< std::string > topicsAdvertised
The list of topics advertised by this node.
Definition: NodePrivate.hh:48
Private data for the Node class.
Definition: NodeShared.hh:53
NodeOptions options
Custom options for this node.
Definition: NodePrivate.hh:67
Private data for Private Node class.
Definition: NodePrivate.hh:36
IGNITION_VISIBLE std::string hostname()
Determine the computer&#39;s hostname.
IGNITION_VISIBLE std::string username()
Determine your login name.
Definition: AdvertiseOptions.hh:25