xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
core
NetworkIDServiceImpl.h
1
#pragma once
2
3
#include <xrpl/core/NetworkIDService.h>
4
5
#include <
cstdint
>
6
7
namespace
xrpl
{
8
9
// Forward declaration
10
class
Config
;
11
19
class
NetworkIDServiceImpl
final :
public
NetworkIDService
20
{
21
public
:
22
explicit
NetworkIDServiceImpl
(
std::uint32_t
networkID);
23
24
~NetworkIDServiceImpl
()
override
=
default
;
25
26
[[nodiscard]]
std::uint32_t
27
getNetworkID
() const noexcept override;
28
29
private:
30
std
::uint32_t
networkID_
;
31
};
32
33
}
// namespace xrpl
xrpl::Config
Definition
src/xrpld/core/Config.h:89
xrpl::NetworkIDServiceImpl::networkID_
std::uint32_t networkID_
Definition
NetworkIDServiceImpl.h:30
xrpl::NetworkIDServiceImpl::getNetworkID
std::uint32_t getNetworkID() const noexcept override
Get the configured network ID.
Definition
NetworkIDServiceImpl.cpp:12
xrpl::NetworkIDServiceImpl::NetworkIDServiceImpl
NetworkIDServiceImpl(std::uint32_t networkID)
Definition
NetworkIDServiceImpl.cpp:7
xrpl::NetworkIDServiceImpl::~NetworkIDServiceImpl
~NetworkIDServiceImpl() override=default
xrpl::NetworkIDService
Service that provides access to the network ID.
Definition
NetworkIDService.h:22
cstdint
std::uint32_t
std
STL namespace.
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
Generated by
1.17.0