forked from ChunelFeng/CGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPywGEvent.h
More file actions
34 lines (26 loc) · 700 Bytes
/
Copy pathPywGEvent.h
File metadata and controls
34 lines (26 loc) · 700 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
/***************************
@Author: Chunel
@Contact: chunel@foxmail.com
@File: PywGEvent.h
@Time: 2025/3/19 23:35
@Desc:
***************************/
#ifndef CGRAPH_PYWGEVENT_H
#define CGRAPH_PYWGEVENT_H
#include <pybind11/pybind11.h>
#include "CGraph.h"
class PywGEvent : public CGraph::GEvent {
public:
explicit PywGEvent() = default;
protected:
CVoid trigger(CGraph::GEventParamPtr param) override {
PYBIND11_OVERLOAD_PURE(CVoid, GEvent, trigger, param);
}
CStatus init() override {
PYBIND11_OVERLOAD(CStatus, GEvent, init);
}
CStatus destroy() override {
PYBIND11_OVERLOAD(CStatus, GEvent, destroy);
}
};
#endif //CGRAPH_PYWGEVENT_H