summaryrefslogtreecommitdiff
path: root/tools/m4/class_generic.m4
blob: 63959465544d59f7dc6a67b34a0f44ba4e99140b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
dnl $Id$

dnl
dnl _CLASS_GENERIC(LayoutIter, PangoLayoutIter)
dnl

define(`_CLASS_GENERIC',`dnl
_PUSH()
dnl
dnl  Define the args for later macros
define(`__CPPNAME__',`$1')
define(`__CNAME__',`$2')

_POP()
_SECTION(SECTION_CLASS2)
') dnl End of _CLASS_GENERIC.


dnl
dnl _END_CLASS_GENERIC()
dnl   denotes the end of a class
dnl
define(`_END_CLASS_GENERIC',`

_SECTION(SECTION_SRC_GENERATED)

__NAMESPACE_BEGIN__

dnl The implementation:

_IMPORT(SECTION_CC)

__NAMESPACE_END__

dnl
dnl
dnl
dnl
_POP()
dnl
dnl
dnl The actual class, e.g. Pango::FontDescription, declaration:
dnl
_IMPORT(SECTION_CLASS1)
public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  using CppObjectType = __CPPNAME__;
  using BaseObjectType = __CNAME__;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

private:
_IMPORT(SECTION_CLASS2)
')