API Reference > OdDAI Namespace > Classes > Session Class > Session Methods > Session::generateRepositoryUniqueName Method
Session::generateRepositoryUniqueName Method
Syntax
C++
static OdAnsiString generateRepositoryUniqueName(const Session * session, const OdAnsiString & name);
Parameters 
Description 
const Session * session 
[in] A pointer to session to find repository with name provided.  
const OdAnsiString & name 
[in] A supposed name of repository to create inside a session.  

Returns a name of repository which is available to create inside a session.

Tries to find repository with defined name inside current session. Changes and returns updated name of repository in the case if repository with provided name already exists in current session.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.