Realised XML Service

This commit is contained in:
2026-04-21 11:06:34 +03:00
parent effb6385c0
commit 969251661c
6 changed files with 15275 additions and 0 deletions

20
main.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include <iostream>
#include <exception>
#include "XmlService.h"
#include "Weather.h"
int main() {
try {
XmlService xs;
Weather w = xs.getWeather("endpoints/weather.xml");
std::cout << "Weather object created" << std::endl;
w.printWeather();
}
catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
return 1;
}
return 0;
}