Bayeux  3.4.1
Core Foundation library for SuperNEMO
Namespaces | Functions
utils.h File Reference

Utilities. More...

#include <string>
#include <list>

Go to the source code of this file.

Namespaces

 datatools
 The Bayeux/datatools library top-level namespace.
 
 datatools::ui
 
 datatools::ui::path
 

Functions

const std::string & datatools::ui::path::root_path ()
 
const std::string & datatools::ui::path::home_interface_path ()
 
const std::string & datatools::ui::path::current_interface_path ()
 
const std::string & datatools::ui::path::current_parent_interface_path ()
 
char datatools::ui::path::sep ()
 
char datatools::ui::path::exec ()
 
std::string datatools::ui::path::remove_trailing_sep (const std::string &path_)
 
std::string datatools::ui::path::basename (const std::string &path)
 Return the basename of a command or interface path. More...
 
std::string datatools::ui::path::parent_path (const std::string &path)
 Return the parent interface path of a command or interface path. More...
 
bool datatools::ui::path::is_hidden (const std::string &name_)
 Check if a name is hidden. More...
 
bool datatools::ui::path::is_valid_name (const std::string &name_)
 Check if a name is valid. More...
 
bool datatools::ui::path::is_valid_path (const std::string &path_)
 Check if a path is valid. More...
 
bool datatools::ui::path::is_absolute_path (const std::string &path_)
 Check if a path is absolute. More...
 
bool datatools::ui::path::build_leaf_full_path (const std::string &parent_path_, const std::string &leaf_name_, std::string &full_leaf_path_)
 Build the full path of a leaf with respect to its parent path. More...
 
bool datatools::ui::path::is_child_of (const std::string &child_candidate_, const std::string &parent_path_)
 Check if an absolute path if a child of another absolute path. More...
 
std::string datatools::ui::path::build_path (const std::list< std::string > &segments_)
 Return the parent interface path of a command or interface path. More...
 

Detailed Description

Utilities.