forgetIt/ParserClass/AbstractIDManager.hpp

60 lines
1.2 KiB
C++
Raw Normal View History

2015-03-11 21:32:36 +04:00
/**
2015-03-13 10:52:34 +04:00
* @file AbstractIDManager.hpp
2015-03-11 21:32:36 +04:00
* @brief AbstractIDManager class definitions
* @author manzerbredes
* @date 11 Mars 2015
*
* Contain all definitions of AbstractIDManager class.
2015-03-13 10:52:34 +04:00
* If you want to manage id in class (like container), use
* this class as superclass.
2015-03-11 21:32:36 +04:00
*
*/
2015-03-13 10:52:34 +04:00
//----- std -----
2015-03-11 21:32:36 +04:00
#include <string>
#include <sstream>
2015-03-13 10:52:34 +04:00
//----- boost -----
2015-03-11 21:32:36 +04:00
#include <boost/uuid/uuid.hpp> // uuid class
#include <boost/uuid/uuid_generators.hpp> // generators
#include <boost/uuid/uuid_io.hpp> // streaming operators etc.
2015-03-13 10:52:34 +04:00
/**
* @class AbstractIDManager AbstractIDManager.hpp "/CryptClass/AbstractIDManager.hpp"
* @brief Managing ID
* @author manzerbredes
*
* This class should not be instantiate directly.
*
*/
2015-03-11 21:32:36 +04:00
class AbstractIDManager{
public:
2015-03-13 10:52:34 +04:00
//Constructor
2015-03-11 21:32:36 +04:00
AbstractIDManager();
2015-03-13 10:52:34 +04:00
//Constructor, init with id
AbstractIDManager(std::string);
//Destructor
~AbstractIDManager();
//Getters and setters
2015-03-14 18:44:05 +04:00
std::string getId() const;
2015-03-11 21:32:36 +04:00
void setId(std::string id);
private:
2015-03-13 10:52:34 +04:00
//Generate and random id
std::string generateId();
2015-03-11 21:32:36 +04:00
2015-03-13 10:52:34 +04:00
std::string id; ///< String id attribute
2015-03-11 21:32:36 +04:00
};