rippled
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
19{
20public:
21 explicit NetworkIDServiceImpl(std::uint32_t networkID);
22
23 ~NetworkIDServiceImpl() override = default;
24
26 getNetworkID() const noexcept override;
27
28private:
29 std::uint32_t networkID_;
30};
31
32} // namespace xrpl
Implementation of NetworkIDService that reads from Config.
std::uint32_t getNetworkID() const noexcept override
Get the configured network ID.
~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