blob: 7c614c787b4ed0d79627da08d0fa4204443c70dd [file] [log] [blame]
{% from "macros.tmpl" import license -%}
{{ license() }}
#ifndef {{namespace}}Names_h
#define {{namespace}}Names_h
#include "core/dom/QualifiedName.h"
namespace WebCore {
namespace {{namespace}}Names {
#ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
// Namespace
extern const WTF::AtomicString {{namespace_prefix}}NamespaceURI;
// Tags
{%- for tag in tags|sort %}
extern const WebCore::QualifiedName {{tag|symbol}}Tag;
{%- endfor %}
// Attributes
{%- for attr in attrs|sort %}
extern const WebCore::QualifiedName {{attr|symbol}}Attr;
{%- endfor %}
#endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
{%- if tags %}
const unsigned {{namespace}}TagsCount = {{tags|count}};
const WebCore::QualifiedName* const* get{{namespace}}Tags();
{%- endif %}
const unsigned {{namespace}}AttrsCount = {{attrs|count}};
const WebCore::QualifiedName* const* get{{namespace}}Attrs();
void init();
} // {{namespace}}Names
} // WebCore
#endif