-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstd_io.h
More file actions
45 lines (29 loc) · 730 Bytes
/
Copy pathstd_io.h
File metadata and controls
45 lines (29 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// std_io.h
// std_io
//
// Created by Oded Streigold on 4/18/20.
//
#ifndef std_io_h
#define std_io_h
#include "core/reference.h"
#include "core/func_ref.h"
#include "process.hpp"
using namespace std;
using namespace TinyProcessLib;
class STD_IO : public Reference {
GDCLASS(STD_IO, Reference);
int count;
Process* process = nullptr;
Ref<FuncRef> godot_output_callback;
protected:
static void _bind_methods();
public:
std::string godot_string_std_string(String godot_string);
STD_IO();
int start_process(String path);
int stop_process();
int send_command(String command);
void set_stdout_callback(Ref<FuncRef> callback );
};
#endif /* std_io_h */