Loading...
Searching...
No Matches
process.hpp
1#pragma once
2
3#include "indep/common.hpp"
4#include "indep/def.hpp"
5#include "indep/macro.hpp"
6#include <string>
7#include <vector>
8#ifdef BY_BUILD_PLATFORM_IS_WINDOWS
9# include <windows.h>
10#else
11# include <sys/wait.h>
12# include <unistd.h>
13#endif
14
15namespace by {
16
17 typedef std::vector<std::string> execArgs;
18
19 class _nout process {
20 BY(ME(process))
21
22 public:
23 process();
24
25 public:
26 nbool create(const std::string& execPath, const execArgs& args = execArgs());
27 nint wait();
28
29 private:
30#ifdef BY_BUILD_PLATFORM_IS_WINDOWS
32#else
33 nint _pid;
34#endif
35 };
36}
Function or object evaluation arguments.
Definition args.hpp:22
Definition process.hpp:19
Weak reference smart pointer with type-safe access.
Definition tweak.hpp:16
to Top