BundleResourceStream¶
-
class BundleResourceStream : private cppmicroservices::detail::BundleResourceBuffer, public std::istream¶
An input stream class for BundleResource objects.
This class provides access to the resource data embedded in a bundle’s shared library via a STL input stream interface.
Public Functions
-
BundleResourceStream(BundleResourceStream const&) = delete¶
-
BundleResourceStream &operator=(BundleResourceStream const&) = delete¶
-
BundleResourceStream(BundleResource const &resource, std::ios_base::openmode mode = std::ios_base::in)¶
Construct a BundleResourceStream object.
- Parameters:
resource – The BundleResource object for which an input stream should be constructed.
mode – The open mode of the stream. If
std::ios_base::binary
is used, the resource data will be treated as binary data, otherwise the data is interpreted as text data and the usual platform specific end-of-line translations take place.
-
BundleResourceStream(BundleResourceStream const&) = delete¶