blob: ef04ec239c19f0486ad0aa035eacbeeb9e060d17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include "input.h"
/**
* @addtogroup Streams_Multi
* @{
*/
/**
* A proxy input stream that concatenates two slave streams into one.
*/
class TMultiInput: public IInputStream {
public:
TMultiInput(IInputStream* f Y_LIFETIME_BOUND, IInputStream* s Y_LIFETIME_BOUND) noexcept;
~TMultiInput() override;
private:
size_t DoRead(void* buf, size_t len) override;
size_t DoSkip(size_t len) override;
size_t DoReadTo(TString& st, char ch) override;
private:
IInputStream* C_;
IInputStream* N_;
};
/**
* See also "util/stream/tee.h" for multi output.
*/
/** @} */
|