Retro68/LaunchAPPL/Client/Utilities.h
2018-04-27 09:05:26 +02:00

22 lines
481 B
C++

#ifndef UTILITIES_H
#define UTILITIES_H
#include <string>
#include <vector>
int ChildProcess(std::string program, std::vector<std::string> args, int timeout);
/**
* @brief CheckExecutable
* @param program
* @return true if "program" exists in the $PATH and is executable.
*/
bool CheckExecutable(std::string program);
std::vector<std::string> SplitArguments(std::string str);
std::vector<std::string> SplitArguments(std::vector<std::string> strs);
#endif // UTILITIES_H