https://github.com/okigan/dcmtk/blob/master/dcmdata/include/dcmtk/dcmdata/dcuid.h
/** creates a Unique Identifer in uid and returns uid.
* uid must be at least 65 bytes. Care is taken to make sure
* that the generated UID is 64 characters or less.
* If a prefix string is not passed as the second argument a
* default of SITE_INSTANCE_UID_ROOT (see below) will be used.
* Otherwise the supplied prefix string will appear at the beginning
* of uid.
* The UID is created by appending to the prefix the following:
* the host id (if obtainable, zero otherwise),
* the process id (if obtainable, zero otherwise),
* the system calendar time, and
* an accumulating counter for tis process.
* @param uid pointer to buffer of 65 or more characters in which the UID is returned
* @param prefix prefix for UID creation
* @return pointer to UID, identical to uid parameter
*/
DCMTK_DCMDATA_EXPORT char *dcmGenerateUniqueIdentifier ( char *uid, const char* prefix = NULL );
#include "dcmtk/dcmdata/dcuid.h"
....
char *uid = NULL;
dcmGenerateUniqueIdentifier(uid);
.....
'Programming > C++' 카테고리의 다른 글
[AWSSDKCPP] Aws::MakeShared 에러 (0) | 2021.01.28 |
---|---|
[C++] C++에서 AWS SDK 직접 빌드해 사용하기. (0) | 2021.01.05 |
[C++] Error: LNK1117 'VERSION: 1.0.0.0' 옵션에 구문 오류가 있습니다. (0) | 2020.11.19 |
[C++] Convert CStirng to const char* (0) | 2020.05.20 |
[C++] CString to const char* (0) | 2018.05.11 |