fw4spl
fwMedDataTools/include/fwMedDataTools/functions.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWMEDDATATOOLS_FUNCTIONS_HPP__
8 #define __FWMEDDATATOOLS_FUNCTIONS_HPP__
9 
10 #include "fwMedDataTools/config.hpp"
11 
12 #include <string>
13 
14 namespace fwMedDataTools
15 {
16 
17 // Skip this for now on Android, this allows us to get rid of GDCM
18 #ifndef ANDROID
19 
24 FWMEDDATATOOLS_API std::string generatePatientId();
25 
32 FWMEDDATATOOLS_API std::string generateStudyInstanceUid();
33 
34 #endif // ANDROID
35 
36 } // namespace fwMedDataTools
37 
38 #endif //__FWMEDDATATOOLS_FUNCTIONS_HPP__
FWMEDDATATOOLS_API std::string generateStudyInstanceUid()
Generates a random Dicom Study Instance UID using current time. It must be 16 char long and may be nu...
FWMEDDATATOOLS_API std::string generatePatientId()
Generates a random Dicom Patient ID using GDCM. It must be at most 64 char long and non null...
Contains utilities dedicated to fwMedData.