Clio
develop
The XRP Ledger API server.
Theme:
Default
Round
Robot
Toggle main menu visibility
Loading...
Searching...
No Matches
ForwardFeed.hpp
1
#pragma once
2
3
#include "feed/impl/SingleFeedBase.hpp"
4
5
#include <boost/json/object.hpp>
6
#include <boost/json/serialize.hpp>
7
8
namespace
feed::impl {
9
13
struct
ForwardFeed
:
public
SingleFeedBase
{
14
using
SingleFeedBase::SingleFeedBase
;
15
19
void
20
pub
(boost::json::object
const
& json)
21
{
22
SingleFeedBase::pub
(boost::json::serialize(json));
23
}
24
};
25
}
// namespace feed::impl
feed::impl::SingleFeedBase::pub
void pub(std::string msg)
Publishes the feed in strand.
Definition
SingleFeedBase.cpp:51
feed::impl::SingleFeedBase::SingleFeedBase
SingleFeedBase(util::async::AnyExecutionContext &executionCtx, std::string const &name)
Construct a new Single Feed Base object.
Definition
SingleFeedBase.cpp:16
feed::impl::ForwardFeed
Feed that publishes the json object as it is.
Definition
ForwardFeed.hpp:13
feed::impl::ForwardFeed::pub
void pub(boost::json::object const &json)
Publishes the json object.
Definition
ForwardFeed.hpp:20
feed::impl::ForwardFeed::SingleFeedBase
SingleFeedBase(util::async::AnyExecutionContext &executionCtx, std::string const &name)
Construct a new Single Feed Base object.
Definition
SingleFeedBase.cpp:16
src
feed
impl
ForwardFeed.hpp
Generated by
1.17.0