mirror of
https://bitbucket.org/Mattrixwv/cipherstream.git
synced 2025-12-06 18:33:58 -05:00
Added version information for all classes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//Ciphers/SourceFiles/Morse.cpp
|
||||
//Matthew Ellison
|
||||
// Created: 5-1-18
|
||||
//Modified: 5-1-18
|
||||
//Modified: 5-16-18
|
||||
//This file contains the implementation of the Morse class
|
||||
|
||||
|
||||
@@ -10,6 +10,20 @@
|
||||
#include <cctype>
|
||||
|
||||
|
||||
/**
|
||||
* @brief The current library's version number
|
||||
*
|
||||
*/
|
||||
const std::string Morse::version = "1.0";
|
||||
|
||||
/**
|
||||
* @brief The dot-dash representation of the alphabet and numbers
|
||||
*
|
||||
*/
|
||||
const std::string Morse::code[] {".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", //A-L
|
||||
"--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", "-.--", "--..", //M-Z
|
||||
"-----", ".----", "..---", "...--", "....-", ".....", "-....", "--...", "---..", "----."}; //0-9
|
||||
|
||||
/**
|
||||
* @brief Construct a new Morse object
|
||||
*
|
||||
@@ -187,3 +201,12 @@ void Morse::reset(){
|
||||
inputString.str("");
|
||||
outputString = "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns a string containing the version information
|
||||
*
|
||||
* @return The version information
|
||||
*/
|
||||
std::string Morse::getVersion(){
|
||||
return version;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user