VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtUniqueNameGenerator.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvUtil/vrvUtil.h>
13 #include <vrvUtil/DtUnicode.h>
14 
15 #include <set>
16 
17 namespace makVrv
18 {
24  {
25  public:
30  DtUniqueNameGenerator(const DtUnicode& prefix);
31 
33  virtual ~DtUniqueNameGenerator();
34 
38  virtual DtUnicode generateName();
39 
41  virtual void releaseName(const DtUnicode& name);
42 
48  virtual void takeName(const DtUnicode& name);
49 
50  protected:
52 
53  typedef std::set<unsigned int> PostfixList;
55 
56  unsigned int myNextPostfix;
57  };
58 }
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
PostfixList myAllocatedPostfixes
Definition: DtUniqueNameGenerator.h:54
Contains DLL export macros.
Generator for unique names with a specified prefix.
Definition: DtUniqueNameGenerator.h:23
DtUnicode myPrefix
Definition: DtUniqueNameGenerator.h:51
std::set< unsigned int > PostfixList
Definition: DtUniqueNameGenerator.h:53
unsigned int myNextPostfix
Definition: DtUniqueNameGenerator.h:56

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)