00001 /*! \page CommentStandardsPage Comments Standard 00002 00003 \ref mainpage 00004 00005 \code 00006 00007 #ifndef CLASSTEMPLATE_H 00008 #define CLASSTEMPLATE_H 00009 00010 // [C Headers] 00011 extern "C" { 00012 } 00013 00014 // [C++ Header files] 00015 #include "SomeClass.h" 00016 00017 // [forward declarations] 00018 class AnotherClass; 00019 00020 /* 00021 * @class ClassTemplate 00022 * 00023 * @brief This is an example class. 00024 * 00025 * This comment block is @e required for all class declarations. 00026 * Please remove comments that are bracketed by [..]. These comments are there 00027 * to provide instructions to developers while writing their code. 00028 * Obvious member variables and functions, such as get and set routines and 00029 * default constructors and destructors, should not be documented as this 00030 * clutters the files. Use standard C++ comments for those comments you wish 00031 * Doxygen to ignore. If the class has many members - you may consider 00032 * providing separate public, protected, private sections for member functions 00033 * and member variables to improve readability. In addition it may be useful to 00034 * form member groups preceded by a header as shown below. 00035 * 00036 * Please note that the \$Header\$ keyword specified below is a RCS keyword, 00037 * and will inflate into the version, name, etc for this file. 00038 * 00039 * @author Some Body 00040 * 00041 * $Header $ 00042 */ 00043 00044 class ClassTemplate { 00045 00046 public: 00047 ClassTemplate(); 00048 ~ClassTemplate(); 00049 00050 int getIntMember() { return m_intMember; }; 00051 void setIntMember(const int i) { m_intMember = i; }; 00052 00053 /** 00054 * Provide detailed desciption of this function 00055 * @param parmeter1 Describe this parameter 00056 00057 * Here is an example of inserting a mathematical formula into the text: 00058 * The distance is computed as /f$\sqrt{ (x_2-x_1)^2 + (y_2 - y_1)^2 }/f$ 00059 * If we wanted to insert the formula centered on a separate line: 00060 * /f[ 00061 * \sqrt{ (x_2-x_1)^2 + (y_2 - y_1)^2 } 00062 * /f] 00063 * Please note that all formulas must be valid LaTeX math-mode commands. 00064 * Additionally, to be processed by Doxygen, the machine used must have 00065 * LaTeX installed. Please see the Doxygen manual for more information 00066 * about installing LaTeX locally. 00067 */ 00068 void publicMemberFunction(int parameter1); 00069 00070 /** 00071 * Provide a detailed description of this function. 00072 * @return Describe the return values. 00073 */ 00074 bool anotherPublcMemberFunction(); 00075 00076 static int getStaticIntMember() { return s_staticIntMember; }; 00077 00078 /** @name Header for Group1 00079 * [ Description of Group1 ] 00080 */ 00081 //@{ 00082 // [ members of Group1] 00083 bool yetAnotherFunction1(); 00084 int yetAnotherFunction2(); 00085 //@} 00086 00087 private: 00088 00089 /// Provide a description of this class member 00090 /// [note that the m_ prefix is not used for static members] 00091 static int s_staticIntMember; 00092 /// Provide a description of this class member 00093 int m_intMember; 00094 /// Provide a description of this class member 00095 float m_floatMember; 00096 00097 } 00098 00099 #endif // CLASSTEMPLATE_H 00100 00101 00102 /*! 00103 \endcode 00104 */