"docs/vscode:/vscode.git/clone" did not exist on "90a4b7d98a5c2d7b9d3dcc7dad6809a6d3d9ca8f"
tmp_dir.hpp 463 Bytes
Newer Older
1
2
3
4
5
6
#ifndef GUARD_OLC_TMP_DIR_HPP
#define GUARD_OLC_TMP_DIR_HPP

#include <string>
#include <boost/filesystem/path.hpp>

Chao Liu's avatar
rename  
Chao Liu committed
7
namespace online_compile {
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

void SystemCmd(std::string cmd);

struct TmpDir
{
    boost::filesystem::path path;
    TmpDir(std::string prefix);

    TmpDir(TmpDir const&) = delete;
    TmpDir& operator=(TmpDir const&) = delete;

    void Execute(std::string exe, std::string args) const;

    ~TmpDir();
};

Chao Liu's avatar
rename  
Chao Liu committed
24
} // namespace online_compile
25
26

#endif