mco_fh_config_node_get_child
返回当前节点具有给定键的子节点。
mco_fh_config_node_h mco_fh_config_node_get_child(
/*IN*/ mco_fh_config_node_h n,
/*IN*/ const char *key
)
参数
n
mco_fh_config_node_h
配置节点句柄。
key
const char
子节点的键(名称)。
返回
mco_fh_config_node_h
子配置节点的句柄。
示例
bool TestFeedHandler::setup(mco_fh_config_node_h cfgroot)
{
// 从模块配置中读取“delayms”参数。
delayms_ = mco_fh_config_node_get_int8(mco_fh_config_node_get_child(cfgroot, "delayms"), 0);
return true;
}