MCPcopy Create free account
hub / github.com/ChunelFeng/CGraph / beginRun

Method beginRun

example/E02-MockGUI.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53class SwitchGAspect : public GAspect {
54public:
55 CStatus beginRun() override {
56 auto p = CGRAPH_GET_GPARAM_WITH_NO_EMPTY(ProcessGParam, EXAMPLE_PARAM_KEY);
57 {
58 CGRAPH_PARAM_WRITE_CODE_BLOCK(p)
59 p->change(this->getName(), true);
60 }
61
62 notify(EXAMPLE_EVENT_KEY, GEventType::SYNC);
63 return CStatus();
64 }
65
66 CVoid finishRun(const CStatus& curStatus) override {
67 auto p = CGRAPH_GET_GPARAM_WITH_NO_EMPTY(ProcessGParam, EXAMPLE_PARAM_KEY);

Callers 1

forFunction · 0.45

Calls 2

notifyFunction · 0.85
changeMethod · 0.80

Tested by 1

forFunction · 0.36