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 | |
---|
30 | BEGIN_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 | */ |
---|
42 | class TEMPLATE: public TEMPLATE_BASE_CLASS // doxygen will document the inheritance automatically |
---|
43 | { |
---|
44 | |
---|
45 | public: |
---|
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 [in] a some int |
---|
70 | * @param [in] b another int |
---|
71 | * @param [out] result integer result |
---|
72 | * |
---|
73 | * @return [information about return value] |
---|
74 | * @sa [see also section] |
---|
75 | * @note This will be hilighted in the documentation as a special note. |
---|
76 | * @warning [any warning if necessary] |
---|
77 | * @exception std::exception Some explanation of what causes this exception. |
---|
78 | */ |
---|
79 | void MethodTemplate( const int a, const int b, int & result ); |
---|
80 | |
---|
81 | /// |
---|
82 | /// Brief: Example of Copy a string method. |
---|
83 | /// |
---|
84 | /// Long: The strcpy function copies @a strSource, including |
---|
85 | /// the terminating null character, to the location |
---|
86 | /// specified by @a strDestination. No overflow checking |
---|
87 | /// is performed when strings are copied or appended. |
---|
88 | /// The behavior of @a strcpy is undefined if the source |
---|
89 | /// and destination strings overlap. |
---|
90 | /// |
---|
91 | /// @return @a strcpy returns the destination string. |
---|
92 | /// No return value is reserved to indicate an error. |
---|
93 | /// @sa wcscpy(), _mbscpy(), strncpy() |
---|
94 | /// |
---|
95 | char* strcpy2( |
---|
96 | char* strDestination, ///< [out] pointer to source null terminated |
---|
97 | ///< string ... |
---|
98 | ///< continue ... |
---|
99 | const char* strSource, ///< [in] pointer to destination memory .... |
---|
100 | ///< continue ... |
---|
101 | const int a ///< [in] counter |
---|
102 | ); |
---|
103 | |
---|
104 | |
---|
105 | protected: |
---|
106 | |
---|
107 | /// Short description |
---|
108 | bool m_bAnotherFlag; |
---|
109 | |
---|
110 | /// Short description of some flag. Long description: use this format to document a variable or |
---|
111 | /// method |
---|
112 | bool m_bSomeFlag; |
---|
113 | |
---|
114 | }; |
---|
115 | |
---|
116 | END_NAMESPACE_SINGULARXX |
---|
117 | |
---|
118 | #endif |
---|
119 | /* #ifndef SINGULAR_TEMPLATE_CLASS_h_ */ |
---|