Changeset View
Changeset View
Standalone View
Standalone View
file_templates/common/cpp_header.h
Show All 19 Lines | |||||
20 | {% endblock namespaces_open %} | 20 | {% endblock namespaces_open %} | ||
21 | 21 | | |||
22 | 22 | | |||
23 | {% block forward_declarations %} | 23 | {% block forward_declarations %} | ||
24 | {% endblock forward_declarations %} | 24 | {% endblock forward_declarations %} | ||
25 | 25 | | |||
26 | 26 | | |||
27 | {% block class_declaration_open %} | 27 | {% block class_declaration_open %} | ||
28 | class {{ name }}{% if base_classes %} :{% for base in base_classes %} {{ base.inheritanceMode }} {{ base.baseType }}{% if not forloop.last %},{% endif %}{% endfor %}{% endif %} | 28 | {% include "class_declaration_apidox_cpp.txt" %} | ||
29 | {% include "class_declaration_cpp.txt" %} | ||||
29 | { | 30 | { | ||
30 | {% endblock class_declaration_open %} | 31 | {% endblock class_declaration_open %} | ||
31 | | ||||
32 | {% block class_body %} | 32 | {% block class_body %} | ||
33 | {% if public_members or public_functions %} | 33 | {% if public_members or public_functions %} | ||
34 | | ||||
34 | public: | 35 | public: | ||
35 | {% endif %} | 36 | {% endif %} | ||
36 | {% if public_functions %} | 37 | {% if public_functions %} | ||
37 | {% for method in public_functions %} | 38 | {% for method in public_functions %} | ||
38 | {% include "method_declaration_cpp.txt" %} | 39 | | ||
40 | {% include "class_method_declaration_apidox_cpp.txt" %} | ||||
41 | {% include "class_method_declaration_cpp.txt" %} | ||||
42 | | ||||
39 | {% endfor %} | 43 | {% endfor %} | ||
44 | | ||||
40 | {% endif %} | 45 | {% endif %} | ||
41 | {% if public_members %} | 46 | {% if public_members %} | ||
42 | {% for member in public_members %} | 47 | {% for member in public_members %} | ||
43 | {{ member.type }} {{ member.name }}; | 48 | {{ member.type }} {{ member.name }}; | ||
44 | {% endfor %} | 49 | {% endfor %} | ||
50 | | ||||
45 | {% endif %} | 51 | {% endif %} | ||
46 | {% if protected_members or protected_functions %} | 52 | {% if protected_members or protected_functions %} | ||
53 | | ||||
47 | protected: | 54 | protected: | ||
48 | {% endif %} | 55 | {% endif %} | ||
49 | {% if protected_functions %} | 56 | {% if protected_functions %} | ||
50 | {% for method in protected_functions %} | 57 | {% for method in protected_functions %} | ||
51 | {% include "method_declaration_cpp.txt" %} | 58 | | ||
59 | {% include "class_method_declaration_apidox_cpp.txt" %} | ||||
60 | {% include "class_method_declaration_cpp.txt" %} | ||||
61 | | ||||
52 | {% endfor %} | 62 | {% endfor %} | ||
63 | | ||||
53 | {% endif %} | 64 | {% endif %} | ||
54 | {% if protected_members %} | 65 | {% if protected_members %} | ||
55 | {% for member in protected_members %} | 66 | {% for member in protected_members %} | ||
56 | {{ member.type }} {{ member.name }}; | 67 | {{ member.type }} {{ member.name }}; | ||
57 | {% endfor %} | 68 | {% endfor %} | ||
69 | | ||||
58 | {% endif %} | 70 | {% endif %} | ||
59 | {% if private_members or private_functions %} | 71 | {% if private_members or private_functions %} | ||
72 | | ||||
60 | private: | 73 | private: | ||
61 | {% endif %} | 74 | {% endif %} | ||
62 | {% if private_functions %} | 75 | {% if private_functions %} | ||
63 | {% for method in private_functions %} | 76 | {% for method in private_functions %} | ||
64 | {% include "method_declaration_cpp.txt" %} | 77 | | ||
78 | {% include "class_method_declaration_apidox_cpp.txt" %} | ||||
79 | {% include "class_method_declaration_cpp.txt" %} | ||||
80 | | ||||
65 | {% endfor %} | 81 | {% endfor %} | ||
82 | | ||||
66 | {% endif %} | 83 | {% endif %} | ||
84 | {% if private_members %} | ||||
67 | {% for member in private_members %} | 85 | {% for member in private_members %} | ||
68 | {{ member.type }} {{ member.name }}; | 86 | {{ member.type }} {{ member.name }}; | ||
69 | {% endfor %} | 87 | {% endfor %} | ||
88 | | ||||
89 | {% endif %} | ||||
70 | {% endblock class_body %} | 90 | {% endblock class_body %} | ||
71 | {% block class_bottom %} | 91 | {% block class_bottom %} | ||
72 | {% endblock %} | 92 | {% endblock %} | ||
73 | {% block class_declaration_close %} | 93 | {% block class_declaration_close %} | ||
74 | }; | 94 | }; | ||
75 | {% endblock %} | 95 | {% endblock %} | ||
76 | 96 | | |||
97 | | ||||
77 | {% block outside_class %} | 98 | {% block outside_class %} | ||
78 | {% endblock %} | 99 | {% endblock %} | ||
79 | 100 | | |||
101 | | ||||
80 | {% block namespaces_close %} | 102 | {% block namespaces_close %} | ||
81 | {% include "namespace_close_cpp.txt" %} | 103 | {% include "namespace_close_cpp.txt" %} | ||
82 | {% endblock namespaces_close %} | 104 | {% endblock namespaces_close %} | ||
83 | 105 | | |||
106 | | ||||
84 | {% block outside_namespace %} | 107 | {% block outside_namespace %} | ||
85 | {% endblock %} | 108 | {% endblock %} | ||
86 | 109 | | |||
87 | 110 | | |||
88 | {% block include_guard_close %} | 111 | {% block include_guard_close %} | ||
89 | #endif // {% include "include_guard_cpp.txt" %} | 112 | #endif // {% include "include_guard_cpp.txt" %} | ||
90 | {% endblock include_guard_close %} | 113 | {% endblock include_guard_close %} |