|
|
#include "filesystem.h"#include <errno.h>#include <filesystem>#include <fstream>#include <iostream>#include <stdexcept>#include <string>#include <system_error>#include <vector>#include <fcntl.h>#include <sys/stat.h>#include <unistd.h>#include <SimoxUtility/algorithm/string.h>#include <ArmarXCore/core/exceptions/local/ExpressionException.h>#include <RobotAPI/libraries/armem/core/MemoryID.h>#include <RobotAPI/libraries/armem/core/error.h>
Include dependency graph for filesystem.cpp:Go to the source code of this file.
Namespaces | |
| namespace | armarx |
| This file offers overloads of toIce() and fromIce() functions for STL container types. | |
| namespace | armarx::armem |
| namespace | armarx::armem::server |
| namespace | armarx::armem::server::ltm |
| namespace | armarx::armem::server::ltm ::util |
| namespace | armarx::armem::server::ltm ::util::fs |
| namespace | armarx::armem::server::ltm ::util::fs::detail |
Functions | |
| bool | canCreateFiles (const std::filesystem::path &dir) |
| bool | directoryExists (const std::filesystem::path &p) |
| void | ensureDirectoryExists (const std::filesystem::path &p, bool createIfNotExistent) |
| void | ensureFileExists (const std::filesystem::path &p, bool createIfNotExistent) |
| std::string | escapeName (const std::string &segmentName) |
| std::string | extractLastDirectoryFromPath (const std::string &path) |
| bool | fileExists (const std::filesystem::path &p) |
| std::vector< std::filesystem::path > | getAllDirectories (const std::filesystem::path &p) |
| std::vector< std::filesystem::path > | getAllFiles (const std::filesystem::path &p) |
| bool | hasWritePermission (const std::filesystem::path &p) |
| bool | isDateString (const std::string &s) |
| bool | isNumberString (const std::string &s) |
| std::vector< unsigned char > | readDataFromFile (const std::filesystem::path &p) |
| std::string | toDayString (const Time &t) |
| std::filesystem::path | toPath (const std::filesystem::path &base, const armem::MemoryID &id) |
| std::string | toSecondsString (const Time &t) |
| std::string | unescapeName (const std::string &escapedName) |
| void | writeDataToFile (const std::filesystem::path &p, const std::vector< unsigned char > &data, bool write_atomic) |