File: loc-tree.h

package info (click to toggle)
gpredict 2.3-72-gc596101-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 12,264 kB
  • sloc: ansic: 39,918; makefile: 469; python: 143; sh: 85
file content (33 lines) | stat: -rw-r--r-- 1,322 bytes parent folder | download | duplicates (2)
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
#ifndef LOC_TREE_H
#define LOC_TREE_H 1

/** Tree column definitions */
typedef enum {
    TREE_COL_NAM = 0,           /*!< Location name column. */
    TREE_COL_LAT,               /*!< Location latitude column. */
    TREE_COL_LON,               /*!< Location longitude column. */
    TREE_COL_ALT,               /*!< Location altitude column. */
    TREE_COL_WX,                /*!< Weather station column. */
    TREE_COL_SELECT,            /*!< Invisible colindicating whether row may be selected */
    TREE_COL_NUM                /*!< The total number of columns. */
} loc_tree_col_t;


/** Column flags */
typedef enum {
    TREE_COL_FLAG_NAME = 1 << TREE_COL_NAM,     /*!< Location name column. */
    TREE_COL_FLAG_LAT = 1 << TREE_COL_LAT,      /*!< Location latitude column. */
    TREE_COL_FLAG_LON = 1 << TREE_COL_LON,      /*!< Location longitude column. */
    TREE_COL_FLAG_ALT = 1 << TREE_COL_ALT,      /*!< Location altitude column. */
    TREE_COL_FLAG_WX = 1 << TREE_COL_WX /*!< Weather station column. */
} loc_tree_col_flag_t;



gboolean        loc_tree_create(const gchar * fname,
                                guint flags,
                                gchar ** loc,
                                gfloat * lat,
                                gfloat * lon, guint * alt, gchar ** wx);

#endif