diff options
author | Aki <please@ignore.pl> | 2023-01-04 01:07:59 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-04 01:07:59 +0100 |
commit | 5b779a1aa8e59f63f26ee2fd5cec908bf5ce1159 (patch) | |
tree | 78667120c141f7433630e7c7dd9a0be43d16442f /universe/src/JsonRepository.cpp | |
parent | 27ebde39fda0fb18a63f8974aca36a6118a16322 (diff) | |
download | kurator-5b779a1aa8e59f63f26ee2fd5cec908bf5ce1159.zip kurator-5b779a1aa8e59f63f26ee2fd5cec908bf5ce1159.tar.gz kurator-5b779a1aa8e59f63f26ee2fd5cec908bf5ce1159.tar.bz2 |
Added stub Json repository
Diffstat (limited to 'universe/src/JsonRepository.cpp')
-rw-r--r-- | universe/src/JsonRepository.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/universe/src/JsonRepository.cpp b/universe/src/JsonRepository.cpp new file mode 100644 index 0000000..ddbbfcf --- /dev/null +++ b/universe/src/JsonRepository.cpp @@ -0,0 +1,49 @@ +#include "JsonRepository.h" + +#include <functional> +#include <string> + +#include <kurator/universe/NotFound.h> +#include <kurator/universe/ShipType.h> +#include <kurator/universe/TurretType.h> + + +namespace kurator +{ +namespace universe +{ + + +JsonRepository::JsonRepository(const char*) +{ +} + + +ShipType +JsonRepository::ship_type(const std::string& id) const +{ + throw NotFound(id); +} + + +TurretType +JsonRepository::turret_type(const std::string& id) const +{ + throw NotFound(id); +} + + +void +JsonRepository::for_ship_types(std::function<void(const ShipType&)>) const +{ +} + + +void +JsonRepository::for_turret_types(std::function<void(const TurretType&)>) const +{ +} + + +} // namespace universe +} // namespace kurator |