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/Autokey.cpp
//Matthew Ellison
// Created: 5-3-18
//Modified: 5-5-18
//Modified: 5-16-18
//This file contains the implementation of the Autokey class
@@ -9,6 +9,12 @@
#include <string>
/**
* @brief The current library's version number
*
*/
const std::string Vigenere::version = "1.0";
/**
* @brief Construct a new Autokey object
*
@@ -137,4 +143,13 @@ std::string Autokey::decode(std::string key, std::string input){
setInputString(input);
decodeSet(key, input); //Decoding is a bit different because part of the key is also part of the original message
return Autokey::decode();
}
}
/**
* @brief Returns a string containing the version information
*
* @return The version information
*/
std::string Autokey::getVersion(){
return version;
}