Added version information for all classes

This commit is contained in:
2018-05-16 10:33:17 -04:00
parent 5cc3b935c1
commit d54b34f4c2
12 changed files with 124 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
//Ciphers/SourceFiles/Vigenere.hpp
//Matthew Ellison
// Created: 4-29-18
//Modified: 5-5-18
//Modified: 5-16-18
//This file contains the declaration of the Vigenere class
#ifndef VIGENERE_HPP
@@ -17,6 +17,7 @@ protected:
std::string inputString; //This is the string that you want to encode or decode
std::string outputString; //This is the string that is output from encoding or decoding
std::string keyword; //This is the keyword that is the resposible for determining the offsets that you change each character by
static const std::string version; //The current library's version number
std::vector<unsigned int> offset; //This holds the offsets computed from each character in the keyword
void setOffset(); //Uses keyword to calculate the offset for the Caesar cipher for each character
void setInputString(std::string input); //Sets inputString
@@ -33,6 +34,7 @@ public:
std::string encode(std::string key, std::string input); //Encodes input using key and returns the result
std::string decode(std::string key, std::string input); //Decodes input using key and returns the result
void reset(); //Makes sure all of the variables are empty
static std::string getVersion();
};
#endif //VIGENERE_HPP