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