All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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_
19 #define IGN_TRANSPORT_NODEPRIVATE_HH_
20 
21 #include <string>
22 #include <unordered_set>
23 
26 
27 namespace ignition
28 {
29  namespace transport
30  {
31  class NodeShared;
32 
36  {
38  public: NodePrivate() = default;
39 
41  public: virtual ~NodePrivate() = default;
42 
44  public: std::unordered_set<std::string> topicsSubscribed;
45 
47  public: std::unordered_set<std::string> srvsAdvertised;
48 
50  public: std::string nUuid;
51 
55 
57  public: std::string partition = hostname() + ":" + username();
58 
60  public: std::string ns = "";
61 
64  };
65  }
66 }
67 #endif
std::string nUuid
Node UUID. This ID is unique for each node.
Definition: NodePrivate.hh:50
std::unordered_set< std::string > srvsAdvertised
The list of service calls advertised by this node.
Definition: NodePrivate.hh:47
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:44
IGNITION_TRANSPORT_VISIBLE std::string username()
Determine your login name.
std::string partition
Partition for this node.
Definition: NodePrivate.hh:57
std::string ns
Default namespace for this node.
Definition: NodePrivate.hh:60
virtual ~NodePrivate()=default
Destructor.
Private data for the Node class.
Definition: NodeShared.hh:54
NodeOptions options
Custom options for this node.
Definition: NodePrivate.hh:63
Definition: NodePrivate.hh:35
NodePrivate()=default
Constructor.
IGNITION_TRANSPORT_VISIBLE std::string hostname()
Determine the computer's hostname.
NodeShared * shared
Pointer to the object shared between all the nodes within the same process.
Definition: NodePrivate.hh:54