diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-04-12 11:57:04 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-04-12 11:57:04 +0200 |
| commit | 1ac5203e386e80f80906a341bf7ae9eaa124d774 (patch) | |
| tree | 23a58df3715d9e038d67efb020fb8153c53145ab /src/IOFileClass | |
| parent | 77b0d85a517d64c2bfb50884051072be4476888f (diff) | |
Switch to CMake ...
Diffstat (limited to 'src/IOFileClass')
| -rw-r--r-- | src/IOFileClass/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/IOFileClass/FileManIOFile.cpp | 4 | ||||
| -rw-r--r-- | src/IOFileClass/FileManIOFile.hpp | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/IOFileClass/CMakeLists.txt b/src/IOFileClass/CMakeLists.txt new file mode 100644 index 0000000..af1ec84 --- /dev/null +++ b/src/IOFileClass/CMakeLists.txt @@ -0,0 +1 @@ +add_library(IOFileClass ./FileManIOFile.cpp) diff --git a/src/IOFileClass/FileManIOFile.cpp b/src/IOFileClass/FileManIOFile.cpp index ea49201..3b45b0b 100644 --- a/src/IOFileClass/FileManIOFile.cpp +++ b/src/IOFileClass/FileManIOFile.cpp @@ -35,7 +35,7 @@ void FileManIOFile::read(std::string key){ this->data.clear(); //Open file - file.open (this->filename, std::ios::in | std::ios::binary); + file.open ((this->filename).c_str(), std::ios::in | std::ios::binary); //Get MD5 of decrypted data byte fileMD5[16]; @@ -124,7 +124,7 @@ void FileManIOFile::writeRoutine(std::string data, std::string dataEncrypted){ std::ofstream file; //Open it - file.open(this->filename, std::ios::out | std::ios::binary); + file.open((this->filename).c_str(), std::ios::out | std::ios::binary); //Write MD5 on 16 first bytes file.write((char *) digest,sizeof(digest)); diff --git a/src/IOFileClass/FileManIOFile.hpp b/src/IOFileClass/FileManIOFile.hpp index 221cf13..a1595ec 100644 --- a/src/IOFileClass/FileManIOFile.hpp +++ b/src/IOFileClass/FileManIOFile.hpp @@ -20,8 +20,8 @@ //----- class ----- -#include "HASHCrypt.hpp" -#include "AESCrypt.hpp" +#include "../CryptClass/HASHCrypt.hpp" +#include "../CryptClass/AESCrypt.hpp" |
