Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
ImporterUtil.h
Go to the documentation of this file.
1
/*============================================================================
2
3
Copyright (c) German Cancer Research Center (DKFZ)
4
All rights reserved.
5
6
Redistribution and use in source and binary forms, with or without
7
modification, are permitted provided that the following conditions are met:
8
9
- Redistributions of source code must retain the above copyright notice, this
10
list of conditions and the following disclaimer.
11
12
- Redistributions in binary form must reproduce the above copyright notice,
13
this list of conditions and the following disclaimer in the documentation
14
and/or other materials provided with the distribution.
15
16
- All advertising materials mentioning features or use of this software must
17
display the following acknowledgement:
18
19
"This product includes software developed by the German Cancer Research
20
Center (DKFZ)."
21
22
- Neither the name of the German Cancer Research Center (DKFZ) nor the names
23
of its contributors may be used to endorse or promote products derived from
24
this software without specific prior written permission.
25
26
THIS SOFTWARE IS PROVIDED BY THE GERMAN CANCER RESEARCH CENTER (DKFZ) AND
27
CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
28
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE GERMAN
30
CANCER RESEARCH CENTER (DKFZ) OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
37
DAMAGE.
38
39
============================================================================*/
40
41
#ifndef ImporterUtil_h
42
#define ImporterUtil_h
43
44
#include <QString>
45
46
class
ImporterUtil
{
47
public
:
51
static
std::string
getUTF8String
(
const
QString&
string
) {
52
return
string
.toLocal8Bit().toStdString();
53
}
54
};
55
56
#endif
ImporterUtil::getUTF8String
static std::string getUTF8String(const QString &string)
Convert a given QString to a utf-8 encoded string (platform-independently)
Definition:
ImporterUtil.h:51
ImporterUtil
Definition:
ImporterUtil.h:46
src
MITK
Plugins
org.mitk.gui.qt.common
src
ImporterUtil.h
Generated on Wed May 17 2023 16:26:02 for Medical Imaging Interaction Toolkit by
1.8.17