【文件属性】:
文件名称:wunderground-cpp-wrapper:Weather Underground API 的 C++ 包装器
文件大小:56KB
文件格式:ZIP
更新时间:2021-06-20 14:03:23
C++
#C++ 天气地下 API 包装器
这是 API 的 C++ 包装器。 编译器:Ubuntu 上的 GCC 4.6.4 并在 Windows 上使用 MinGW 4.7.2 进行测试
##Requirements 您需要 API 密钥才能使用它。 您可以免费获得
libcurl 库:
对于测试,您需要Boost.Test 和 Boost.Date_Time
##用法
Wrapper 有 6 个与 wunderground api命名相同的类:它们都继承自名为 Weather 的同一个抽象基类,并且都在 wunderground 命名空间中。
今天天气数据的条件
预测 3 天的天气数据
Forecast10day for 10 天的天气
每小时 3 天每小时数据
Hourly10day 用于 10 天每小时数据
今天的天文学天文学数据
###使用示例
// only this
【文件预览】:
wunderground-cpp-wrapper-master
----test()
--------unit_test.cpp(3KB)
----License(1KB)
----wunderground()
--------tinyxml.cpp(37KB)
--------astronomy.cpp(2KB)
--------tinystr.cpp(2KB)
--------forecast.cpp(4KB)
--------forecast10day.cpp(4KB)
--------weather.hpp(1000B)
--------hourly10day.cpp(4KB)
--------conditions.cpp(3KB)
--------hourly.cpp(4KB)
--------tinyxmlerror.cpp(2KB)
--------wunderground.hpp(153B)
--------conditions.hpp(744B)
--------forecast10day.hpp(934B)
--------forecast.hpp(831B)
--------tinyxml.h(63KB)
--------hourly.hpp(903B)
--------curl_data.h(328B)
--------astronomy.hpp(664B)
--------tinyxmlparser.cpp(36KB)
--------tinystr.h(8KB)
--------curl_data.cpp(825B)
--------hourly10day.hpp(913B)
----README.md(3KB)
----.gitattributes(483B)