source: git/templates/template.h

spielwiese
Last change on this file was 0f9b03, checked in by Hans Schoenemann <hannes@…>, 17 months ago
fix: syzextra
  • Property mode set to 100644
File size: 2.4 KB
Line 
1// -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2/*****************************************************************************\
3 * Computer Algebra System SINGULAR
4\*****************************************************************************/
5/** @file template.h
6 *
7 * This file defines the class Template.
8 *
9 * ABSTRACT: We need this for something...
10 *
11 * @author Oleksandr Motsak
12 *
13 *
14 **/
15/*****************************************************************************/
16
17#ifndef TEMPLATE_H
18#define TEMPLATE_H
19
20/** @class Template template.h <someRootDirectory/template.h>
21 *
22 * Brief description of class Template.
23 *
24 * Detailed description of class Template.
25 *
26 * @sa some other classes
27 */
28class Template: public TemplateBaseClass
29{
30public:
31  /// Name type of *this.
32  typedef Template Self;
33
34  /// My enum. Or yours, if you want!
35  enum MyEnum
36  {
37    int EVal1, ///< Enum value 1
38    int EVal2  ///< Enum value 2
39  };
40
41  /// Default constructor.
42  /// And now goes the detailed description....
43  Template();
44
45  /// Default destructor.
46  ~Template();
47
48
49  /// Brief method description.
50  ///
51  /// Detailed method description.
52  ///
53  /// @return information about return value
54  /// @sa strcpy2
55  ///
56  int someMethod(
57             int a, ///< [in] some int
58             int &o ///< [in,out] integer input and resulting value
59            );
60
61  /// Example of Copy a string method.
62  ///
63  /// The strcpy2 function copies @a strSource, including
64  /// the terminating null character, to the location
65  /// specified by @a strDestination. No overflow checking
66  /// is performed when strings are copied or appended.
67  /// The behavior of @a strcpy2 is undefined if the source
68  /// and destination strings overlap.
69  ///
70  /// @return @a strcpy2 returns the destination string.
71  /// No return value is reserved to indicate an error.
72  /// @sa someMethod(), wcscpy(), _mbscpy(), strncpy()
73  char* strcpy2(
74            char* strDestination,  ///< [out] pointer to source null terminated.
75                                   ///< continue ...
76            const char* strSource  ///< [in] pointer to destination memory.
77               );
78
79protected:
80  /// Short description of some flag till first dot. Everything after that will
81  /// be considered as a detaiiled description.
82  bool m_bSomeFlag;
83};
84
85#endif
86/* #ifndef TEMPLATE_H */
87
88// Vi-modeline: vim: filetype=c:syntax:shiftwidth=2:tabstop=8:textwidth=0:expandtab
Note: See TracBrowser for help on using the repository browser.