#include <FileTransfer.h>
Public Member Functions | |
FileTransfer ()=delete | |
Static Public Member Functions | |
static bool | FileExists (std::string file) |
static const std::string & | GetFilesBaseFolder () |
static std::vector< uint8_t > | ReadFile (std::string path) |
static bool | SetFilesBaseFolder (const std::string &path) |
static bool | WriteFile (std::string path, std::vector< uint8_t > content) |
Static Private Attributes | |
static std::string | _filesBaseFolder = std::string(getenv("HOME")) + "/carlaCache/" |
Definition at line 19 of file FileTransfer.h.
|
delete |
|
static |
Definition at line 34 of file FIleTransfer.cpp.
References _filesBaseFolder.
Referenced by carla::client::detail::Simulator::GetCurrentMap(), and carla::client::detail::Client::GetRequiredFiles().
|
static |
Definition at line 30 of file FIleTransfer.cpp.
References _filesBaseFolder.
|
static |
Definition at line 69 of file FIleTransfer.cpp.
References _filesBaseFolder.
Referenced by carla::client::detail::Client::GetCacheFile().
|
static |
Definition at line 19 of file FIleTransfer.cpp.
References _filesBaseFolder.
Referenced by carla::client::detail::Client::SetFilesBaseFolder().
|
static |
Definition at line 46 of file FIleTransfer.cpp.
References _filesBaseFolder, and carla::FileSystem::ValidateFilePath().
Referenced by carla::client::detail::Client::RequestFile().
|
staticprivate |
Definition at line 37 of file FileTransfer.h.
Referenced by FileExists(), GetFilesBaseFolder(), ReadFile(), SetFilesBaseFolder(), and WriteFile().