Refractoring
This commit is contained in:
+5
-2
@@ -3,7 +3,7 @@
|
||||
|
||||
#include<fstream>
|
||||
#include<string>
|
||||
|
||||
#include<map>
|
||||
#include"Cryption.h"
|
||||
|
||||
class Decryption : public Cryption
|
||||
@@ -14,13 +14,16 @@ public:
|
||||
Decryption(const std::string&);
|
||||
|
||||
void setDecryptedMessage(const std::string&);
|
||||
void setMessage(const std::string&) override;
|
||||
void decryptMessage();
|
||||
|
||||
std::string getDecryptedMessage() const;
|
||||
|
||||
std::string getMessage() const override;
|
||||
private:
|
||||
void setupMap();
|
||||
std::string cstringToString(char[], const int&);
|
||||
std::string decryptedMessage;
|
||||
std::map<std::string, char> decryptedCharacters;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user