process:用于捕获流程标准输出和错误的库

时间:2021-07-11 16:16:42
【文件属性】:
文件名称:process:用于捕获流程标准输出和错误的库
文件大小:17KB
文件格式:ZIP
更新时间:2021-07-11 16:16:42
C++ 过程 Process 是一个用于运行外部进程并捕获其标准输出和错误的库。 安装库 (Linux) 获取源码: git clone https://github.com/sabel83/process && cd process 创建构建目录: mkdir bin && bin 生成 Makefile: cmake .. 构建测试: make 运行测试: make test 复制标题: make install (您可能需要以root身份运行它) 用法 您需要包含头文件,它提供以下模板功能: template < class> process::output process::run ( const Seq& cmd_, const std::string& input_) 第一个参数cmd_是一个std::string
【文件预览】:
process-master
----CMakeLists.txt(3KB)
----.gitignore(4B)
----README.md(1KB)
----test()
--------main.cpp(297B)
--------CMakeLists.txt(684B)
--------test_run.cpp(2KB)
--------test_output.cpp(803B)
--------test_version.cpp(684B)
--------test_input_file.cpp(2KB)
--------test_pipe.cpp(590B)
--------util.hpp(571B)
--------test_output_file.cpp(1KB)
--------util.cpp(1KB)
--------test_util.cpp(1KB)
----include()
--------process()
----example()
--------CMakeLists.txt(248B)
--------run_ls()
--------send_input()
----.travis.yml(229B)

网友评论