Class TGeo

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGeo = class(TObject)

Description

Class for storing geocache informations

Hierarchy

Overview

Methods

Public constructor create;
Public destructor Destroy; override;
Public procedure clear;
Public procedure assign(const value: TGeo);
Public procedure LoadCurrent(const tab: TSqlitetable);
Public procedure LoadByKey(const gkey: int64);
Public procedure LoadByGC(const value: string);
Public procedure LoadByKeyGC(const gkey: int64; const value: string);
Public procedure LoadKeyByGC(const Value: string);
Public procedure LoadFoundByGC(const Value: string);
Public procedure LoadByLabID(const value, name: string);
Public procedure SetDefault;
Public procedure ChangeID(const value: string);
Public procedure UpdateFound(value: TDateTime);
Public procedure UpdateFoundDate(value: TDateTime);
Public procedure UpdateLastFound(value: TDateTime);
Public procedure UpdateComment(value: string);
Public procedure UpdateBasicInfo;
Public procedure Save;
Public function UpdateListing(const longdesc, shortdesc, hint: string; longdescflag, shortdescflag: integer): boolean;
Public procedure UpdateShortListing(const shortdesc: string; shortdescflag: integer);
Public procedure UpdateLongListing(const longdesc: string; longdescflag: integer);
Public function AddLog: TGeoLog;
Public procedure RemoveLogs;
Public function RefineLogs(LeaveCount: integer; LeaveOwned, LeaveImportant: Boolean; LeaveUsers: string): integer;
Public procedure RemoveListing;
Public procedure RemoveTags;
Public procedure RemoveWaypoints;
Public procedure Remove;
Public function HaveFinal: boolean;
Public function HaveUserFinal: boolean;
Public function GetCoord: string;
Public function HaveWaypoint: Boolean;
Public function AttachmentDir: string;
Public function HaveAttachment: Boolean;
Public function RTFAttachmentFile: string;
Public function HaveRTFAttachment: Boolean;
Public procedure OpenRTFAttachment;
Public function HaveListing: boolean;
Public function SimpleUrl: string;
Public function url: string;
Public function IsDisabled: Boolean;
Public function IsArchived: Boolean;
Public function IsFound:Boolean;
Public function TypeID: string;
Public function SizeID: string;
Public function DiffID: string;
Public function TerrID: string;
Public function IDTag: string;
Public function NameSplit: string;
Public function IsListed: boolean;
Public function IsSelected: boolean;
Public function IsFiltered: boolean;
Public procedure ListAdd;
Public procedure ListDel;
Public function TagCategories: string;
Public function TagHaveCategory(category: string): boolean;
Public function TagValues(Category: string): string;
Public procedure TagAdd(Category, value: string);
Public procedure TagReplace(Category, value: string);
Public procedure TagReplaceList(Category: string; const value: TStrings);
Public procedure TagDel(Category, value: string);
Public procedure TagClear(Category: string);
Public function TagCategoryLastUpdate(Category: string): TDateTime;
Public function FindNear(Distance: Integer): integer;
Public procedure TagInvalid;
Public function IsEmptyCoord: boolean;
Public procedure CountryState(xcountry, xstate: string);
Public function FinalWpt: TWpt;
Public procedure ShowListing;
Public function Family: string;
Public procedure GetListing(const value: TStrings; prefix: string);

Properties

Public property Waypoints: TWptList read getWptList;
Public property Logs: TGeoLogList read getLogList;
Public property NearGeo: TGeoList read FNearest;
Public property Key: int64 read fkey write FKey;
Public property ID: String read fID write fID;
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 CorrectedLat: String read getcorx;
Public property CorrectedLon: String read getcory;
Public property CorrectedCoordX: String read getcorx;
Public property CorrectedCoordY: String read getcory;
Public property CorrectedLatNum: extended read getcorxnum;
Public property CorrectedLonNum: extended read getcorynum;
Public property CorrectedCoordXNum: extended read getcorxnum;
Public property CorrectedCoordYNum: extended read getcorynum;
Public property GUID: String read fGUID write fGUID;
Public property Name: String read fName write fName;
Public property Author: String read fAuthor write SetAuthor;
Public property CacheType: String read FcacheType write FCacheType;
Public property Size: String read FcacheSize write FcacheSize;
Public property Difficulty: String read FDifficulty write FDifficulty;
Public property Terrain: String read fTerrain write fTerrain;
Public property Comment: String read FComment;
Public property ShortDescription: String read GetShortDesc;
Public property LongDescription: String read GetLongDesc;
Public property Hint: String read getHint;
Public property Hidden: TDateTime read fdtHidden write fdthidden;
Public property LastFound: TDateTime read fdtLast write fdtlast;
Public property Updated: TDateTime read fdtUpdate write fdtupdate;
Public property UpdatedList: TDateTime read fdtUpdateList write fdtupdateList;
Public property Found: TDateTime read fdtFound;
Public property FoundTime: TDateTime read fdtFoundTime;
Public property IsOwner: Boolean read fisowner;
Public property CacheStatus: integer read fcachestatus write fCacheStatus;
Public property Country: String read FCountry write fCountry;
Public property State: String read FState write fstate;
Public property CacheID: String read GetCacheID write fcacheID;
Public property OwnerID: String read FOwnerID write FOwnerID;
Public property StatusName: string read GetStatusStr;
Public property ListingHash: int64 read flistinghash;

