util.h File Reference
#include "../../../../../core/error.h"
#include "filesystem_util.h"
#include "minizip_util.h"
+ Include dependency graph for util.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::disk
 
 armarx::armem::server::ltm::disk::constantes
 
 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)
 

Variables

const std::string DATA_FILENAME = "data.aron"
 
const std::string METADATA_FILENAME = "metadata.aron"
 
const std::string TYPE_FILENAME = "type.aron"