-
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c752aaa
commit d1ccb72
Showing
6 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
...modules/weather/data/WeatherDescription.h → src/modules/weather/WeatherData.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
#include "WeatherData.h" | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> weatherDescriptions = { | ||
|
||
const std::array<std::string_view, 16> weatherDescriptions = { | ||
"clear sky", "few clouds", "scattered clouds", | ||
"broken clouds", "shower rain", "rainy", | ||
"thunderstorm", "snowy", "misty", | ||
"smoky", "haze", "sunny", | ||
"cloudy", "windy", "dark", | ||
"foggy", | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
|
||
#include <array> | ||
#include <string_view> | ||
|
||
namespace faker | ||
{ | ||
extern const std::array<std::string_view, 16> weatherDescriptions; | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters