ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
helpers.hpp File Reference
#include <iostream>
#include <string>
Include dependency graph for helpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string module_name (const char *path)
 Helper function to extract module name from the path of the executable. More...
 
std::string modified_filename (const std::string filename, const std::string new_end_with_suffix)
 Modifies a filename by replacing the last dot with an underscore and appending a new end withsuffix. More...
 
bool are_identical_files (const std::string &file1, const std::string &file2)
 Compares two files for identical content. More...
 

Function Documentation

◆ are_identical_files()

bool are_identical_files ( const std::string &  file1,
const std::string &  file2 
)

Compares two files for identical content.

Parameters
file1The path to the first file
file2The path to the second file
Returns
true if the files are identical, false otherwise
Here is the caller graph for this function:

◆ modified_filename()

std::string modified_filename ( const std::string  filename,
const std::string  new_end_with_suffix 
)

Modifies a filename by replacing the last dot with an underscore and appending a new end withsuffix.

Parameters
filenameThe original filename
new_end_with_suffixThe new end with suffix to append
Returns
The modified filename
Here is the caller graph for this function:

◆ module_name()

std::string module_name ( const char *  path)

Helper function to extract module name from the path of the executable.

Parameters
pathThe full path of the executable
Returns
The module name extracted from the path
Here is the caller graph for this function: