로드 중...
검색 중...
일치하는 항목 없음
gamsplatform.h
1
26#ifndef GAMSPLATFORM_H
27#define GAMSPLATFORM_H
28
29#include "gamslib_global.h"
30#include <스레드>
31
32namespace게임{
33
34외부LIBSPECconst 문자cEnvSep;
35외부LIBSPECconst 문자*cLibEnv;
36외부LIBSPECconst char*cPathSep;
37외부LIBSPECconst 문자*cCmp파일이름;
38외부LIBSPECconst intcExitCodeDiv;
39externLIBSPECconst 문자*cExeSuffix;
40외부LIBSPECconst 문자*cLibPrefix;
41외부LIBSPECconst 문자*cLibSuffix;
42
45{
52 정적std::stringfindGams(LogId logId = 0);
53
56 정적 공허 ensureEnvPathContains(const 문자*dirName);
57
64 정적 부울 인터럽트(pid);
65
74 정적 int 실행프로세스(conststd::string &where,
75 conststd::string &what,
76 conststd::string &args,
77std::string &출력);
78
85 정적std::스레드runProcessParallel(conststd::string &실행 가능,conststd::string &args);
86
87비공개:
89
90 정적std::string findGamsOnApple(LogId logId);
91 정적 무효envPathSetOnApple(const 문자*dirName);
92
93 정적std::string findGamsOnUnix(LogId logId);
94 정적 무효envPathSetOnUnix(를 보장하세요.const 문자*dirName);
95 정적 부울interruptOnNonWindows(pid);
96
97 정적std::string findGamsOnWindows(LogId logId);
98 정적 공허envPathSetOnWindows(const 문자*dirName);
99 정적 부울interruptOnWindows(pid);
100};
101
102}// 네임스페이스 슬롯 나라
103
104#endif// GAMSPLATFORM_H
API의 모든 플랫폼별 호출을 캡슐화합니다.
static int runProcess(const std::string &where, const std::string &what, const std::string &args, std::string &output)
정적 bool 인터럽트(긴 pid)
static void verifyEnvPathContains(const char *dirName)
정적 std::string findGams(LogId logId=0)
static std::thread runProcessParallel(const std::string &executable, const std::string &args)