【问题标题】:Documenting a class in doxygen in a .doc file. @property not working在 .doc 文件中记录 doxygen 中的类。 @property 不工作
【发布时间】:2012-11-03 23:00:51
【问题描述】:

我正在记录从声明它的文件之外的模型生成的 ManagedObject 类。由于这个类是自动生成的,我不想修改源代码,所以我在 .m 文件之外有文档。

我有这个自动取款机:

/*!
    \file AA.h 
    \class AA
    \extends ManagedObject
    Data model object generated from the model.

    \public
    \property NSString * hardwareId
    \brief Unique identifier of the device
*/

我正在获取一个具有 AA 类的输出文件,它显示了继承,但没有显示有关属性或公共标签的任何内容。

不知道我做错了什么。

有什么想法吗?非常感谢

【问题讨论】:

    标签: objective-c class properties documentation doxygen


    【解决方案1】:

    我找到了答案。问题是我需要在每个属性名称的开头添加一个带有类名称的“命名空间”。

    所以,我的最终文件是这样的:

    AA.doc

    /*! 
        \class AA
        This file contains the documentation of the data model object generated from the model.  
    */
    
    /*! 
        \var NSString * AA::hardwareId
        \brief Unique identifier of the device
    */
    

    我不需要指定文件和继承,因为 doxygen 自动从 .h 文件中获取它而不添加任何内容

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-25
      • 2014-01-06
      • 2017-08-14
      • 2015-01-01
      • 1970-01-01
      相关资源
      最近更新 更多