| 20 | const static char* EXAMPLE_EVENT_KEY = "example-event-key"; |
| 21 | |
| 22 | struct 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 | |
| 39 | protected: |
| 40 | std::set<std::string> running_elements_; |
| 41 | }; |
| 42 | |
| 43 | |
| 44 | class ShowGEvent : public GEvent { |
nothing calls this directly
no outgoing calls
no test coverage detected