1 {% load kdev_filters %} 2 {% include "license_header_cpp.txt" %} 3 4 5 {% block include_guard_open %} 6 #ifndef {% include "include_guard_cpp.txt" %} 7 #define {% include "include_guard_cpp.txt" %} 8 {% endblock include_guard_open %} 9 10 11 {% block includes %} 12 {% for included_file in included_files %} 13 #include {{ included_file }} 14 {% endfor %} 15 {% endblock includes %} 16 17 18 {% block namespaces_open %} 19 {% include "namespace_open_cpp.txt" %} 20 {% endblock namespaces_open %} 21 22 23 {% block forward_declarations %} 24 {% endblock forward_declarations %} 25 26 27 {% block class_declaration_open %} 28 {% include "class_declaration_apidox_cpp.txt" %} 29 {% include "class_declaration_cpp.txt" %} 30 { 31 {% endblock class_declaration_open %} 32 {% block class_body %} 33 {% if public_members or public_functions %} 34 35 public: 36 {% endif %} 37 {% if public_functions %} 38 {% for method in public_functions %} 39 40 {% include "class_method_declaration_apidox_cpp.txt" %} 41 {% include "class_method_declaration_cpp.txt" %} 42 43 {% endfor %} 44 45 {% endif %} 46 {% if public_members %} 47 {% for member in public_members %} 48 {{ member.type }} {{ member.name }}; 49 {% endfor %} 50 51 {% endif %} 52 {% if protected_members or protected_functions %} 53 54 protected: 55 {% endif %} 56 {% if protected_functions %} 57 {% for method in protected_functions %} 58 59 {% include "class_method_declaration_apidox_cpp.txt" %} 60 {% include "class_method_declaration_cpp.txt" %} 61 62 {% endfor %} 63 64 {% endif %} 65 {% if protected_members %} 66 {% for member in protected_members %} 67 {{ member.type }} {{ member.name }}; 68 {% endfor %} 69 70 {% endif %} 71 {% if private_members or private_functions %} 72 73 private: 74 {% endif %} 75 {% if private_functions %} 76 {% for method in private_functions %} 77 78 {% include "class_method_declaration_apidox_cpp.txt" %} 79 {% include "class_method_declaration_cpp.txt" %} 80 81 {% endfor %} 82 83 {% endif %} 84 {% if private_members %} 85 {% for member in private_members %} 86 {{ member.type }} {{ member.name }}; 87 {% endfor %} 88 89 {% endif %} 90 {% endblock class_body %} 91 {% block class_bottom %} 92 {% endblock %} 93 {% block class_declaration_close %} 94 }; 95 {% endblock %} 96 97 98 {% block outside_class %} 99 {% endblock %} 100 101 102 {% block namespaces_close %} 103 {% include "namespace_close_cpp.txt" %} 104 {% endblock namespaces_close %} 105 106 107 {% block outside_namespace %} 108 {% endblock %} 109 110 111 {% block include_guard_close %} 112 #endif // {% include "include_guard_cpp.txt" %} 113 {% endblock include_guard_close %} 114