| 160 | } |
| 161 | |
| 162 | std::optional<std::string> ContextImpl::get_node_data(std::string node_name) |
| 163 | { |
| 164 | StringBuffer buffer; |
| 165 | if (!MaaContextGetNodeData(context, node_name.c_str(), buffer)) { |
| 166 | return std::nullopt; |
| 167 | } |
| 168 | return buffer.str(); |
| 169 | } |
| 170 | |
| 171 | std::optional<maajs::ValueType> ContextImpl::get_node_data_parsed(std::string node_name) |
| 172 | { |
nothing calls this directly
no test coverage detected