score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
RandomNameProvider.hpp
1
#pragma once
2
#include "Metadata.hpp"
3
4
#include <QString>
5
6
#include <score_lib_base_export.h>
7
19
class
SCORE_LIB_BASE_EXPORT
RandomNameProvider
20
{
21
public
:
22
static
QString generateRandomName();
23
static
QString generateShortRandomName();
24
25
template
<
typename
T>
26
static
QString generateName()
27
{
28
return
Metadata<PrettyName_k, T>::get
() +
"."
+ generateShortRandomName();
29
}
30
};
RandomNameProvider
Generates a random name from the dict.txt file.
Definition
RandomNameProvider.hpp:20
Metadata
Static metadata implementation.
Definition
lib/score/tools/Metadata.hpp:36