1 | /*****************************************************************************\ |
---|
2 | * Computer Algebra System SINGULAR |
---|
3 | \*****************************************************************************/ |
---|
4 | /** @file template.h |
---|
5 | * |
---|
6 | * This file defines the class Template. |
---|
7 | * |
---|
8 | * ABSTRACT: We need this for something... |
---|
9 | * |
---|
10 | * @author Oleksandr Motsak |
---|
11 | * |
---|
12 | * @internal @version \$Id$ |
---|
13 | * |
---|
14 | **/ |
---|
15 | /*****************************************************************************/ |
---|
16 | |
---|
17 | #ifndef TEMPLATE_H |
---|
18 | #define TEMPLATE_H |
---|
19 | |
---|
20 | // include basic definitions |
---|
21 | #include "singularxx_defs.h" |
---|
22 | |
---|
23 | BEGIN_NAMESPACE_SINGULARXX |
---|
24 | |
---|
25 | /** @class Template template.h "someRootDirectory/template.h" |
---|
26 | * |
---|
27 | * Brief description of class Template. |
---|
28 | * |
---|
29 | * Detailed description of class Template. |
---|
30 | * |
---|
31 | * @sa some other classes |
---|
32 | */ |
---|
33 | class Template: public TemplateBaseClass |
---|
34 | { |
---|
35 | public: |
---|
36 | /// Name type of *this. |
---|
37 | typedef Template Self; |
---|
38 | |
---|
39 | /// My enum. Or yours, if you want! |
---|
40 | enum MyEnum |
---|
41 | { |
---|
42 | int EVal1, ///< Enum value 1 |
---|
43 | int EVal2 ///< Enum value 2 |
---|
44 | }; |
---|
45 | |
---|
46 | /// Default constructor. |
---|
47 | /// And now goes the detailed description.... |
---|
48 | Template(); |
---|
49 | |
---|
50 | /// Default destructor. |
---|
51 | ~Template(); |
---|
52 | |
---|
53 | |
---|
54 | /// Brief method description. |
---|
55 | /// |
---|
56 | /// Detailed method description. |
---|
57 | /// |
---|
58 | /// @return information about return value |
---|
59 | /// @sa strcpy2 |
---|
60 | /// |
---|
61 | int someMethod( |
---|
62 | int a, ///< [in] some int |
---|
63 | int &o ///< [in,out] integer input and resulting value |
---|
64 | ); |
---|
65 | |
---|
66 | /// Example of Copy a string method. |
---|
67 | /// |
---|
68 | /// The strcpy2 function copies @a strSource, including |
---|
69 | /// the terminating null character, to the location |
---|
70 | /// specified by @a strDestination. No overflow checking |
---|
71 | /// is performed when strings are copied or appended. |
---|
72 | /// The behavior of @a strcpy2 is undefined if the source |
---|
73 | /// and destination strings overlap. |
---|
74 | /// |
---|
75 | /// @return @a strcpy2 returns the destination string. |
---|
76 | /// No return value is reserved to indicate an error. |
---|
77 | /// @sa someMethod(), wcscpy(), _mbscpy(), strncpy() |
---|
78 | char* strcpy2( |
---|
79 | char* strDestination, ///< [out] pointer to source null terminated. |
---|
80 | ///< continue ... |
---|
81 | const char* strSource ///< [in] pointer to destination memory. |
---|
82 | ); |
---|
83 | |
---|
84 | protected: |
---|
85 | /// Short description of some flag till first dot. Everything after that will |
---|
86 | /// be considered as a detaiiled description. |
---|
87 | bool m_bSomeFlag; |
---|
88 | }; |
---|
89 | |
---|
90 | END_NAMESPACE_SINGULARXX |
---|
91 | |
---|
92 | #endif |
---|
93 | /* #ifndef TEMPLATE_H */ |
---|