From 40c659f6810b712c366e50139046995af46f42cc Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Fri, 13 Mar 2015 10:52:34 +0400 Subject: Update class --- ParserClass/AbstractIDManager.hpp | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) (limited to 'ParserClass/AbstractIDManager.hpp') diff --git a/ParserClass/AbstractIDManager.hpp b/ParserClass/AbstractIDManager.hpp index 9281915..a18d1b2 100644 --- a/ParserClass/AbstractIDManager.hpp +++ b/ParserClass/AbstractIDManager.hpp @@ -1,15 +1,21 @@ /** - * @file AbstractIDManager.cpp + * @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 #include + + +//----- boost ----- #include // uuid class #include // generators #include // streaming operators etc. @@ -17,20 +23,37 @@ - +/** + * @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); - std::string generateId(); private: + //Generate and random id + std::string generateId(); - std::string id; + std::string id; ///< String id attribute }; -- cgit v1.2.3