16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_INPROCESSATTACHMENTWRITER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_INPROCESSATTACHMENTWRITER_H_ 27 namespace attachment {
47 static std::unique_ptr<InProcessAttachmentWriter>
create(
48 std::shared_ptr<SDSType> sds,
49 SDSTypeWriter::Policy policy = SDSTypeWriter::Policy::ALL_OR_NOTHING);
60 std::chrono::milliseconds timeout = std::chrono::milliseconds(0))
override;
62 void close()
override;
72 std::shared_ptr<SDSType> sds,
73 SDSTypeWriter::Policy policy = SDSTypeWriter::Policy::ALL_OR_NOTHING);
84 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_INPROCESSATTACHMENTWRITER_H_ std::shared_ptr< SDSTypeWriter > m_writer
The underlying SharedDataStream reader.
Definition: InProcessAttachmentWriter.h:76
Definition: AttachmentWriter.h:31
InProcessAttachmentWriter(std::shared_ptr< SDSType > sds, SDSTypeWriter::Policy policy=SDSTypeWriter::Policy::ALL_OR_NOTHING)
~InProcessAttachmentWriter()
avsCommon::utils::sds::InProcessSDS SDSType
Type aliases for convenience.
Definition: InProcessAttachmentWriter.h:37
Definition: InProcessAttachmentWriter.h:34
static std::unique_ptr< InProcessAttachmentWriter > create(std::shared_ptr< SDSType > sds, SDSTypeWriter::Policy policy=SDSTypeWriter::Policy::ALL_OR_NOTHING)
SharedDataStream< InProcessSDSTraits > InProcessSDS
Type alias for a SharedDataStream which works between threads in a single process.
Definition: InProcessSDS.h:54
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
SDSType::Writer SDSTypeWriter
Definition: InProcessAttachmentWriter.h:38
std::size_t write(const void *buf, std::size_t numBytes, WriteStatus *writeStatus, std::chrono::milliseconds timeout=std::chrono::milliseconds(0)) override
WriteStatus
Definition: AttachmentWriter.h:36