LocationLoader.h
Go to the documentation of this file.
1#pragma once
2
3#include <fstream>
4#include <string>
5#include <vector>
6
7#include <SimoxUtility/json.h>
8
10
12{
14 {
15 public:
16 static const constexpr auto DEFAULT_FILE_NAME = "locations.json";
17
18 LocationLoader() = delete;
19
20 // static std::vector<FramedLocation> LoadFramedLocations(const std::string& dataset,
21 // const nlohmann::json&);
22 // static std::vector<FramedBoxedLocation> LoadBoxedLocations(const std::string& dataset,
23 // const nlohmann::json&);
24 static std::vector<LocationPtr> LoadLocations(const std::string& dataset,
25 const nlohmann::json&);
26
27 private:
28 static FramedLocationPtr LoadFramedLocation(const std::string& source,
29 const std::string& locationName,
30 const nlohmann::json& j);
31
32 static FramedBoxedLocationPtr LoadBoxedLocation(const std::string& source,
33 const std::string& locationName,
34 const nlohmann::json& j);
35 };
36} // namespace armarx::priorknowledge::util
static std::vector< LocationPtr > LoadLocations(const std::string &dataset, const nlohmann::json &)
static const constexpr auto DEFAULT_FILE_NAME
std::unique_ptr< FramedLocation > FramedLocationPtr
Definition Location.h:90
std::unique_ptr< FramedBoxedLocation > FramedBoxedLocationPtr
Definition Location.h:89