ChimeraTK-DeviceAccess  03.18.00
parserUtilities.cc File Reference
#include "parserUtilities.h"
#include <cstdlib>
#include <filesystem>
#include <stdexcept>
#include <unistd.h>
+ Include dependency graph for parserUtilities.cc:

Go to the source code of this file.

Namespaces

 ChimeraTK
 
 ChimeraTK::parserUtilities
 

Functions

std::string ChimeraTK::parserUtilities::getCurrentWorkingDirectory ()
 Returns absolute path to current working directory. The returned path ends with a forward slash. More...
 
std::string ChimeraTK::parserUtilities::convertToAbsolutePath (std::string const &relativePath)
 Converts a relative path to its absolute path. More...
 
std::string ChimeraTK::parserUtilities::concatenatePaths (const std::string &path1, const std::string &path2)
 Concatenates two given paths using custom rules. More...
 
std::string ChimeraTK::parserUtilities::extractDirectory (std::string const &path)
 Returns the path to the directory containing the file provided as the input parameter. More...
 
std::string ChimeraTK::parserUtilities::extractFileName (std::string const &path)
 Extract the string after the last '/' in a path. Returned substring does not include the '/' character. More...