| 200 | } |
| 201 | |
| 202 | std::optional<std::string> ContextImpl::get_anchor(std::string anchor_name) |
| 203 | { |
| 204 | StringBuffer buf; |
| 205 | if (MaaContextGetAnchor(context, anchor_name.c_str(), buf)) { |
| 206 | return buf.str(); |
| 207 | } |
| 208 | else { |
| 209 | return std::nullopt; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | int32_t ContextImpl::get_hit_count(std::string node_name) |
| 214 | { |
nothing calls this directly
no test coverage detected