diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-03-13 15:07:21 +0400 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-03-13 15:07:21 +0400 |
| commit | 802410f7a3bdf2db3823f96e122bf1db45bf6a85 (patch) | |
| tree | b761182cd6a6cf47e75b168614b414fd1b5e089e /ParserClass/AbstractIDManager.hpp | |
| parent | 34b47f8e08eff519f6c8372f2e4ce5b24267614c (diff) | |
| parent | c113e7b5f46a3434f017de3f2c9f83a002b246f1 (diff) | |
Merge branch 'PARSER'
Diffstat (limited to 'ParserClass/AbstractIDManager.hpp')
| -rw-r--r-- | ParserClass/AbstractIDManager.hpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/ParserClass/AbstractIDManager.hpp b/ParserClass/AbstractIDManager.hpp new file mode 100644 index 0000000..a18d1b2 --- /dev/null +++ b/ParserClass/AbstractIDManager.hpp @@ -0,0 +1,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(); + void setId(std::string id); + + + private: + //Generate and random id + std::string generateId(); + + std::string id; ///< String id attribute + + }; |
