-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuniqueString.h
More file actions
38 lines (28 loc) · 802 Bytes
/
uniqueString.h
File metadata and controls
38 lines (28 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef UNIQUESTRING_LIBRARY_H
#define UNIQUESTRING_LIBRARY_H
#include <vector>
using std::vector;
#include <string>
using std::string;
#include <map>
using std::map;
using std::pair;
namespace soda {
class UniqueString {
private:
UniqueString(string s, string channel);
UniqueString(const UniqueString &);
static map<string, vector<string>* > channels;
static bool auto_rename;
static string name_with_index(string s, string channel);
string unique_string;
public:
UniqueString() = delete;
string getString();
bool setString();
static bool addChannel(string channelName);
static void setAutoRename(bool b);
static UniqueString* createUnique(string s, string channel);
};
}
#endif