⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commands.doc

📁 doxygen(一个自动从源代码生成文档的工具)的源代码
💻 DOC
📖 第 1 页 / 共 4 页
字号:
<hr>\subsection cmdnamespace \namespace <name>   \addindex \namespace  Indicates that a comment block contains documentation for a  namespace with name \<name\>.   <hr>\subsection cmdnosubgrouping \nosubgroupingThis command can be put in the documentationof a class. It can be used in combination with member groupingto avoid that doxygen puts a member group as a subgroup of aPublic/Protected/Private/... section.<hr>\subsection cmdoverload \overload [(function declaration)]  \addindex \overload  This command can be used to generate the following   standard text for an overloaded member function:   `This is an overloaded member function, provided for convenience.     It differs from the above function only in what argument(s) it accepts.'  If the documentation for the overloaded member function is not located  in front of the function declaration or definition, the optional   argument should be used to specify the correct function.   Any other documentation that is inside the documentation block will  by appended after the generated message.  \par Note 1:    You are responsible that there is indeed an    earlier documented member that is overloaded by this one.    To prevent that document reorders the documentation you should set    \ref cfg_sort_member_docs "SORT_MEMBER_DOCS" to NO in this case.  \par Note 2:    The \\overload command does not work inside a one-line comment.  \par Example:  \verbinclude examples/overload.cpp  \htmlonly  Click <a href="$(DOXYGEN_DOCDIR)/examples/overload/html/class_test.html">here</a>   for the corresponding HTML documentation that is generated by doxygen.  \endhtmlonly<hr>\subsection cmdpackage \package <name>    \addindex \package  Indicates that a comment block contains documentation for a  Java package with name \<name\>. <hr>\subsection cmdpage \page <name> (title)  \addindex \page  Indicates that a comment block contains a piece of documentation that is  not directly related to one specific class, file or member.   The HTML generator creates a page containing the documentation. The  \f$\mbox{\LaTeX}\f$ generator   starts a new section in the chapter `Page documentation'.    \par Example:  \verbinclude page.doc    \htmlonly  Click <a href="$(DOXYGEN_DOCDIR)/examples/page/html/pages.html">here</a>   for the corresponding HTML documentation that is generated by doxygen.  \endhtmlonly  \par Note:      The \<name\> argument consists of a combination of letters and number     digits. If you wish to use upper case letters (e.g. \c MYPAGE1), or      mixed case letters (e.g. \c MyPage1) in the \<name\> argument, you      should set \c CASE_SENSE_NAMES to \c YES. However, this is advisable      only if your file system is case sensitive. Otherwise (and for better      portability) you should use all lower case letters (e.g. \c mypage1)      for \<name\> in all references to the page.    \sa section \ref cmdsection "\\section", section               \ref cmdsubsection "\\subsection", and section               \ref cmdref "\\ref".<hr>\subsection cmdrelates \relates <name>  \addindex \relates  This command can be used in the documentation of a non-member function  \<name\>. It puts the function inside the `related function' section   of the class documentation. This command is useful for documenting   non-friend functions that are nevertheless strongly coupled to a certain  class. It prevents the need of having to document a file, but  only works for functions.    \par Example:  \verbinclude relates.cpp    \htmlonly  Click <a href="$(DOXYGEN_DOCDIR)/examples/relates/html/class_string.html">here</a>   for the corresponding HTML documentation that is generated by doxygen.  \endhtmlonly<hr>\subsection cmdshowinitializer \showinitializer  \addindex \showinitializer  By default the value of a define and the initializer of a variable  are only displayed if they are less than 30 lines long. By putting  this command in a comment block of a define or variable, the   initializer is shown unconditionally.  \sa section \ref cmdhideinitializer "\\hideinitializer".<hr>\subsection cmdstruct \struct <name> [<header-file>] [<header-name>]  \addindex \struct  Indicates that a comment block contains documentation for a  struct with name \<name\>. The arguments are equal to the \\class  command.  \sa section \ref cmdclass "\\class".<hr>\subsection cmdtypedef \typedef (typedef declaration)  \addindex \typedef  Indicates that a comment block contains documentation for a  typedef (either global or as a member of a class).   This command is equivalent to \\var and \\fn.  \sa section \ref cmdfn "\\fn" and \ref cmdvar "\\var".<hr>\subsection cmdunion \union <name> [<header-file>] [<header-name>]  \addindex \union  Indicates that a comment block contains documentation for a  union with name \<name\>. The arguments are equal to the \\class  command.  \sa section \ref cmdclass "\\class".<hr>\subsection cmdvar \var (variable declaration)  \addindex \var  Indicates that a comment block contains documentation for a variable or  enum value (either global or as a member of a class).   This command is equivalent to \\typedef and \\fn.  \sa section \ref cmdfn "\\fn" and \ref cmdtypedef "\\typedef".<hr>\subsection cmdweakgroup \weakgroup <name> [(title)]  \addindex \addtogroup  Can be used exactly like \ref cmdaddtogroup "\\addtogroup", but has  a lower priority when it comes to resolving conflicting grouping  definitions.  \sa page \ref grouping "Grouping" and \ref cmdaddtogroup "\\addtogroup".<hr><h2>\htmlonly <center> --- \endhtmlonly     Section indicators    \htmlonly --- </center>\endhtmlonly</h2><hr>\subsection cmdattention \attention { attention text }  \addindex \attention  Starts a paragraph where a message that needs attention may be entered.   The paragraph will be indented.   The text of the paragraph has no special internal structure. All visual  enhancement commands may be used inside the paragraph.  Multiple adjacent \\attention commands will be joined into a single paragraph.  The \\attention command ends when a blank line or some other   sectioning command is encountered. \subsection cmdauthor \author { list of authors }  \addindex \author  Starts a paragraph where one or more author names may be entered.   The paragraph will be indented.   The text of the paragraph has no special internal structure. All visual  enhancement commands may be used inside the paragraph.  Multiple adjacent \\author commands will be joined into a single paragraph  and separated by commas. Alternatively, one \\author command may mention   several authors. The \\author command ends when a blank line or some other   sectioning command is encountered.  \par Example:  \verbinclude author.cpp    \htmlonly  Click <a href="$(DOXYGEN_DOCDIR)/examples/author/html/class_windows_n_t.html">here</a>   for the corresponding HTML documentation that is generated by doxygen.  \endhtmlonly<hr>\subsection cmdbrief \brief {brief description}  \addindex \brief  Starts a paragraph that serves as a brief description. For classes and files  the brief description will be used in lists and at the start of the  documentation page. For class and file members, the brief description  will be placed at the declaration of the member and prepended to the  detailed description. A brief description may span several lines (although  it is advised to keep it brief!). A brief description ends when a   blank line or another sectioning command is encountered. If multiple  \\brief commands are present they will be joined. See section   \ref cmdauthor "\\author" for an example.   Synonymous to \\short. <hr>\subsection cmdbug \bug { bug description }  \addindex \bug  Starts a paragraph where one or more bugs may be reported.   The paragraph will be indented.   The text of the paragraph has no special internal structure. All visual  enhancement commands may be used inside the paragraph.  Multiple adjacent \\bug commands will be joined into a single paragraph.  Each bug description will start on a new line.  Alternatively, one \\bug command may mention   several bugs. The \\bug command ends when a blank line or some other   sectioning command is encountered. See section \ref cmdauthor "\\author"  for an example.<hr>\subsection cmddate \date { date description }  \addindex \date  Starts a paragraph where one or more dates may be entered.   The paragraph will be indented.   The text of the paragraph has no special internal structure. All visual  enhancement commands may be used inside the paragraph.  Multiple adjacent \\date commands will be joined into a single paragraph.  Each date description will start on a new line.  Alternatively, one \\date command may mention   several dates. The \\date command ends when a blank line or some other   sectioning command is encountered. See section \ref cmdauthor "\\author"   for an example.<hr>\subsection cmddeprecated \deprecated { description }  \addindex \deprecated  Starts a paragraph indicating that this documentation block belongs to  a deprecated entity. Can be used to describe alternatives,   expected life span, etc.<hr>\subsection cmdelse \else   \addindex \else  Starts a conditional section if the previous conditional section   was not enabled. The previous section should have been started with   a \c \\if, \c \\ifnot, or \c \\elseif command.  \sa \ref cmdif "\\if", \ref cmdifnot "\\ifnot", \ref cmdelseif "\\elseif",      \ref cmdendif "\\endif."<hr>\subsection cmdelseif \elseif <section-label>  \addindex \elseif  Starts a conditional documentation section if the previous section   was not enabled. A conditional section is  disabled by default. To enable it you must put the  section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"   tag in the configuration  file. Conditional blocks can be nested. A nested section is  only enabled if all enclosing sections are enabled as well.  \sa sections \ref cmdendif "\\endif", \ref cmdifnot "\\ifnot",               \ref cmdelse "\\else", and \ref cmdelseif "\\elseif".<hr>\subsection cmdendif \endif   \addindex \\endif  Ends a conditional section that was started with \c \\if or \c \\ifnot  For each \c \\if or \c \\ifnot one and only one matching \c \\endif must follow.  \sa \ref cmdif "\\if", and \ref cmdifnot "\\ifnot".<hr>\subsection cmdexception \exception <exception-object> { exception description }  \addindex \exception  Starts an exception description for an exception object with name   \<exception-object\>. Followed by a description of the exception.   The existence of the exception object is not checked.  The text of the paragraph has no special internal structure. All visual  enhancement commands may be used inside the paragraph.  Multiple adjacent \\exception commands will be joined into a single paragraph.  Each parameter description will start on a new line.  The \\exception description ends when a blank line or some other   sectioning command is encountered. See section \ref cmdfn "\\fn" for an   example.  \par Note:   the tag \\exceptions is a synonym for this tag.<hr>\subsection cmdif \if <section-label>  \addindex \\if  Starts a conditional documentation section. The section ends   with a matching \c \\endif command. A conditional section is  disabled by default. To enable it you must put the  section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"   tag in the configuration  file. Conditional blocks can be nested. A nested section is  only enabled if all enclosing sections are enabled as well.  \par Example:\verbatim  /*! Uncoditionally shown documentation.   *  \if Cond1   *    Only included if Cond1 is set.   *  \endif   *  \if Cond2   *    Only included if Cond2 is set.   *    \if Cond3   *      Only included if Cond2 and Cond3 are set.   *    \endif   *    More text.   *  \endif   *  Unconditional text.   */\endverbatim    You can also use conditional commands inside aliases. To   document a class in two languages you could for instance use:\par Example 2:\verbatim/*! \english *  This is English. *  \endenglish *  \dutch *  Dit is Nederlands. *  \enddutch */class Example{};\endverbatim  <p>Where the following aliases are defined in the configuration file:<p>\verbatimALIASES  = "english=\if english" \           "endenglish=\endif" \           "dutch=\if dutch" \           "enddutch=\endif"\endverbatim  and \c ENABLED_SECTIONS can be used to enable either \c english or \c dutch.  \sa sections \ref cmdendif "\\endif", \ref cmdifnot "\\ifnot",               \ref cmdelse "\\else", and \ref cmdelseif "\\elseif".<hr>\subsection cmdifnot \ifnot <section-label>  \addindex \ifnot  Starts a conditional documentation section. The section ends   with a matching \c \\endif command. This conditional section is  enabled by default. To disable it you must put the  section-label after the \ref cfg_enabled_sections "ENABLED_SECTIONS"   tag in the configuration  file.   \sa sections \ref cmdendif "\\endif", \ref cmdif "\\if",               \ref cmdelse "\\else", and \ref cmdelseif "\\elseif".<hr>\subsection cmdinvariant \invariant { description of invariant }  \addindex \invariant  Starts a paragraph where the invariant of an entity can be described.  The paragraph will be indented.   The text of the paragraph has no special internal structure. All visual  enhancement commands may be used inside the paragraph.  Multiple adjacent \\invariant commands will be joined into a single paragraph.  Each invariant description will start on a new line.  Alternatively, one \\invariant command may mention   several invariants. The \\invariant command ends when a blank line or some other   sectioning command is encountered.<hr>\subsection cmdnote \note { text }  \addindex \note  Starts a paragraph where a note can be entered. The paragraph will be   indented. The text of the paragraph has no special internal structure.   All visual enhancement commands may be used inside the paragraph.  Multiple adjacent \\note commands will be joined into a single paragraph.  Each note description will start on a new line.  Alternatively, one \\note command may mention   several notes. The \\note command ends when a blank line or some other   sectioning command is encountered. See section \ref cmdpar "\\par"   for an example.<hr>\subsection cmdpar \par [(paragraph title)] { paragraph }  \addindex \par  If a paragraph title is given this command starts a paragraph with a   user defined heading. The heading extends until the end of the  line. The paragraph following the command will be indented.  If no paragraph title is given this command will start a new paragraph.  This will also work inside other paragraph commands   (like \\param or \\warning) without ending the that command.    The text of the paragraph has no special internal structure. All visual  enhancement commands may be used inside the paragraph.  The \\par command ends when a blank line or some other   sectioning command is encountered.   \par Example:  \verbinclude par.cpp    \htmlonly

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -