doxygen - 如何在不隐藏子类成员的情况下隐藏类?

时间:2013-01-23 10:56:27

标签: documentation doxygen documentation-generation

我有一个代码(在C ++中,但对于其他语言,问题的解决方案可能类似):

namespace details {
  struct C {
    /// Documentation for common method.
    void c();
  };
};

/// Documentation for class A
struct A: public details:C {
  /// Documentation for method a
  void a();
};

/// Documentation for class B    
struct B: public details:C {
  /// Documentation for method b
  void b();
};

我想在文档中隐藏类C(和整个细节命名空间)(它只是为了使A和B实现更短)。但我需要在文档中包含A和B,与c成员(以及从C继承的所有其他成员)记录,例如来源:

/// Documentation for class A
struct A {
  /// Documentation for method a
  void a();

  /// Documentation for common method.
  void c();
};

/// Documentation for class B    
struct B {
  /// Documentation for method b
  void b();

  /// Documentation for common method.
  void c();
};

如何正确地做到这一点?

0 个答案:

没有答案