Updated the member functions and documentation

This commit is contained in:
2018-05-05 15:12:57 -04:00
parent 884dfb99ac
commit e061b70cd7

View File

@@ -1,7 +1,7 @@
//Ciphers/Headers/Atbash.hpp
//Matthew Ellison
// Created: 4-30-18
//Modified: 4-30-18
//Modified: 5-5-18
//This file contains the declaration of the Atbash class
//This class is used to encode and decode an Atbash cipher
@@ -13,17 +13,17 @@
class Atbash{
private:
std::string inputString;
std::string outputString;
std::string inputString; //Holds the string that needs encoded or decoded
std::string outputString; //Holds the encoded/decoded string
std::string decode(); //Decodes inputString and stores in outputString
std::string encode(); //Encodes inputString and stores in outputString
void setInputString(std::string input); //Removes all invalid characters and sets inputString
public:
Atbash();
~Atbash();
void setInputString(std::string input);
std::string getInputString() const;
std::string getOutputString() const;
std::string encode();
std::string encode(std::string input);
std::string decode();
std::string decode(std::string input);
void reset();
};