OpenCPN Partial API docs
Loading...
Searching...
No Matches
ais_target_data.h File Reference

AIS target definitions. More...

#include <functional>
#include <memory>
#include <vector>
#include <unordered_map>
#include <wx/datetime.h>
#include <wx/intl.h>
#include <wx/string.h>
#include "model/meteo_points.h"
#include "model/navutil_base.h"

Go to the source code of this file.

Classes

class  AISTargetTrackPoint
 
struct  Ais8_001_22_SubArea
 
struct  Ais8_001_22
 
struct  AisTargetCallbacks
 
class  AisTargetData
 
class  AisTargetDataMaker
 Singleton factory. More...
 

Macros

#define SHIP_NAME_LEN   35
 
#define DESTINATION_LEN   21
 
#define CALL_SIGN_LEN   8
 
#define EURO_VIN_LEN   9
 
#define AIS_TARGETDATA_MAX_CANVAS   6
 

Typedefs

typedef enum ais_nav_status _ais_nav_status
 
typedef enum ais_transponder_class _ais_transponder_class
 
typedef enum ais_alert_type _ais_alarm_type
 
typedef std::vector< Ais8_001_22_SubAreaAis8_001_22_SubAreaList
 

Enumerations

enum  ais_nav_status {
  UNDERWAY_USING_ENGINE = 0 , AT_ANCHOR , NOT_UNDER_COMMAND , RESTRICTED_MANOEUVRABILITY ,
  CONSTRAINED_BY_DRAFT , MOORED , AGROUND , FISHING ,
  UNDERWAY_SAILING , HSC , WIG , RESERVED_11 ,
  RESERVED_12 , RESERVED_13 , RESERVED_14 , UNDEFINED ,
  ATON_VIRTUAL , ATON_VIRTUAL_ONPOSITION , ATON_VIRTUAL_OFFPOSITION , ATON_REAL ,
  ATON_REAL_ONPOSITION , ATON_REAL_OFFPOSITION
}
 
enum  ais_transponder_class {
  AIS_CLASS_A = 0 , AIS_CLASS_B , AIS_ATON , AIS_BASE ,
  AIS_GPSG_BUDDY , AIS_DSC , AIS_SART , AIS_ARPA ,
  AIS_APRS , AIS_METEO , AIS_BUOY
}
 
enum  ais_alert_type { AIS_NO_ALERT = 0 , AIS_ALERT_SET , AIS_ALERT_NO_DIALOG_SET }
 
enum  Ais8_001_22_AreaShapeEnum {
  AIS8_001_22_SHAPE_ERROR = -1 , AIS8_001_22_SHAPE_CIRCLE = 0 , AIS8_001_22_SHAPE_RECT = 1 , AIS8_001_22_SHAPE_SECTOR = 2 ,
  AIS8_001_22_SHAPE_POLYLINE = 3 , AIS8_001_22_SHAPE_POLYGON = 4 , AIS8_001_22_SHAPE_TEXT = 5 , AIS8_001_22_SHAPE_RESERVED_6 = 6 ,
  AIS8_001_22_SHAPE_RESERVED_7 = 7
}
 

Functions

void make_hash_ERI (int key, const wxString &description)
 
void clear_hash_ERI (void)
 
wxString trimAISField (char *data)
 
wxString ais_get_status (int index)
 
wxString ais_get_type (int index)
 
wxString ais_get_short_type (int index)
 

Detailed Description

AIS target definitions.

Definition in file ais_target_data.h.

Macro Definition Documentation

◆ AIS_TARGETDATA_MAX_CANVAS

#define AIS_TARGETDATA_MAX_CANVAS   6

Definition at line 44 of file ais_target_data.h.

◆ CALL_SIGN_LEN

#define CALL_SIGN_LEN   8

Definition at line 41 of file ais_target_data.h.

◆ DESTINATION_LEN

#define DESTINATION_LEN   21

Definition at line 40 of file ais_target_data.h.

◆ EURO_VIN_LEN

#define EURO_VIN_LEN   9

Definition at line 42 of file ais_target_data.h.

◆ SHIP_NAME_LEN

#define SHIP_NAME_LEN   35

Definition at line 39 of file ais_target_data.h.

Typedef Documentation

◆ Ais8_001_22_SubAreaList

typedef std::vector<Ais8_001_22_SubArea> Ais8_001_22_SubAreaList

Definition at line 131 of file ais_target_data.h.

Enumeration Type Documentation

◆ Ais8_001_22_AreaShapeEnum

enum Ais8_001_22_AreaShapeEnum

Definition at line 105 of file ais_target_data.h.

◆ ais_alert_type

enum ais_alert_type

Definition at line 91 of file ais_target_data.h.

◆ ais_nav_status

enum ais_nav_status

Definition at line 49 of file ais_target_data.h.

◆ ais_transponder_class

enum ais_transponder_class

Definition at line 76 of file ais_target_data.h.

Function Documentation

◆ ais_get_short_type()

wxString ais_get_short_type ( int  index)

Definition at line 2042 of file ais_target_data.cpp.

◆ ais_get_status()

wxString ais_get_status ( int  index)

Definition at line 87 of file ais_target_data.cpp.

◆ ais_get_type()

wxString ais_get_type ( int  index)

Definition at line 1977 of file ais_target_data.cpp.

◆ clear_hash_ERI()

void clear_hash_ERI ( void  )

Definition at line 42 of file ais_target_data.cpp.

◆ make_hash_ERI()

void make_hash_ERI ( int  key,
const wxString &  description 
)

Definition at line 38 of file ais_target_data.cpp.

◆ trimAISField()

wxString trimAISField ( char *  data)

Definition at line 75 of file ais_target_data.cpp.