blob: 67d5f6fa519c96056be635ebeff4f8ce06726dec (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/**
* @file AbstractIDManager.hpp
* @brief AbstractIDManager class definitions
* @author manzerbredes
* @date 11 Mars 2015
*
* Contain all definitions of AbstractIDManager class.
* If you want to manage id in class (like container), use
* this class as superclass.
*
*/
//----- std -----
#include <string>
#include <sstream>
//----- boost -----
#include <boost/uuid/uuid.hpp> // uuid class
#include <boost/uuid/uuid_generators.hpp> // generators
#include <boost/uuid/uuid_io.hpp> // streaming operators etc.
/**
* @class AbstractIDManager AbstractIDManager.hpp "/CryptClass/AbstractIDManager.hpp"
* @brief Managing ID
* @author manzerbredes
*
* This class should not be instantiate directly.
*
*/
class AbstractIDManager{
public:
//Constructor
AbstractIDManager();
//Constructor, init with id
AbstractIDManager(std::string);
//Destructor
~AbstractIDManager();
//Getters and setters
std::string getId() const;
void setId(std::string id);
private:
//Generate and random id
std::string generateId();
std::string id; ///< String id attribute
};
|