16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_INPROCESSATTACHMENT_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_INPROCESSATTACHMENT_H_ 28 namespace attachment {
52 InProcessAttachmentWriter::SDSTypeWriter::Policy policy =
53 InProcessAttachmentWriter::SDSTypeWriter::Policy::ALL_OR_NOTHING)
override;
55 std::unique_ptr<AttachmentReader>
createReader(InProcessAttachmentReader::SDSTypeReader::Policy policy)
override;
59 std::shared_ptr<SDSType> m_sds;
61 const size_t m_maxNumReaders;
69 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_ATTACHMENT_INPROCESSATTACHMENT_H_ Definition: Attachment.h:37
::std::string string
Definition: gtest-port.h:1097
static const int SDS_BUFFER_DEFAULT_SIZE_IN_BYTES
Default size of underlying SDS when created internally.
Definition: InProcessAttachment.h:40
avsCommon::utils::sds::InProcessSDS SDSType
Type aliases for convenience.
Definition: InProcessAttachment.h:36
std::unique_ptr< AttachmentReader > createReader(InProcessAttachmentReader::SDSTypeReader::Policy policy) override
InProcessAttachment(const std::string &id, std::unique_ptr< SDSType > sds=nullptr, size_t maxNumReaders=1)
SharedDataStream< InProcessSDSTraits > InProcessSDS
Type alias for a SharedDataStream which works between threads in a single process.
Definition: InProcessSDS.h:54
avsCommon::utils::sds::InProcessSDSTraits::Buffer SDSBufferType
Definition: InProcessAttachment.h:37
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
std::vector< uint8_t > Buffer
A std::vector provides a simple container to hold a buffer for in-process usage.
Definition: InProcessSDS.h:41
Definition: InProcessAttachment.h:33
std::unique_ptr< AttachmentWriter > createWriter(InProcessAttachmentWriter::SDSTypeWriter::Policy policy=InProcessAttachmentWriter::SDSTypeWriter::Policy::ALL_OR_NOTHING) override