]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
dout: add DoutPrefixPipe for composing prefix providers
authorCasey Bodley <cbodley@redhat.com>
Wed, 29 Aug 2018 17:54:47 +0000 (13:54 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 6 Sep 2018 20:16:01 +0000 (16:16 -0400)
commit386217862480c6185b192f915bb8a66ec03d086a
tree4bbb8236387d53cecf1e4a9c4fd7735028229998
parent532f2880bd44e2d0b28699c041ff1f55784cb601
dout: add DoutPrefixPipe for composing prefix providers

a wonderful feature of DoutPrefixProviders is that they can be composed,
with each Provider adding onto the prefix of the previous one

to aid with this composition, add a DoutPrefixPipe that takes an
existing Provider and forwards the DoutPrefixProvider interface to it

the class that implements the DoutPrefixPipe interface only has to
override one virtual function, and never has to reference the previous
Provider after passing it to the DoutPrefixPipe constructor

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/common/dout.h