Class TWpt

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TWpt = class(TObject)

Description

Class for storing waypoint informations

Hierarchy

Overview

Methods

Public constructor create;
Public destructor Destroy; override;
Public procedure clear;
Public procedure assign(const value: TWpt);
Public procedure LoadCurrent(const tab: TSqlitetable);
Public procedure LoadByKey(const gkey: int64);
Public procedure LoadByID(const value: string);
Public procedure LoadByIDEx(const value, name: string);
Public procedure SetDefault;
Public procedure Save;
Public function FullName: string;
Public function IsUserWaypoint: boolean;
Public function IsWebWaypoint: boolean;
Public function IsVisitedWaypoint: boolean;
Public function IsFinal: boolean;
Public function IsEmptyCoord: boolean;
Public procedure UpdateComment(value: string);
Public procedure Remove;
Public function IsListed: boolean;
Public function IsSelected: boolean;
Public function IsFiltered: boolean;
Public procedure ListAdd;
Public procedure ListDel;
Public function TypeID: string;
Public function url: string;
Public function GetCoord: string;

Properties

Public property Key: int64 read fkey write fkey;
Public property ParentKey: int64 read getparentkey;
Public property ParentID: string read fparentID write FParentID;
Public property ID: string read GetWptID;
Public property ParentName: string read GetParentName;
Public property ParentGeo: TGeo read getparentgeo;
Public property Lat: String read fCoordx write SetX;
Public property Lon: String read fCoordY write Sety;
Public property CoordX: String read fCoordx write SetX;
Public property CoordY: String read fCoordY write SetY;
Public property LatNum: extended read fxnum write SetXNum;
Public property LonNum: extended read fynum write SetYNum;
Public property CoordXNum: extended read fxnum write SetXnum;
Public property CoordYNum: extended read fynum write SetYnum;
Public property Name: String read fName write fname;
Public property Comment: String read FComment;
Public property Updated: TDateTime read fdtupdate write fdtupdate;
Public property GUID: String read fguid write fguid;
Public property PrefixID: String read fprefixid write fprefixid;
Public property Lookup: String read flookup write flookup;
Public property WptType: String read fwpttype write fwpttype;
Public property Description: String read fcmt write fcmt;
Public property Flags: int64 read fFlags write fFlags;

Description

Methods

Public constructor create;

constructor

Public destructor Destroy; override;

destructor

Public procedure clear;

clear fields in memory

Public procedure assign(const value: TWpt);

assign content to another instance

Public procedure LoadCurrent(const tab: TSqlitetable);

Load from current row in database

Public procedure LoadByKey(const gkey: int64);

Load form database by a key

Public procedure LoadByID(const value: string);

Load form database by waypoint ID

Public procedure LoadByIDEx(const value, name: string);

Load form database by waypoint ID or by name (for backward comatibility)

Public procedure SetDefault;

fill by default values

Public procedure Save;

Save current content to database

Public function FullName: string;

Full name fo waypoint (include parent geocache name)

Public function IsUserWaypoint: boolean;

Is this waypoint entered by user?

Public function IsWebWaypoint: boolean;

Is this waypoint created by the corrected coordinates or note on the web?

Public function IsVisitedWaypoint: boolean;

Is this waypoint visited?

Public function IsFinal: boolean;

Is this waypoint with final location?

Public function IsEmptyCoord: boolean;

Have empty coordinates?

Public procedure UpdateComment(value: string);

update user comment

Public procedure Remove;

remove this waypoint from database

Public function IsListed: boolean;

is this waypoint displayed in geoget window?

Public function IsSelected: boolean;

is this waypoint displayed and selected in geoget window?

Public function IsFiltered: boolean;

Can this waypoint pass through filter?

Public procedure ListAdd;

Add to Geoget window

Public procedure ListDel;

Remove from Geoget window

Public function TypeID: string;

Short description of waypoint type. (usually one char)

Public function url: string;

URL to geocaching web.

Public function GetCoord: string;

Human readable coordinates

Properties

Public property Key: int64 read fkey write fkey;

database key

Public property ParentKey: int64 read getparentkey;

database key of parent geocache

Public property ParentID: string read fparentID write FParentID;

ID of parent cache

Public property ID: string read GetWptID;

Waypoint ID

Public property ParentName: string read GetParentName;

Name of parent geocache

Public property ParentGeo: TGeo read getparentgeo;

parent geocache class

Public property Lat: String read fCoordx write SetX;

Coordinates

Public property Lon: String read fCoordY write Sety;

Coordinates

Public property CoordX: String read fCoordx write SetX;

Coordinates

Public property CoordY: String read fCoordY write SetY;

Coordinates

Public property LatNum: extended read fxnum write SetXNum;

Coordinates

Public property LonNum: extended read fynum write SetYNum;

Coordinates

Public property CoordXNum: extended read fxnum write SetXnum;

Coordinates

Public property CoordYNum: extended read fynum write SetYnum;

Coordinates

Public property Name: String read fName write fname;

name

Public property Comment: String read FComment;

User comment

Public property Updated: TDateTime read fdtupdate write fdtupdate;

date and time of latest update

Public property GUID: String read fguid write fguid;

GUID

Public property PrefixID: String read fprefixid write fprefixid;

Two char ID prefix

Public property Lookup: String read flookup write flookup;

Lookup code (not available in all cases)

Public property WptType: String read fwpttype write fwpttype;

Type of waypoint

Public property Description: String read fcmt write fcmt;

Description of waypoint

Public property Flags: int64 read fFlags write fFlags;

Flags bit 0 - imported, bit 1 - from the web, bit 2 - visited


Generated by PasDoc 0.9.0 on 2018-03-13 21:07:27