blob: 2cbc9ef2c050e198dda0042de8a524aa63c9e657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/**
* @file main.cpp
* @brief Entry point
* @author manzerbredes
* @version Prototype
* @date 8 Mars 2015
*
* Entry point of the application.
*
*/
//----- std -----
#include <iostream>
#include <string>
#include <vector>
//----- class -----
#include "FileManIOFile.hpp"
#include "FileManParser.hpp"
#include "FileManContainer.hpp"
#include "Website.hpp"
/**
* @fn int main(int argc, char *argv[])
* @author manzerbredes
* @brief main function
* @param argc contain *argv[] length
* @param *argv[] contain the arguments list
* @return Return code, an int.
*/
int main(int argc, char *argv[]){
std::string xml="<?xml version=\"1.0\" standalone=\"yes\" ?>\n\
<forgetIt> \n\
<websites> \n\
\n\
</websites> \n\
</forgetIt> \n\
";
FileManParser parser(xml);
FileManContainer container= parser.getContainer();
std::vector<Website> websites= container.getWebsites();
std::cout << websites.at(0).getId();
return 0;
}
|