python - python“.tp_doc”属性的 Doxygen 文档…
问题描述
我有一个类库,所有doxygen文档都位于 c-header 文件中……现在我有一个python api 包装器,它使用与 c-api类型和函数相关的python 类型和方法……
问题...我如何从 c-heder 文件中获取\brief和\details文档到python .tpdoc
... 属性中?
一个真正好的帮助是doxygen生成一个index
带有 c-function-name → \brief和\detail信息的文件......?也许更多?
我会阅读这个 index
文件并将信息添加到python api。
→ 感谢您的帮助
例子:
/// \brief create a \e master/slave link between the master-parent-context and the slave-parent-context …
///
/// \param[in] ctx the \e master context object as PARENT without a CHILD
/// \slaveid
/// \param[in] slave the \e slave context object as CLIENT-PARENT without a CHILD
/// \retMqErrorE
/// \attention The \e slave-context is owned by the \e master-context.
/// This mean that no other external references should be used and the \e slave-context
/// will be deleted if the \e master-context is be deleted.
MQ_EXTERN enum MqErrorE
MQ_DECL MqSlaveCreate (
struct MqS * const ctx,
MQ_SLAVE_ID const id,
struct MqS * const slave
);
python api…</p>
static PyMethodDef MqC_Methods[] = {
...
{ "SlaveCreate", NS(MqC_SlaveCreate), METH_VARARGS, "\brief doc…" },
...
}
解决方案
推荐阅读
- javascript - 在箭头函数(React)中使用时,Lodash 'get' 不起作用
- discord.js - Discord bot:使用拼写错误的命令时响应“未知命令”
- r - 在ggplot2中使用`facet_grid`时突出显示/在一些图周围画一个框
- javascript - Redux - 返回调用函数信息以更新道具/状态
- android - Google Fit API 是否仅适用于 gmail 帐户?
- r - 更改 R 中类型因子的变量的值
- image - Typo3 - 流体、Flexform 隐藏图像导致“未找到给定 UID 的文件引用 (sys_file_reference)”
- ios - SwiftUI WKWebView 检测 url 变化
- node.js - 我可以从 fs.createWriteStream() 获取缓冲区吗?
- delphi - 如何对 javascript 确认对话框 chromium cef3 产生 OK