Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkRESTUtil.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 mitkRESTUtil_h
14 #define mitkRESTUtil_h
15 
16 #include <MitkRESTExports.h>
17 #include <cpprest/asyncrt_utils.h>
18 #include <map>
19 
20 
21 namespace mitk
22 {
23  class MITKREST_EXPORT RESTUtil
24  {
25  public:
26 
27  typedef std::map<utility::string_t, utility::string_t> ParamMap;
28 
32  static std::string convertToUtf8(const utility::string_t &string)
33  {
34  return utility::conversions::to_utf8string(string);
35  }
36 
40  static utility::string_t convertToTString(const std::string &string)
41  {
42  return utility::conversions::to_string_t(string);
43  }
44  };
45 }
46 
47 #endif
mitk::RESTUtil::convertToUtf8
static std::string convertToUtf8(const utility::string_t &string)
Converts the given std::wstring into a std::string representation.
Definition: mitkRESTUtil.h:32
mitk::RESTUtil::ParamMap
std::map< utility::string_t, utility::string_t > ParamMap
Definition: mitkRESTUtil.h:27
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::RESTUtil
Definition: mitkRESTUtil.h:23
mitk::RESTUtil::convertToTString
static utility::string_t convertToTString(const std::string &string)
Converts the given std::string into a std::wstring representation.
Definition: mitkRESTUtil.h:40