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