Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
us::ModuleResourceStream Class Reference

#include <usModuleResourceStream.h>

Inheritance diagram for us::ModuleResourceStream:
Collaboration diagram for us::ModuleResourceStream:

Public Member Functions

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

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.

Definition at line 43 of file usModuleResourceStream.h.

Constructor & Destructor Documentation

◆ ModuleResourceStream()

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

Definition at line 31 of file usModuleResourceStream.cpp.


The documentation for this class was generated from the following files: