C++ Micro Services  2.1.1
A dynamic OSGi-like C++ service registry
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
ModuleResourceStream Class Reference

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

Inheritance diagram for ModuleResourceStream:
Inheritance graph
[legend]
Collaboration diagram for ModuleResourceStream:
Collaboration graph
[legend]

Public Member Functions

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

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.
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.
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.