You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.0 KiB

  1. //! A test class.
  2. /*!
  3. A more elaborate class description.
  4. */
  5. class Test
  6. {
  7. public:
  8. //! An enum.
  9. /*! More detailed enum description. */
  10. enum TEnum {
  11. TVal1, /*!< Enum value TVal1. */
  12. TVal2, /*!< Enum value TVal2. */
  13. TVal3 /*!< Enum value TVal3. */
  14. }
  15. //! Enum pointer.
  16. /*! Details. */
  17. *enumPtr,
  18. //! Enum variable.
  19. /*! Details. */
  20. enumVar;
  21. //! A constructor.
  22. /*!
  23. A more elaborate description of the constructor.
  24. */
  25. Test();
  26. //! A destructor.
  27. /*!
  28. A more elaborate description of the destructor.
  29. */
  30. ~Test();
  31. //! A normal member taking two arguments and returning an integer value.
  32. /*!
  33. \param a an integer argument.
  34. \param s a constant character pointer.
  35. \return The test results
  36. \sa Test(), ~Test(), testMeToo() and publicVar()
  37. */
  38. int testMe(int a,const char *s);
  39. //! A pure virtual member.
  40. /*!
  41. \sa testMe()
  42. \param c1 the first argument.
  43. \param c2 the second argument.
  44. */
  45. virtual void testMeToo(char c1,char c2) = 0;
  46. //! A public variable.
  47. /*!
  48. Details.
  49. */
  50. int publicVar;
  51. //! A function variable.
  52. /*!
  53. Details.
  54. */
  55. int (*handler)(int a,int b);
  56. };