Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
usModuleResourceStream.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef USMODULERESOURCESTREAM_H
14 #define USMODULERESOURCESTREAM_H
15 
16 #include <usModuleResourceBuffer_p.h>
17 
18 #include <fstream>
19 
20 namespace us {
21 
22 class ModuleResource;
23 
34 class MITKCPPMICROSERVICES_EXPORT ModuleResourceStream : private ModuleResourceBuffer, public std::istream
35 {
36 
37 public:
38 
50  std::ios_base::openmode mode = std::ios_base::in);
51 
52 private:
53 
54  // purposely not implemented
56  ModuleResourceStream& operator=(const ModuleResourceStream&);
57 };
58 
59 }
60 
61 #endif // USMODULERESOURCESTREAM_H
#define MITKCPPMICROSERVICES_EXPORT
An input stream class for ModuleResource objects.
ModuleResourceStream(const ModuleResource &resource, std::ios_base::openmode mode=std::ios_base::in)
Construct a ModuleResourceStream object.
Represents a resource (text file, image, etc.) embedded in a CppMicroServices module.