37 lines
699 B
C++
37 lines
699 B
C++
|
|
||
|
#include <string>
|
||
|
#include <list>
|
||
|
#include <vector>
|
||
|
#include <map>
|
||
|
|
||
|
#include <glib.h>
|
||
|
#include <glib/gfileutils.h>
|
||
|
|
||
|
#include "alphabet.hh"
|
||
|
#include "text.hh"
|
||
|
|
||
|
using namespace LibCryptAfinity;
|
||
|
|
||
|
namespace BreakAfinity{
|
||
|
class FileLoader {
|
||
|
private:
|
||
|
public:
|
||
|
std::vector<int> loadPriorities(
|
||
|
std::map<std::string, int> reverse_alpha,
|
||
|
std::string filename);
|
||
|
|
||
|
std::map<int, float> loadFrequencies(
|
||
|
std::map<std::string, int> reverse_alpha,
|
||
|
std::string filename);
|
||
|
|
||
|
std::vector<std::string> loadFile(std::string filename);
|
||
|
|
||
|
Alphabet loadAlphabet(std::string filename);
|
||
|
|
||
|
Text loadText(
|
||
|
std::map<std::string,int > reverse_alpha,
|
||
|
std::string filename);
|
||
|
|
||
|
};
|
||
|
}
|