File: taginfo.hpp

package info (click to toggle)
osm2pgsql 0.96.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,304 kB
  • sloc: cpp: 11,462; python: 543; sh: 98; makefile: 17
file content (31 lines) | stat: -rw-r--r-- 545 bytes parent folder | download | duplicates (3)
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
#ifndef TAGINFO_HPP
#define TAGINFO_HPP

#include <string>
#include <vector>

enum ColumnType {
    COLUMN_TYPE_INT,
    COLUMN_TYPE_REAL,
    COLUMN_TYPE_TEXT
};

struct Column
{
    Column(std::string const &n, std::string const &tn, ColumnType t)
        : name(n), type_name(tn), type(t) {}

    std::string name;
    std::string type_name;
    ColumnType type;
};

typedef std::vector<Column> columns_t;

/* Table columns, representing key= tags */
struct taginfo;

/* list of exported tags */
struct export_list;

#endif /* TAGINFO_HPP */