Files
CipherStream/Headers/Caesar.hpp

36 lines
768 B
C++

//Ciphers/Headers/Caesar.hpp
//Matthew Ellison
// Created: 4-25-18
//Modified: 4-25-18
//This file contains the declaration of the Caesar class
//This class implements the Caesar Cipher and is inteded to be turned into a library
#ifndef CAESAR_HPP
#define CAESAR_HPP
#include <string>
class Caesar{
private:
std::string input;
std::string output;
int shift;
public:
Caesar();
~Caesar();
void setInput(std::string inputString);
std::string getInput() const;
void setShift(int shiftAmount);
int getShift() const;
std::string getOutput() const;
std::string encode();
std::string encode(int shiftAmount, std::string inputString);
std::string decode();
std::string decode(int shiftAmount, std::string inputString);
void reset();
};
#endif //CAESAR_HPP