| 19 | |
| 20 | namespace sibr { |
| 21 | XMLTree::XMLTree(const std::string & path) |
| 22 | { |
| 23 | std::cout << "Parsing xml file < " << path << " > : "; |
| 24 | std::ifstream file(path.c_str()); |
| 25 | if (file) { |
| 26 | std::stringstream buffer; |
| 27 | buffer << file.rdbuf(); |
| 28 | file.close(); |
| 29 | xmlString = std::move(std::string(buffer.str())); |
| 30 | this->parse<0>(&xmlString[0]); |
| 31 | std::cout << "success " << std::endl; |
| 32 | } |
| 33 | else { |
| 34 | std::cout << "error, cant open file " << std::endl; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | |
| 39 | XMLTree::~XMLTree(void) |