File: registry_group.h.tmpl

package info (click to toggle)
odil 0.12.2-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,320 kB
  • sloc: cpp: 55,035; python: 3,971; javascript: 460; xml: 182; makefile: 98
file content (35 lines) | stat: -rw-r--r-- 953 bytes parent folder | download | duplicates (5)
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
/*************************************************************************
 * odil - Copyright (C) Universite de Strasbourg
 * Distributed under the terms of the CeCILL-B license, as published by
 * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
 * for details.
 ************************************************************************/

#ifndef _afc7b2d7_0869_4fea_9a9b_7fe6228baca9_{{ group }}
#define _afc7b2d7_0869_4fea_9a9b_7fe6228baca9_{{ group }}

#include <map>
#include <string>

#include "odil/odil.h"
#include "odil/Tag.h"

namespace odil
{

namespace registry
{
{% for entry in elements_dictionary %}
{% if entry[0] is string %}
std::string const {{ entry[2] }}("{{ entry[0] }}");
{% elif entry[0] is sequence %}
Tag const {{ entry[2] }}({{ "0x%04x, 0x%04x"|format(*entry[0]) }});
{% endif %}
{% endfor %}

}

}

#endif // _afc7b2d7_0869_4fea_9a9b_7fe6228baca9_{{ group }}