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

Class ProcessGParam

example/E02-MockGUI.cpp:22–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20const static char* EXAMPLE_EVENT_KEY = "example-event-key";
21
22struct ProcessGParam : public GParam {
23 CVoid change(const std::string& name, bool isBegin) {
24 if (isBegin) {
25 running_elements_.insert(name);
26 } else {
27 running_elements_.erase(name);
28 }
29 }
30
31 CVoid print() {
32 std::cout << "<";
33 for (const auto& cur : running_elements_) {
34 std::cout << " " << cur << " ";
35 }
36 std::cout << "> is running..." << std::endl;
37 }
38
39protected:
40 std::set<std::string> running_elements_;
41};
42
43
44class ShowGEvent : public GEvent {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected