GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
GDCore
IDE
NewNameGenerator.h
1
/*
2
* GDevelop Core
3
* Copyright 2008-2016 Florian Rival (
[email protected]
). All rights
4
* reserved. This project is released under the MIT License.
5
*/
6
#ifndef GDCORE_NEWNAMEGENERATOR_H
7
#define GDCORE_NEWNAMEGENERATOR_H
8
#include <functional>
9
namespace
gd
{
10
class
String;
11
}
12
13
namespace
gd
{
14
18
class
GD_CORE_API
NewNameGenerator
{
19
public
:
24
static
gd::String
Generate(
const
gd::String
&name,
25
const
gd::String
&prefix,
26
std::function<
bool
(
const
gd::String
&)> exists);
27
31
static
gd::String
Generate(
const
gd::String
&name,
32
std::function<
bool
(
const
gd::String
&)> exists);
33
34
private
:
35
NewNameGenerator
();
36
~
NewNameGenerator
();
37
};
38
39
}
// namespace gd
40
41
#endif
// GDCORE_NEWNAMEGENERATOR_H
gd::NewNameGenerator
Generate unique names.
Definition:
NewNameGenerator.h:18
gd::String
String represents an UTF8 encoded string.
Definition:
String.h:33
gd
Definition:
CommonTools.h:24
Generated by
1.9.1