Medical Imaging Interaction Toolkit  2022.04.99-8b707dbd
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 {
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
DataCollection - Class to facilitate loading/accessing structured data.
static utility::string_t convertToTString(const std::string &string)
Converts the given std::string into a std::wstring representation.
Definition: mitkRESTUtil.h:40
#define MITKREST_EXPORT
static std::string convertToUtf8(const utility::string_t &string)
Converts the given std::wstring into a std::string representation.
Definition: mitkRESTUtil.h:32
std::map< utility::string_t, utility::string_t > ParamMap
Definition: mitkRESTUtil.h:27