aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull/writer.cpp
blob: 566b2487147a230caf2ee68da89380b2040e9c9d (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
#include "writer.h" 
#include <library/cpp/yson_pull/detail/writer.h>
 
using namespace NYsonPull; 
 
TWriter NYsonPull::MakeBinaryWriter( 
    THolder<NOutput::IStream> stream, 
    EStreamType mode) {
    return NYsonPull::NDetail::make_writer<NYsonPull::NDetail::TBinaryWriterImpl>( 
        std::move(stream), 
        mode);
} 
 
TWriter NYsonPull::MakeTextWriter( 
    THolder<NOutput::IStream> stream, 
    EStreamType mode) {
    return NYsonPull::NDetail::make_writer<NYsonPull::NDetail::TTextWriterImpl>( 
        std::move(stream), 
        mode);
} 
 
TWriter NYsonPull::MakePrettyTextWriter( 
    THolder<NOutput::IStream> stream, 
    EStreamType mode, 
    size_t indent_size) {
    return NYsonPull::NDetail::make_writer<NYsonPull::NDetail::TPrettyWriterImpl>( 
        std::move(stream), 
        mode, 
        indent_size);
}