The Gaudi Framework
master (37c0b60a)
createGuidAsString.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
12
#include "
createGuidAsString.h
"
13
#include <uuid/uuid.h>
14
15
std::string
Gaudi::createGuidAsString
() {
16
uuid_t uuid;
17
std::string
uuid_s( 36,
'0'
);
18
::uuid_generate_time( uuid );
19
::uuid_unparse_upper( uuid, uuid_s.data() );
20
return
uuid_s;
21
}
std::string
STL class.
createGuidAsString.h
Gaudi::createGuidAsString
std::string createGuidAsString()
Helper function creating file identifier using the UUID mechanism.
GaudiUtils
src
component
createGuidAsString.cpp
Generated on Thu Dec 19 2024 15:35:08 for The Gaudi Framework by
1.8.18