CARLA
Loading...
Searching...
No Matches
FileTransfer.h
Go to the documentation of this file.
1// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include "carla/FileSystem.h"
10
11#include <filesystem>
12#include <string_view>
13#include <string>
14
15namespace carla {
16namespace client {
17
19
20 public:
21
22 FileTransfer() = delete;
23
24 static bool SetFilesBaseFolder(std::string_view path);
25
26 static std::string GetFilesBaseFolder();
27
28 static bool FileExists(std::string_view file);
29
30 static bool WriteFile(std::string_view path, std::vector<uint8_t> content);
31
32 static std::vector<uint8_t> ReadFile(std::string_view path);
33
34 };
35
36} // namespace client
37} // namespace carla
static std::vector< uint8_t > ReadFile(std::string_view path)
static bool FileExists(std::string_view file)
static bool SetFilesBaseFolder(std::string_view path)
static std::string GetFilesBaseFolder()
static bool WriteFile(std::string_view path, std::vector< uint8_t > content)
This file contains definitions of common data structures used in traffic manager.