Description

Methods

Public constructor create;

constructor

Public destructor Destroy; override;

destructor

Public procedure clear;

clear fields in memory

Public procedure assign(const value: TGeo);

assign content to another instance

Public procedure LoadCurrent(const tab: TSqlitetable);

Load from current row in database

Public procedure LoadByKey(const gkey: int64);

Load from database by a key

Public procedure LoadByGC(const value: string);

Load from database by a GC code

Public procedure LoadByKeyGC(const gkey: int64; const value: string);

Load from database by a key or by a GC code

Public procedure LoadKeyByGC(const Value: string);

Load key only - by a GC code

Public procedure LoadFoundByGC(const Value: string);
 
Public procedure LoadByLabID(const value, name: string);

Load form database by parent cache ID and LAB cache name

Public procedure SetDefault;

fill by default values

Public procedure ChangeID(const value: string);

Change ID of point

Public procedure UpdateFound(value: TDateTime);

save found date and time

Public procedure UpdateFoundDate(value: TDateTime);

save found date

Public procedure UpdateLastFound(value: TDateTime);

save LastFound date

Public procedure UpdateComment(value: string);

save user comment

Public procedure UpdateBasicInfo;

save basic point info

Public procedure Save;

Save current content to database

Public function UpdateListing(const longdesc, shortdesc, hint: string; longdescflag, shortdescflag: integer): boolean;

Save listing to database

Public procedure UpdateShortListing(const shortdesc: string; shortdescflag: integer);

Save just short listing to database

Public procedure UpdateLongListing(const longdesc: string; longdescflag: integer);

Save just long listing to database

Public function AddLog: TGeoLog;

Add new log to database

Public procedure RemoveLogs;

Delete all current logs

Public function RefineLogs(LeaveCount: integer; LeaveOwned, LeaveImportant: Boolean; LeaveUsers: string): integer;

Do deletion in logs. Leave latest LeaveCount logs, additionally leave your ouwn logs and/or important logs

Public procedure RemoveListing;

Delete all listing informations

Public procedure RemoveTags;

Delete all tags

Public procedure RemoveWaypoints;

Delete all waypoints

Public procedure Remove;

Delete thic geocache form database, include all associated informations

Public function HaveFinal: boolean;

Have this geocache some final waypoint?

Public function HaveUserFinal: boolean;

Have this geocache some final waypoint defined by user?

Public function GetCoord: string;

Human readable coordinates

Public function HaveWaypoint: Boolean;

Have some waypoints?

Public function AttachmentDir: string;

directory for cache attachments

Public function HaveAttachment: Boolean;

Have some attachments?

Public function RTFAttachmentFile: string;

RTF attachment filename

Public function HaveRTFAttachment: Boolean;

Have RTF attachment?

Public procedure OpenRTFAttachment;

Open RTF attachment in external application

Public function HaveListing: boolean;

Have listing?

Public function SimpleUrl: string;

URL to geocaching web

Public function url: string;

URL to geocaching web

Public function IsDisabled: Boolean;

Is disabled?

Public function IsArchived: Boolean;

Is archived?

Public function IsFound:Boolean;

Is found by you?

Public function TypeID: string;

Short type identification (one char)

Public function SizeID: string;

Short size identification (one char)

Public function DiffID: string;

Short difficulty identification (one char)

Public function TerrID: string;

Short terrain identification (one char)

Public function IDTag: string;

Short ID tag in form like TM24

Public function NameSplit: string;

Helper for splitting into multiple directories

