/**
* ... 문장 ...
*/
/*! * ... 문장 ... */
중간의 '*'문자는 선택사항입니다. 즉, 다음과 같이 해도 적법하게 처리합니다. (redpixel이 선호하는 방법)
/*! ... 문장 ... */
/
/</color> 다음에 <color red>/</color>나 <color red>!</color>문자를 하나 더 붙여주어야합니다. /// /// ... 문장 ... ///
또는
//! //!... 문장 ... //!
///////////////////////////////////////////////// /// ... 문장 ... /////////////////////////////////////////////////
/*! \brief 간략설명. * 계속된 간략설명. * * 세부설명 시작. */
/** 간략설명은 다음 마침표까지로 간주합니다. 상세 설명은 * 지금부터 처리됩니다. */
이 옵션은 여러줄의 C++ 주석에서도 같은 효과를 가집니다.
/// 간략설명은 다음 마침표까지로 간주합니다. 상세 설명은 /// 지금부터 처리됩니다.
/// Brief description. /** Detailed description. */
또는
//! Brief descripion. //! Detailed description //! starts here.
상세설명을 포함하고 있는 블럭을 간단히 설명하기 위해서 마지막 예에서 빈라인을 이용하였다.
이경우에는 <color blue>JAVADOC_AUTOBRIEF</color> 옵션이 NO 이어야 한다.
//! Brief description, which is //! really a detailed description since it spans multiple lines. /*! Oops, another detailed description! */
//! A test class. /*! A more elaborate class description. */ class Test { public: //! An enum. /*! More detailed enum description. */ enum TEnum { TVal1, /*!< Enum value TVal1. */ TVal2, /*!< Enum value TVal2. */ TVal3 /*!< Enum value TVal3. */ } //! Enum pointer. /*! Details. */ *enumPtr, //! Enum variable. /*! Details. */ enumVar; //! A constructor. /*! A more elaborate description of the constructor. */ Test(); //! A destructor. /*! A more elaborate description of the destructor. */ ~Test(); //! A normal member taking two arguments and returning an integer value. /*! \param a an integer argument. \param s a constant character pointer. \return The test results \sa Test(), ~Test(), testMeToo() and publicVar() */ int testMe(int a,const char *s); //! A pure virtual member. /*! \sa testMe() \param c1 the first argument. \param c2 the second argument. */ virtual void testMeToo(char c1,char c2) = 0; //! A public variable. /*! Details. */ int publicVar; //! A function variable. /*! Details. */ int (*handler)(int a,int b); };
doxygen에 의해 생성되는 해당 HTML 문서를 보려면 여기를 클릭하십시오.
/** Brief description (e.g.\ using only a few words). Details follow. */
/** * A test class. A more elaborate class description. */ class Test { public: /** * An enum. * More detailed enum description. */ enum TEnum { TVal1, /**< enum value TVal1. */ TVal2, /**< enum value TVal2. */ TVal3 /**< enum value TVal3. */ } *enumPtr, /**< enum pointer. Details. */ enumVar; /**< enum variable. Details. */ /** * A constructor. * A more elaborate description of the constructor. */ Test(); /** * A destructor. * A more elaborate description of the destructor. */ ~Test(); /** * a normal member taking two arguments and returning an integer value. * @param a an integer argument. * @param s a constant character pointer. * @see Test() * @see ~Test() * @see testMeToo() * @see publicVar() * @return The test results */ int testMe(int a,const char *s); /** * A pure virtual member. * @see testMe() * @param c1 the first argument. * @param c2 the second argument. */ virtual void testMeToo(char c1,char c2) = 0; /** * a public variable. * Details. */ int publicVar; /** * a function variable. * Details. */ int (*handler)(int a,int b); };
doxygen에 의해 생성되는 해당 HTML 문서를 보려면 여기를 클릭하십시오.
int var; /*!< Detailed description after the member */
int var; /**< Detailed description after the member */
또는
int var; //!< Detailed description after the member //!<
또는
int var; ///< Detailed description after the member ///<
int var; //!< Brief description after the member
또는
int var; ///< Brief description after the member
/*! A test class */ class Test { public: /** An enum type. * The documentation block cannot be put after the enum! */ enum EnumType { int EVal1, /**< enum value 1 */ int EVal2 /**< enum value 2 */ }; void member(); //!< a member function. protected: int value; /*!< an integer value */ };
Click here for the corresponding HTML documentation that is generated by doxygen.
/*! \class Test \brief A test class. A more detailed class description. */
\struct to document a C-struct. \union to document a union. \enum to document an enumeration type. \fn to document a function. \var to document a variable or typedef or enum value. \def to document a #define. \file to document a file. \namespace to document a namespace. \package to document a Java package. \interface to document an IDL interface.
See section Special Commands for detailed information about these and many other commands.
/*! \file */
또는
/** @file */
/*! \file structcmd.h \brief A Documented file. Details. */ /*! \def MAX(a,b) \brief A macro that returns the maximum of \a a and \a b. Details. */ /*! \var typedef unsigned int UINT32 \brief A type definition for a . Details. */ /*! \var int errno \brief Contains the last error code. \warning Not thread safe! */ /*! \fn int open(const char *pathname,int flags) \brief Opens a file descriptor. \param pathname The name of the descriptor. \param flags Opening flags. */ /*! \fn int close(int fd) \brief Closes the file descriptor \a fd. \param fd The descriptor to close. */ /*! \fn size_t write(int fd,const char *buf, size_t count) \brief Writes \a count bytes from \a buf to the filedescriptor \a fd. \param fd The descriptor to write to. \param buf The data buffer to write. \param count The number of bytes to write. */ /*! \fn int read(int fd,char *buf,size_t count) \brief Read bytes from a file descriptor. \param fd The descriptor to read from. \param buf The buffer to read into. \param count The number of bytes to read. */ #define MAX(a,b) (((a)>(b))?(a):(b)) typedef unsigned int UINT32; int errno; int open(const char *,int); int close(int); size_t write(int,const char *, size_t); int read(int,char *,size_t);
Click here for the corresponding HTML documentation that is generated by doxygen.
/** @brief 내부용으로 사용되는 sprite 부모 (추상) 클래스. lua_group, @ref lua_depth에 적용가능한 모든 sprite 클래스는 이 클래스에서 상속받아 구현합니다. 기본적으로 이 클래스는 lua에 바인딩되지 않고 C/C++에서만 사용합니다. */