More streamlined handling of io bases

This commit is contained in:
Leonetienne
2022-05-31 18:17:29 +02:00
parent 30289214f8
commit 313c265c0b
6 changed files with 59 additions and 64 deletions
+8 -2
View File
@@ -25,7 +25,9 @@ class Configuration {
BASE_64,
BASE_UWU,
BASE_UGH
} iobaseFormat;
}
formatIn,
formatOut;
static std::string inputFilename;
static std::string outputFilename;
@@ -44,9 +46,13 @@ class Configuration {
private:
static void DecideInputFrom();
static void DecideOutputTo();
static void DecideIOBaseFormat();
static void DecideCiphertextFormat();
static void MapCiphertextFormatToIOBases();
static void DecideModule();
// This is just an intermediary value, used between methods
static IOBASE_FORMAT ciphertextFormat;
// No instanciation! >:(
Configuration() {};
};