git-svn-id: https://websvn.glenux.net/svn/Upoc/cryptaffinity/trunk@1175 eaee96b3-f302-0410-b096-c6cfd47f7835
36 lines
699 B
C++
36 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);
|
|
|
|
};
|
|
}
|