uri_facade.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <string>
14 
15 namespace Common
16 {
17 
18 class Uri
19 {
20 public:
21  explicit Uri(const std::string & uriString)
22  {
23  Initialize(uriString);
24  }
25 
27  {
28  return SchemeStr;
29  }
30 
31  std::string User() const
32  {
33  return UserStr;
34  }
35 
37  {
38  return PasswordStr;
39  }
40 
41  std::string Host() const
42  {
43  return HostStr;
44  }
45 
46  unsigned Port() const
47  {
48  return PortNum;
49  }
50 
51 private:
52  void Initialize(const std::string & uriString);
53 
54 private:
59  unsigned PortNum;
60 };
61 
62 } // namespace Common
63 
std::string Password() const
Definition: uri_facade.h:36
Addon interface definition GNU LGPL.
std::string Scheme() const
Definition: uri_facade.h:26
std::string User() const
Definition: uri_facade.h:31
void Initialize(const std::string &uriString)
std::string PasswordStr
Definition: uri_facade.h:57
Uri(const std::string &uriString)
Definition: uri_facade.h:21
unsigned Port() const
Definition: uri_facade.h:46
std::string SchemeStr
Definition: uri_facade.h:55
unsigned PortNum
Definition: uri_facade.h:59
std::string UserStr
Definition: uri_facade.h:56
std::string HostStr
Definition: uri_facade.h:58
std::string Host() const
Definition: uri_facade.h:41


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:08