xrpld
Loading...
Searching...
No Matches
xrpl::test::TestNetworkIDService Class Referencefinal

Simple NetworkIDService implementation for tests. More...

#include <TestServiceRegistry.h>

Inheritance diagram for xrpl::test::TestNetworkIDService:
Collaboration diagram for xrpl::test::TestNetworkIDService:

Public Member Functions

 TestNetworkIDService (std::uint32_t networkID=0)
std::uint32_t getNetworkID () const noexcept override
 Get the configured network ID.

Private Attributes

std::uint32_t networkID_

Detailed Description

Simple NetworkIDService implementation for tests.

Definition at line 37 of file TestServiceRegistry.h.

Constructor & Destructor Documentation

◆ TestNetworkIDService()

xrpl::test::TestNetworkIDService::TestNetworkIDService ( std::uint32_t networkID = 0)
explicit

Definition at line 40 of file TestServiceRegistry.h.

Member Function Documentation

◆ getNetworkID()

std::uint32_t xrpl::test::TestNetworkIDService::getNetworkID ( ) const
nodiscardoverridevirtualnoexcept

Get the configured network ID.

Returns
The network ID this server is configured for

Implements xrpl::NetworkIDService.

Definition at line 45 of file TestServiceRegistry.h.

Member Data Documentation

◆ networkID_

std::uint32_t xrpl::test::TestNetworkIDService::networkID_
private

Definition at line 51 of file TestServiceRegistry.h.