summaryrefslogtreecommitdiff
path: root/src/ParserClass/AbstractIDManager.hpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-03-21 07:08:34 +0100
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-03-21 07:08:34 +0100
commit3a10207bf5ddf14c478623b6e32ff72af6379a48 (patch)
tree8506da971d0661fc074b0b79a56fe705273d1c32 /src/ParserClass/AbstractIDManager.hpp
parent77affb6d5564f691ea337a3971fdc85f2460ed92 (diff)
parent697d44fd357779309bb0c1931f589a92bb88a642 (diff)
Merge branch 'PARSER'
Diffstat (limited to 'src/ParserClass/AbstractIDManager.hpp')
-rw-r--r--src/ParserClass/AbstractIDManager.hpp59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/ParserClass/AbstractIDManager.hpp b/src/ParserClass/AbstractIDManager.hpp
new file mode 100644
index 0000000..67d5f6f
--- /dev/null
+++ b/src/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() const;
+ void setId(std::string id);
+
+
+ private:
+ //Generate and random id
+ std::string generateId();
+
+ std::string id; ///< String id attribute
+
+ };