StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StJetMaker
test
UniqueStringGenerator.hh
1
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
2
#ifndef UNIQUESTRINGGENERATOR_HH
3
#define UNIQUESTRINGGENERATOR_HH
4
5
#include "Misc.hh"
6
7
#include <string>
8
9
class
UniqueStringGenerator
{
10
11
public
:
12
UniqueStringGenerator
() { }
13
virtual
~
UniqueStringGenerator
() { }
14
15
static
std::string generate()
16
{
17
return
std::string(
"a"
) + to_string(_id++);
18
}
19
20
private
:
21
22
static
int
_id;
23
24
};
25
26
#endif // UNIQUESTRINGGENERATOR_HH
UniqueStringGenerator
Definition:
UniqueStringGenerator.hh:9
Generated by
1.8.5