RemoteResourcesManager.h
Go to the documentation of this file.
1 /*+-------------------------------------------------------------------------+
2  | MultiVehicle simulator (libmvsim) |
3  | |
4  | Copyright (C) 2014-2023 Jose Luis Blanco Claraco |
5  | Copyright (C) 2017 Borys Tymchenko (Odessa Polytechnic University) |
6  | Distributed under 3-clause BSD License |
7  | See COPYING |
8  +-------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
12 #include <mrpt/system/COutputLogger.h>
13 
14 #include <string>
15 #include <tuple>
16 
17 namespace mvsim
18 {
27 class RemoteResourcesManager : public mrpt::system::COutputLogger
28 {
29  public:
31  ~RemoteResourcesManager() = default;
32 
44  std::string resolve_path(const std::string& uri);
45 
48  static bool is_remote(const std::string& uri);
49 
53  static std::tuple<bool, std::string, std::string> zip_uri_split(
54  const std::string& uri);
55 
56  static std::string cache_directory();
57 
58  private:
59  std::string handle_remote_uri(const std::string& uri);
60 
63  std::string handle_local_zip_package(
64  const std::string& localZipFil, const std::string& internalURI);
65 };
66 
67 } // namespace mvsim
std::string resolve_path(const std::string &uri)
static bool is_remote(const std::string &uri)
std::string handle_local_zip_package(const std::string &localZipFil, const std::string &internalURI)
static std::tuple< bool, std::string, std::string > zip_uri_split(const std::string &uri)
std::string handle_remote_uri(const std::string &uri)


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:21