17 #ifndef COM_BORA_SOFTWARE__BALAU_RESOURCE__STRING_URI_WRITE_RESOURCE 18 #define COM_BORA_SOFTWARE__BALAU_RESOURCE__STRING_URI_WRITE_RESOURCE 40 : stringUri(std::move(rhs.stringUri))
41 , stream(std::move(rhs.stream)) {}
51 public:
const Uri &
uri()
const override;
53 public:
void close()
override {}
57 private: std::unique_ptr<StringUri> stringUri;
58 private: std::ostringstream stream;
63 #endif // COM_BORA_SOFTWARE__BALAU_RESOURCE__STRING_URI_WRITE_RESOURCE const Uri & uri() const override
Get the URI associated with this resource.
void close() override
Close the stream(s) in the resource.
Definition: StringUriByteWriteResource.hpp:53
A write-only resource which is written as bytes.
An abstract universal resource identifier.
Definition: Uri.hpp:131
The unified resource class hierarchy.
Definition: ByteReadResource.hpp:24
A write-only resource which is written from bytes.
Definition: ByteWriteResource.hpp:29
An immediate string pseudo-URI.
Definition: StringUri.hpp:49
A write only String URI that is written as bytes.
Definition: StringUriByteWriteResource.hpp:33
std::ostream & writeStream() override
Get the output stream of the byte write resource.
Definition: StringUriByteWriteResource.hpp:47
StringUriByteWriteResource(StringUri &stringUri_)
Create a new string Uri byte write resource from the supplied String URI.