The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
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
15std::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 createGuidAsString()
Helper function creating file identifier using the UUID mechanism.