match.h File Reference

Utility functions to match dataitem, datarecord, datablock by keywords. More...

#include "dataitem.h"
Include dependency graph for match.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AST_KEYWORD_PERFERED_CHARS   20
 

Enumerations

enum  ast_keyword_t {
  AST_KEYWORD_SACSIC = 0, AST_KEYWORD_TIME, AST_KEYWORD_MSGTYPE, AST_KEYWORD_TRACKNUM,
  AST_KEYWORD_SQUAWK, AST_KEYWORD_LEVEL, AST_KEYWORD_CALLSIGN, AST_KEYWORD_ICAOADDR,
  AST_KEYWORD_POLAR, AST_KEYWORD_WGS84, AST_KEYWORD_SPEED, AST_KEYWORD_HEADING,
  AST_KEYWORD_LAST
}
 
enum  ast_keyword_format_t { AST_KEYWORD_FORMAT_DEFAULT, AST_KEYWORD_FORMAT_WGS84_DMS, AST_KEYWORD_FORMAT_WGS84_DEG }
 

Functions

bool ast_keyword_match (const char *keyword, const char *challenge, bool case_sensitive)
 
ast_keyword_t ast_str_to_keyword (const char *keyword)
 
void ast_keyword_to_str (char *keyname, const size_t keyname_size, const ast_keyword_t keyword)
 

Detailed Description

Utility functions to match dataitem, datarecord, datablock by keywords.

Macro Definition Documentation

◆ AST_KEYWORD_PERFERED_CHARS

#define AST_KEYWORD_PERFERED_CHARS   20
Examples
example.c.

Enumeration Type Documentation

◆ ast_keyword_format_t

Enumerator
AST_KEYWORD_FORMAT_DEFAULT 
AST_KEYWORD_FORMAT_WGS84_DMS 
AST_KEYWORD_FORMAT_WGS84_DEG 

◆ ast_keyword_t

Enumerator
AST_KEYWORD_SACSIC 
AST_KEYWORD_TIME 
AST_KEYWORD_MSGTYPE 
AST_KEYWORD_TRACKNUM 
AST_KEYWORD_SQUAWK 
AST_KEYWORD_LEVEL 
AST_KEYWORD_CALLSIGN 
AST_KEYWORD_ICAOADDR 
AST_KEYWORD_POLAR 
AST_KEYWORD_WGS84 
AST_KEYWORD_SPEED 
AST_KEYWORD_HEADING 
AST_KEYWORD_LAST 

Last place holder keyword.

Function Documentation

◆ ast_keyword_match()

bool ast_keyword_match ( const char *  keyword,
const char *  challenge,
bool  case_sensitive 
)

◆ ast_keyword_to_str()

void ast_keyword_to_str ( char *  keyname,
const size_t  keyname_size,
const ast_keyword_t  keyword 
)
Examples
example.c.

◆ ast_str_to_keyword()

ast_keyword_t ast_str_to_keyword ( const char *  keyword)