filesystem.h File Reference
#include <filesystem>
#include <map>
#include <string>
#include <vector>
#include <RobotAPI/libraries/armem/core/MemoryID.h>
+ Include dependency graph for filesystem.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
 armarx::armem
 
 armarx::armem::server
 
 armarx::armem::server::ltm
 
 armarx::armem::server::ltm::util
 
 armarx::armem::server::ltm::util::fs
 
 armarx::armem::server::ltm::util::fs::detail
 

Functions

bool directoryExists (const std::filesystem::path &p)
 
void ensureDirectoryExists (const std::filesystem::path &p, bool createIfNotExistent=false)
 
void ensureFileExists (const std::filesystem::path &p, bool createIfNotExistent=false)
 
std::string escapeName (const std::string &segmentName)
 
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 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)
 

Variables

const std::map< std::string, std::string > EscapeTable = {{"/", "|"}}