stream.h 591 B

123456789101112131415161718
  1. #pragma once
  2. #include <library/cpp/unified_agent_client/client.h>
  3. namespace NUnifiedAgent {
  4. class IStreamRecordConverter {
  5. public:
  6. virtual ~IStreamRecordConverter() = default;
  7. virtual TClientMessage Convert(const void* buf, size_t len) const = 0;
  8. };
  9. THolder<IStreamRecordConverter> MakeDefaultStreamRecordConverter(bool stripTrailingNewLine = true);
  10. THolder<IOutputStream> MakeOutputStream(const TClientParameters& parameters,
  11. const TSessionParameters& sessionParameters = {},
  12. THolder<IStreamRecordConverter> recordConverter = {});
  13. }