match.h
Go to the documentation of this file.
1/*
2 * $COPYRIGHT-BEGIN$
3 * libasterix
4 * Copyright [2013-2026] SinoATC <http://www.sinoatc.com>.
5 * All Rights Reserved.
6 *
7 * NOTICE: All information contained herein is, and remains
8 * the property of SinoATC and its suppliers, if any.
9 * The intellectual and technical concepts contained herein
10 * are proprietary to SinoATC and its suppliers and may be
11 * covered by U.S. and Foreign Patents, patents in process,
12 * and are protected by trade secret or copyright law.
13 * Dissemination of this information or reproduction of this material
14 * is strictly forbidden unless prior written permission is obtained
15 * from SinoATC.
16 * $COPYRIGHT-END$
17 */
18
24
25#ifndef LIBASTERIX_MATCH_H
26#define LIBASTERIX_MATCH_H
27
28#include "dataitem.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
61
62typedef enum _ast_keyword_format_t
63{
69
70AST_API bool ast_keyword_match(const char* keyword, const char* challenge, bool case_sensitive);
71
72ast_keyword_t ast_str_to_keyword(const char* keyword);
73
74#define AST_KEYWORD_NAME_PERFERED_CHARS 20
75
76AST_API void ast_keyword_name(char* keyname, const size_t keyname_size, const ast_keyword_t keyword);
77
78#define AST_KEYWORD_DESCRIPTION_PERFERED_CHARS 256
79
80AST_API void ast_keyword_description(char* description, const size_t desc_size, const ast_keyword_t keyword);
81
82#ifdef __cplusplus
83}
84#endif // extern "C"
85
86#endif //LIBASTERIX_MATCH_H
87
88// vim:set ft=c.doxygen sw=2 sts=2 fenc=utf8:
ASTERIX data item.
bool ast_keyword_match(const char *keyword, const char *challenge, bool case_sensitive)
void ast_keyword_name(char *keyname, const size_t keyname_size, const ast_keyword_t keyword)
void ast_keyword_description(char *description, const size_t desc_size, const ast_keyword_t keyword)
ast_keyword_format_t
Definition match.h:63
@ AST_KEYWORD_FORMAT_WGS84_DEG
Definition match.h:67
@ AST_KEYWORD_FORMAT_WGS84_DMS_HH
Definition match.h:66
@ AST_KEYWORD_FORMAT_WGS84_DMS_H
Definition match.h:65
@ AST_KEYWORD_FORMAT_DEFAULT
Definition match.h:64
ast_keyword_t ast_str_to_keyword(const char *keyword)
ast_keyword_t
Definition match.h:35
@ AST_KEYWORD_LEVEL
Definition match.h:44
@ AST_KEYWORD_SPEED
Definition match.h:52
@ AST_KEYWORD_CALLSIGN
Definition match.h:46
@ AST_KEYWORD_HEADING
Definition match.h:53
@ AST_KEYWORD_SACSIC
Definition match.h:36
@ AST_KEYWORD_POLAR
Definition match.h:50
@ AST_KEYWORD_TRACKNUM
Definition match.h:41
@ AST_KEYWORD_WGS84
Definition match.h:49
@ AST_KEYWORD_LAST
Last place holder keyword.
Definition match.h:59
@ AST_KEYWORD_TIME
Definition match.h:37
@ AST_KEYWORD_MSGTYPE
Definition match.h:39
@ AST_KEYWORD_ICAOADDR
Definition match.h:47
@ AST_KEYWORD_CARTESIANVEL
Definition match.h:55
@ AST_KEYWORD_VRATE
Definition match.h:57
@ AST_KEYWORD_SQUAWK
Definition match.h:43
@ AST_KEYWORD_SELALT
Definition match.h:45
#define AST_API
Definition platform.h:63