SPH
Public Member Functions | List of all members
UniqueNameManager Class Reference

#include <StringUtils.h>

Public Member Functions

 UniqueNameManager ()=default
 
 UniqueNameManager (ArrayView< const std::string > initial)
 
std::string getName (const std::string &name)
 

Detailed Description

Helper class for generating unique names.

Calling getName stores the name in the object. If the function is called with the same parameter for the second time, the name is made unique by appending a suitable suffix.

Definition at line 46 of file StringUtils.h.

Constructor & Destructor Documentation

◆ UniqueNameManager() [1/2]

UniqueNameManager::UniqueNameManager ( )
default

◆ UniqueNameManager() [2/2]

UniqueNameManager::UniqueNameManager ( ArrayView< const std::string >  initial)
explicit

Definition at line 241 of file StringUtils.cpp.

Member Function Documentation

◆ getName()

std::string UniqueNameManager::getName ( const std::string &  name)
Todo:
increase the number if there is already a (x) at the end
Todo:
what to return?

Definition at line 247 of file StringUtils.cpp.


The documentation for this class was generated from the following files: