CARLA
 
载入中...
搜索中...
未找到
FileTransfer.h
浏览该文件的文档.
1// Copyright (c) 2021 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 <fstream>
12#include <iostream>
13#include <string>
14#include <sys/stat.h>
15#include <cstdint>
16
17namespace carla {
18namespace client {
19
21
22 public:
23
24 FileTransfer() = delete;
25
26 static bool SetFilesBaseFolder(const std::string &path);
27
28 static const std::string& GetFilesBaseFolder();
29
30 static bool FileExists(std::string file);
31
32 static bool WriteFile(std::string path, std::vector<uint8_t> content);
33
34 static std::vector<uint8_t> ReadFile(std::string path);
35
36 private:
37
38 static std::string _filesBaseFolder;
39
40 };
41
42} // namespace client
43} // namespace carla
static std::vector< uint8_t > ReadFile(std::string path)
static bool FileExists(std::string file)
static bool SetFilesBaseFolder(const std::string &path)
static const std::string & GetFilesBaseFolder()
static std::string _filesBaseFolder
static bool WriteFile(std::string path, std::vector< uint8_t > content)
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133