C++ Micro Services: ModuleResourceStream Class Reference
ModuleResourceStream Class Reference

An input stream class for ModuleResource objects. More...

Inheritance diagram for ModuleResourceStream:
Collaboration diagram for ModuleResourceStream:

Public Member Functions

 ModuleResourceStream (const ModuleResource &resource, std::ios_base::openmode mode=std::ios_base::in)
 Construct a ModuleResourceStream object. More...
 

Detailed Description

An input stream class for ModuleResource objects.

This class provides access to the resource data embedded in a module's shared library via a STL input stream interface.

See Also
ModuleResource for an example how to use this class.

Constructor & Destructor Documentation

ModuleResourceStream::ModuleResourceStream ( const ModuleResource resource,
std::ios_base::openmode  mode = std::ios_base::in 
)

Construct a ModuleResourceStream object.

Parameters
resourceThe ModuleResource object for which an input stream should be constructed.
modeThe 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.