CppADCodeGen
HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
|
Classes | |
class | SystemInfo |
Functions | |
std::string | getWorkingDirectory () |
void | createFolder (const std::string &folder) |
std::string | createPath (const std::string &baseFolder, const std::string &file) |
std::string | createPath (std::initializer_list< std::string > folders, const std::string &file) |
std::string | escapePath (const std::string &path) |
std::string | filenameFromPath (const std::string &path) |
std::string | directoryFromPath (const std::string &path) |
bool | isAbsolutePath (const std::string &path) |
bool | isDirectory (const std::string &path) |
bool | isFile (const std::string &path) |
void | callExecutable (const std::string &executable, const std::vector< std::string > &args, std::string *stdOutErrMessage=nullptr, const std::string *stdInMessage=nullptr) |
System dependent functions
|
inline |
Calls an external executable (system dependent). In the case of an error during execution an exception will be thrown.
executable | the executable path |
args | the command line arguments to the executable |
stdOutErrMessage | standard output and standard error message from the executable |
stdInMessage | information to pass as standard input to the executable |
CGException | on failure to call the executable |
Referenced by CppAD::cg::GccCompiler< Base >::buildDynamic(), CppAD::cg::ClangCompiler< Base >::buildDynamic(), CppAD::cg::GccCompiler< Base >::compileFile(), CppAD::cg::ClangCompiler< Base >::compileFile(), CppAD::cg::GccCompiler< Base >::compileSource(), and CppAD::cg::ClangCompiler< Base >::compileSource().
|
inline |
creates a new folder (system dependent)
folder | the path to the folder |
CGException | on failure to create the folder |
Referenced by CppAD::cg::AbstractCCompiler< Base >::compileSources(), and CppAD::cg::ModelLibraryCSourceGen< Base >::saveSources().
|
inline |
Creates a new path (system dependent)
baseFolder | the path to the base folder |
file | the file or folder name inside the base folder |
Referenced by CppAD::cg::AbstractCCompiler< Base >::compileSources(), and CppAD::cg::ModelLibraryCSourceGen< Base >::saveSources().
|
inline |
Creates a new path (system dependent)
folders | the names of the folders in the path to the file |
file | the file or folder name |
|
inline |
Escapes a file or folder path (system dependent)
path | the file/folder path |
|
inline |
Determines if a path is absolute.
path | the path |
|
inline |
Checks if a path exists and is a directory
path | the path |
|
inline |
Checks if a path exists and is a file
path | the path |