diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-03-13 15:07:21 +0400 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-03-13 15:07:21 +0400 |
| commit | 802410f7a3bdf2db3823f96e122bf1db45bf6a85 (patch) | |
| tree | b761182cd6a6cf47e75b168614b414fd1b5e089e /main.cpp | |
| parent | 34b47f8e08eff519f6c8372f2e4ce5b24267614c (diff) | |
| parent | c113e7b5f46a3434f017de3f2c9f83a002b246f1 (diff) | |
Merge branch 'PARSER'
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 39 |
1 files changed, 33 insertions, 6 deletions
@@ -15,13 +15,13 @@ #include <iostream> #include <string> +#include <vector> //----- class ----- -#include "AESCrypt.hpp" -#include "HASHCrypt.hpp" #include "FileManIOFile.hpp" - - +#include "FileManParser.hpp" +#include "FileManContainer.hpp" +#include "Website.hpp" /** * @fn int main(int argc, char *argv[]) @@ -33,7 +33,30 @@ */ int main(int argc, char *argv[]){ - std::string chaine="It's work !"; + + + + std::string xml="<?xml version=\"1.0\" standalone=\"yes\" ?>\n\ +<forgetIt> \n\ +<websites> \n\ + \n\ + </websites> \n\ +</forgetIt> \n\ + "; + + + FileManParser parser(xml); + + + + //std::cout << std::endl << parser.getData() << std::endl; + + + + + + + /*std::string chaine="It's work !"; std::string key="loic"; AESCrypt aes; @@ -52,7 +75,11 @@ int main(int argc, char *argv[]){ fichier.read(key); if(fichier.isReadable()) - std::cout << fichier.getData(); + std::cout << fichier.getData();*/ + + FileManContainer container= parser.getContainer(); + std::vector<Website> websites= container.getWebsites(); + std::cout << websites.at(0).getId(); return 0; |
