#pragma once #include namespace NUnifiedAgent { class IStreamRecordConverter { public: virtual ~IStreamRecordConverter() = default; virtual TClientMessage Convert(const void* buf, size_t len) const = 0; }; THolder MakeDefaultStreamRecordConverter(bool stripTrailingNewLine = true); THolder MakeOutputStream(const TClientParameters& parameters, const TSessionParameters& sessionParameters = {}, THolder recordConverter = {}); }