util.cpp File Reference
#include "util.h"
#include <thread>
#include <chrono>
+ Include dependency graph for util.cpp:

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::disk
 
 armarx::armem::server::ltm::disk::util
 

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)