Public function IsListed: boolean;

is this cache displayed in geoget window?

Public function IsSelected: boolean;

is this cache displayed and selected in geoget window?

Public function IsFiltered: boolean;

Can this cache pass through filter?

Public procedure ListAdd;

Add to Geoget window

Public procedure ListDel;

Remove from Geoget window

Public function TagCategories: string;

set of associated tagh categories

Public function TagHaveCategory(category: string): boolean;

Is this tag category associated?

Public function TagValues(Category: string): string;

associated values withinthis tag category

Public procedure TagAdd(Category, value: string);

add tag

Public procedure TagReplace(Category, value: string);

add or replace tag

Public procedure TagReplaceList(Category: string; const value: TStrings);

add or replace set of tags

Public procedure TagDel(Category, value: string);

remove tag

Public procedure TagClear(Category: string);

Remove all associated tags in this category

Public function TagCategoryLastUpdate(Category: string): TDateTime;

Get timestamp of last tag modification

Public function FindNear(Distance: Integer): integer;

Search near geocaches within given distance

Public procedure TagInvalid;

Invalid cached tag informations. It forces to reload tag information next time.

Public function IsEmptyCoord: boolean;

Have empty coordinates?

Public procedure CountryState(xcountry, xstate: string);

Set country and state with content validation

Public function FinalWpt: TWpt;

Get first final waypoint

Public procedure ShowListing;

Display Geoget window with listing

Public function Family: string;

Return family type (GC, WM, OC, OZ,...

Public procedure GetListing(const value: TStrings; prefix: string);

Generate HTML listing and convert links to local images to given prefix

Properties

Public property Waypoints: TWptList read getWptList;

set of waypoints

Public property Logs: TGeoLogList read getLogList;

set of logs

Public property NearGeo: TGeoList read FNearest;

set of near geocaches (after FindNear call)

Public property Key: int64 read fkey write FKey;

Database key

Public property ID: String read fID write fID;

Geocache ID

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 CorrectedLat: String read getcorx;

Corrected Coordinates

Public property CorrectedLon: String read getcory;

Corrected Coordinates

Public property CorrectedCoordX: String read getcorx;

Corrected Coordinates

Public property CorrectedCoordY: String read getcory;

Corrected Coordinates

Public property CorrectedLatNum: extended read getcorxnum;

Corrected Coordinates

Public property CorrectedLonNum: extended read getcorynum;

Corrected Coordinates

Public property CorrectedCoordXNum: extended read getcorxnum;

Corrected Coordinates

Public property CorrectedCoordYNum: extended read getcorynum;

Corrected Coordinates

Public property GUID: String read fGUID write fGUID;

GUID

Public property Name: String read fName write fName;

Name of cache

Public property Author: String read fAuthor write SetAuthor;

Author of cache

Public property CacheType: String read FcacheType write FCacheType;

Type of cache

Public property Size: String read FcacheSize write FcacheSize;

Size of cache

Public property Difficulty: String read FDifficulty write FDifficulty;

Difficulty

Public property Terrain: String read fTerrain write fTerrain;

Terrain

Public property Comment: String read FComment;

User comment

Public property ShortDescription: String read GetShortDesc;

Listing short description

Public property LongDescription: String read GetLongDesc;

Listing long description

Public property Hint: String read getHint;

Listing hint

Public property Hidden: TDateTime read fdtHidden write fdthidden;

date of hidden

Public property LastFound: TDateTime read fdtLast write fdtlast;

date of last found (may not be allways used)

Public property Updated: TDateTime read fdtUpdate write fdtupdate;

date of last database update

Public property UpdatedList: TDateTime read fdtUpdateList write fdtupdateList;

date of last cache description database update

Public property Found: TDateTime read fdtFound;

date of your found

Public property FoundTime: TDateTime read fdtFoundTime;

time of your found

Public property IsOwner: Boolean read fisowner;

is it your own cache?

Public property CacheStatus: integer read fcachestatus write fCacheStatus;

cache status code

Public property Country: String read FCountry write fCountry;

Country

Public property State: String read FState write fstate;

State within a Country

Public property CacheID: String read GetCacheID write fcacheID;

CacheID in PQ

Public property OwnerID: String read FOwnerID write FOwnerID;

OwnerID in PQ

Public property StatusName: string read GetStatusStr;

cache status in human readable form

Public property ListingHash: int64 read flistinghash;

Murmu2 hash of shortdescription, longdescription and hint


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