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)

Definition at line 23 of file util.cpp.

+ Here is the call graph for this function:

◆ checkIfFileExists()

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

Definition at line 63 of file util.cpp.

+ Here is the call graph for this function:

◆ checkIfFolderExists()

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

Definition at line 43 of file util.cpp.

+ Here is the call graph for this function:

◆ ensureBasePathExists()

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

Definition at line 32 of file util.cpp.

+ Here is the call graph for this function:

◆ ensureFileExists()

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

Definition at line 73 of file util.cpp.

+ Here is the call graph for this function:

◆ ensureFolderExists()

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

Definition at line 53 of file util.cpp.

+ Here is the call graph for this function:

◆ getAllDirectories()

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

Definition at line 123 of file util.cpp.

+ Here is the call graph for this function:

◆ getAllFiles()

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

Definition at line 133 of file util.cpp.

+ Here is the call graph for this function:

◆ isNumber()

bool isNumber ( const std::string &  s)

Definition at line 11 of file util.cpp.

+ Here is the call graph for this function:

◆ readDataFromFile()

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

Definition at line 113 of file util.cpp.

+ Here is the call graph for this function:

◆ writeDataToFile()

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

Definition at line 83 of file util.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 
)

Definition at line 93 of file util.cpp.

+ Here is the call graph for this function: