source: git/templates/template.h @ bcfa20

spielwiese
Last change on this file since bcfa20 was bcfa20, checked in by Oleksandr Motsak <motsak@…>, 14 years ago
Templates: initial version
  • Property mode set to 100644
File size: 3.0 KB
Line 
1// -*- c++ -*-
2/***************************************************************************//**
3 * @file template.h
4 *
5 * This file defines the class TEMPLATE. AAA. BBB.
6 * CCC.
7 *
8 * DDDD.
9 *
10 * @author Oleksandr Motsak
11 *
12 * @par Copyright:
13 *   (C) by The SINGULAR Team, see COPYING file
14 * EEE.
15 *
16 * FFFFFFFF.
17 *
18 * FFFFFFFFFFFFFFFFFFFFFFFFF.
19 * @internal
20 * @version \$Id$
21 *
22 ******************************************************************************/
23
24// include basic definitions
25#include "singularxx_defs.h"
26
27#ifndef SINGULAR_TEMPLATE_CLASS_h_
28#define SINGULAR_TEMPLATE_CLASS_h_
29
30BEGIN_NAMESPACE_SINGULARXX
31
32/** @class TEMPLATE template.h somRootDirectory/template.h
33 *
34 * [brief description of class TEMPLATE].
35 *
36 * [detailed description of class TEMPLATE].
37 * AAAA.
38 * @par blah, blah, ..., blah.
39 *
40 * @sa see alsos
41 */
42class TEMPLATE: public TEMPLATE_BASE_CLASS  // doxygen will document the inheritance automatically
43{
44
45public:
46  /// Name type of *this.
47  typedef TEMPLATE self;
48
49  /// My enum. Not yours!
50  enum My
51  {
52    int EVal1, ///< Enum value 1
53    int EVal2  ///< Enum value 2
54  };
55
56  /// Default constructor. And now goes the detailed description....
57  ///
58  TEMPLATE();
59
60  /// Default destructor.
61  /// And now goes its detailed description....
62  ~TEMPLATE();
63 
64
65  /** Brief: [method description].
66   *
67   * Long: [detailed method description]
68   *
69   * @param
70   * @return [information about return value]
71   * @sa [see also section]
72   * @note This will be hilighted in the documentation as a special note.
73   * @warning [any warning if necessary]
74   * @exception std::exception Some explanation of what causes this exception.
75   */
76  void MethodTemplate(
77         const int a, ///< [in] some int
78         const int b, ///< [in] another int
79         int & result ///< [out] integer result
80                     );
81
82  ///
83  /// Brief: Example of Copy a string method.
84  ///
85  /// Long: The strcpy function copies @a strSource, including
86  /// the terminating null character, to the location
87  /// specified by @a strDestination. No overflow checking
88  /// is performed when strings are copied or appended.
89  /// The behavior of @a strcpy is undefined if the source
90  /// and destination strings overlap.
91  ///
92  /// @param
93  /// @return @a strcpy returns the destination string.
94  /// No return value is reserved to indicate an error.
95  /// @sa wcscpy(), _mbscpy(), strncpy()
96  ///
97  char* strcpy2(
98            char* strDestination,  ///< [out] pointer to source null terminated
99                                   ///< string ...
100                                   ///< continue ...
101            const char* strSource, ///< [in] pointer to destination memory ....
102                                   ///< continue ...
103            const int a            ///< [in] counter
104               );
105
106
107protected:
108
109  /// Short description
110  bool m_bAnotherFlag;
111
112  /// Short description of some flag. Long description: use this format to document a variable or
113  /// method
114  bool m_bSomeFlag;
115
116};
117
118END_NAMESPACE_SINGULARXX
119
120#endif
121/* #ifndef SINGULAR_TEMPLATE_CLASS_h_ */
Note: See TracBrowser for help on using the repository browser.