1#ifndef CPPAD_CG_SYSTEM_INCLUDED
2#define CPPAD_CG_SYSTEM_INCLUDED
26template<
class T =
int >
29 static const std::string DYNAMIC_LIB_EXTENSION;
30 static const std::string STATIC_LIB_EXTENSION;
33inline std::string getWorkingDirectory();
50inline std::string
createPath(
const std::string& baseFolder,
51 const std::string& file);
60inline std::string
createPath(std::initializer_list<std::string> folders,
61 const std::string& file);
71inline std::string filenameFromPath(
const std::string& path);
73inline std::string directoryFromPath(
const std::string& path);
97inline bool isFile(
const std::string& path);
111 const std::vector<std::string>& args,
112 std::string* stdOutErrMessage =
nullptr,
113 const std::string* stdInMessage =
nullptr);
bool isDirectory(const std::string &path)
bool isFile(const std::string &path)
std::string createPath(const std::string &baseFolder, const std::string &file)
void createFolder(const std::string &folder)
bool isAbsolutePath(const std::string &path)
std::string escapePath(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)