Clio develop
The XRP Ledger API server.
|
A decorator that decorates a string (log line) with a unique tag. More...
#include <Taggable.hpp>
Public Member Functions | |
TagDecorator (ParentType parent=std::nullopt) | |
Create a new tag decorator with an optional parent. | |
void | decorate (std::ostream &os) const override |
Implementation of the decoration. Chaining tags when parent is available. | |
![]() |
A decorator that decorates a string (log line) with a unique tag.
Generator | The strategy used to generate the tag. |
|
inlineexplicit |
Create a new tag decorator with an optional parent.
If the parent
is specified it will be streamed out as a chain when this decorator will decorate an ostream.
Note that if parent
is specified it is your responsibility that the decorator referred to by parent
outlives this decorator.
parent | An optional parent tag decorator |
|
inlineoverridevirtual |
Implementation of the decoration. Chaining tags when parent is available.
os | The stream to output into |
Implements util::BaseTagDecorator.