xrpld
Loading...
Searching...
No Matches
include
xrpl
peerfinder
detail
SourceStrings.h
1
#pragma once
2
3
#include <xrpl/peerfinder/detail/Source.h>
4
5
#include <
memory
>
6
#include <
string
>
7
#include <
vector
>
8
9
namespace
xrpl::peer_finder
{
10
14
class
SourceStrings
:
public
Source
15
{
16
public
:
17
explicit
SourceStrings
() =
default
;
18
19
using
Strings
=
std::vector<std::string>
;
20
21
static
std::shared_ptr<Source>
22
make
(
std::string
const
&
name
,
Strings
const
& strings);
23
};
24
25
}
// namespace xrpl::peer_finder
std::string
xrpl::peer_finder::SourceStrings::SourceStrings
SourceStrings()=default
xrpl::peer_finder::SourceStrings::Strings
std::vector< std::string > Strings
Definition
SourceStrings.h:19
xrpl::peer_finder::SourceStrings::make
static std::shared_ptr< Source > make(std::string const &name, Strings const &strings)
Definition
SourceStrings.cpp:52
xrpl::peer_finder::Source
A static or dynamic source of peer addresses.
Definition
Source.h:22
xrpl::peer_finder::Source::name
virtual std::string const & name()=0
memory
xrpl::peer_finder
Definition
include/xrpl/peerfinder/Config.h:12
std::shared_ptr
string
vector
Generated by
1.16.1