16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_ATTACHMENTWRITER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_ATTACHMENTWRITER_H_ 26 namespace attachment {
68 virtual std::size_t
write(
72 std::chrono::milliseconds timeout = std::chrono::milliseconds(0)) = 0;
78 virtual void close() = 0;
97 stream <<
"OK_BUFFER_FULL";
100 stream <<
"ERROR_BYTES_LESS_THAN_WORD_SIZE";
103 stream <<
"ERROR_INTERNAL";
106 stream <<
"TIMEDOUT";
117 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_ATTACHMENTWRITER_H_ The write could not succeed due to the underlying buffer being full.
The write timed out. This is only possible if the writer policy is BLOCKING.
Definition: AttachmentWriter.h:31
The underlying data representation is no longer writeable.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::ostream & operator<<(std::ostream &stream, const AttachmentReader::ReadStatus &status)
Definition: AttachmentReader.h:119
virtual std::size_t write(const void *buf, std::size_t numBytes, WriteStatus *writeStatus, std::chrono::milliseconds timeout=std::chrono::milliseconds(0))=0
A non-specified error occurred.
virtual ~AttachmentWriter()=default
WriteStatus
Definition: AttachmentWriter.h:36