libcryfs/process/subprocess.h
2015-11-03 13:11:09 -08:00

19 lines
413 B
C++

#pragma once
#ifndef MESSMER_CPPUTILS_PROCESS_SUBPROCESS_H
#define MESSMER_CPPUTILS_PROCESS_SUBPROCESS_H
#include <string>
namespace cpputils {
//TODO Test
class Subprocess {
public:
static std::string call(const std::string &command);
static int callAndGetReturnCode(const std::string &command);
private:
static FILE* _call(const std::string &command);
};
}
#endif