VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvUtil
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
{
23
class
DT_DLL_VRVUTIL
DtUniqueNameGenerator
24
{
25
public
:
30
DtUniqueNameGenerator
(
const
DtUnicode
& prefix);
31
33
~
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
:
51
DtUnicode
myPrefix
;
52
53
typedef
std::set<unsigned int>
PostfixList
;
54
PostfixList
myAllocatedPostfixes
;
55
56
unsigned
int
myNextPostfix
;
57
};
58
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)