Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkUIDGeneratorBoost.cpp
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 // semantic relation module
14 #include "mitkUIDGeneratorBoost.h"
15 
16 #include <boost/uuid/uuid.hpp>
17 #include <boost/uuid/uuid_generators.hpp>
18 #include <boost/uuid/uuid_io.hpp>
19 
21 {
22  boost::uuids::uuid uuid = boost::uuids::random_generator()();
23  return boost::uuids::to_string(uuid);
24 }
MITKSEMANTICRELATIONS_EXPORT std::string GenerateUID()