MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / get_anchor

Method get_anchor

source/binding/NodeJS/src/apis/context.cpp:202–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202std::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
213int32_t ContextImpl::get_hit_count(std::string node_name)
214{

Callers

nothing calls this directly

Calls 2

MaaContextGetAnchorFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected