armarx::armem::server::ltm::disk::util Namespace Reference

Functions

bool checkIfBasePathExists (const std::filesystem::path &mPath)
 
bool checkIfFileExists (const std::filesystem::path &mPath, const std::filesystem::path &p)
 
bool checkIfFolderExists (const std::filesystem::path &mPath, const std::filesystem::path &p)
 
void ensureBasePathExists (const std::filesystem::path &mPath, bool createIfNotExistent)
 
void ensureFileExists (const std::filesystem::path &mPath, const std::filesystem::path &p)
 
void ensureFolderExists (const std::filesystem::path &mPath, const std::filesystem::path &p, bool createIfNotExistent)
 
std::vector< std::string > getAllDirectories (const std::filesystem::path &mPath, const std::filesystem::path &p)
 
std::vector< std::string > getAllFiles (const std::filesystem::path &mPath, const std::filesystem::path &p)
 
bool isNumber (const std::string &s)
 
std::vector< unsigned char > readDataFromFile (const std::filesystem::path &mPath, const std::filesystem::path &p)
 
void writeDataToFile (const std::filesystem::path &mPath, const std::filesystem::path &p, const std::vector< unsigned char > &data)
 
void writeDataToFileRepeated (const std::filesystem::path &mPath, const std::filesystem::path &p, const std::vector< unsigned char > &data, const unsigned int maxTries, const unsigned int sleepTimeMs)
 

Function Documentation

◆ checkIfBasePathExists()

bool checkIfBasePathExists ( const std::filesystem::path & mPath)

◆ checkIfFileExists()

bool checkIfFileExists ( const std::filesystem::path & mPath,
const std::filesystem::path & p )

◆ checkIfFolderExists()

bool checkIfFolderExists ( const std::filesystem::path & mPath,
const std::filesystem::path & p )

◆ ensureBasePathExists()

void ensureBasePathExists ( const std::filesystem::path & mPath,
bool createIfNotExistent )

◆ ensureFileExists()

void ensureFileExists ( const std::filesystem::path & mPath,
const std::filesystem::path & p )

◆ ensureFolderExists()

void ensureFolderExists ( const std::filesystem::path & mPath,
const std::filesystem::path & p,
bool createIfNotExistent )

◆ getAllDirectories()

std::vector< std::string > getAllDirectories ( const std::filesystem::path & mPath,
const std::filesystem::path & p )

◆ getAllFiles()

std::vector< std::string > getAllFiles ( const std::filesystem::path & mPath,
const std::filesystem::path & p )

◆ isNumber()

bool isNumber ( const std::string & s)

◆ readDataFromFile()

std::vector< unsigned char > readDataFromFile ( const std::filesystem::path & mPath,
const std::filesystem::path & p )

◆ writeDataToFile()

void writeDataToFile ( const std::filesystem::path & mPath,
const std::filesystem::path & p,
const std::vector< unsigned char > & data )

◆ writeDataToFileRepeated()

void writeDataToFileRepeated ( const std::filesystem::path & mPath,
const std::filesystem::path & p,
const std::vector< unsigned char > & data,
const unsigned int maxTries,
const unsigned int sleepTimeMs )