diff --git a/CryptClass/AESCrypt.cpp b/CryptClass/AESCrypt.cpp index 0222e9a..30e501a 100644 --- a/CryptClass/AESCrypt.cpp +++ b/CryptClass/AESCrypt.cpp @@ -21,6 +21,7 @@ AESCrypt::AESCrypt(){ //Destructor AESCrypt::~AESCrypt(){ + } diff --git a/CryptClass/AbstractSKA.hpp b/CryptClass/AbstractSKA.hpp index 5a23c36..7622ab4 100644 --- a/CryptClass/AbstractSKA.hpp +++ b/CryptClass/AbstractSKA.hpp @@ -28,13 +28,6 @@ class AbstractSKA { public: - //Constructor - AbstractSKA(); - - //Destructor - ~AbstractSKA(); - - /** * @brief Encrypt data. * diff --git a/ParserClass/AbstractIDManager.cpp b/ParserClass/AbstractIDManager.cpp index 852c201..01e3c3d 100644 --- a/ParserClass/AbstractIDManager.cpp +++ b/ParserClass/AbstractIDManager.cpp @@ -14,6 +14,15 @@ AbstractIDManager::AbstractIDManager(){ this->id=this->generateId(); } +AbstractIDManager::AbstractIDManager(std::string id){ + this->id=id; +} +AbstractIDManager::~AbstractIDManager(){ + this->id=id; +} + + + void AbstractIDManager::setId(std::string id){ this->id = id; } 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 };