OpenDDS
Snapshot(2023/04/28-20:55)
dds
DCPS
LogAddr.h
Go to the documentation of this file.
1
#ifndef OPENDDS_DCPS_LOGADDR_H
2
#define OPENDDS_DCPS_LOGADDR_H
3
4
#include "
dcps_export.h
"
5
#include "
PoolAllocator.h
"
6
#include "
NetworkAddress.h
"
7
8
#include <
dds/Versioned_Namespace.h
>
9
10
#include <
ace/INET_Addr.h
>
11
12
#include <cstddef>
13
14
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
15
16
namespace
OpenDDS
{
17
namespace
DCPS {
18
19
class
OpenDDS_Dcps_Export
LogAddr
{
20
public
:
21
enum
Option
{Ip,
Port
, Host, IpPort, HostPort, IpPortHost};
22
23
static
const
size_t
BufSize
;
24
static
const
String
ip
(
const
ACE_INET_Addr
& addr);
25
static
const
String
port(
const
ACE_INET_Addr
& addr);
26
static
const
String
host(
const
ACE_INET_Addr
& addr);
27
28
explicit
LogAddr
(
const
ACE_INET_Addr
& addr,
Option
opt = IpPort);
29
explicit
LogAddr
(
const
NetworkAddress
& addr,
Option
opt = IpPort);
30
31
const
String
&
str
()
const
{
return
addr_; }
32
const
char
*
c_str
()
const
{
return
addr_.c_str(); }
33
34
private
:
35
void
init_addr(
const
ACE_INET_Addr
& addr,
Option
opt);
36
37
String
addr_
;
38
};
39
40
}
// namespace DCPS
41
}
// namespace OpenDDS
42
43
OPENDDS_END_VERSIONED_NAMESPACE_DECL
44
45
#endif // OPENDDS_DCPS_LOGADDR_H
Versioned_Namespace.h
OpenDDS::DCPS::NetworkAddress
Definition:
NetworkAddress.h:28
OpenDDS::DCPS::LogAddr::addr_
String addr_
Definition:
LogAddr.h:37
NetworkAddress.h
OpenDDS::DCPS::String
std::string String
Definition:
PoolAllocator.h:163
dcps_export.h
ip
OpenDDS_Dcps_Export
#define OpenDDS_Dcps_Export
Definition:
dcps_export.h:24
OpenDDS::DCPS::LogAddr
Definition:
LogAddr.h:19
ACE_INET_Addr
PoolAllocator.h
OpenDDS::DCPS::LogAddr::BufSize
static const size_t BufSize
Definition:
LogAddr.h:23
OpenDDS::DCPS::LogAddr::c_str
const char * c_str() const
Definition:
LogAddr.h:32
OpenDDS::DCPS::LogAddr::Option
Option
Definition:
LogAddr.h:21
INET_Addr.h
OpenDDS::DCPS::LogAddr::Port
Definition:
LogAddr.h:21
OpenDDS::DCPS::LogAddr::str
const String & str() const
Definition:
LogAddr.h:31
OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
Definition:
Versioned_Namespace.h:48
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
Definition:
Hash.cpp:17
OpenDDS
The Internal API and Implementation of OpenDDS.
Definition:
AddressCache.h:28
Generated by
1.8.13