NCBI C++ ToolKit
Public Types | Public Member Functions | Private Attributes | List of all members
CLatLonCountryId Class Reference

Search Toolkit Book for CLatLonCountryId

#include <objects/seqfeat/SubSource.hpp>

Public Types

enum  EClassificationFlags {
  fCountryMatch = (1) , fProvinceMatch = (1 << 1) , fWaterMatch = (1 << 2) , fOverlap = (1 << 3) ,
  fCountryClosest = (1 << 4) , fProvinceClosest = (1 << 5) , fWaterClosest = (1 << 6)
}
 
typedef int TClassificationFlags
 Bitwise OR of "EClassificationFlags". More...
 

Public Member Functions

 CLatLonCountryId (float lat, float lon)
 
 ~CLatLonCountryId (void)
 
float GetLat (void) const
 
void SetLat (float lat)
 
float GetLon (void) const
 
void SetLon (float lon)
 
string GetFullGuess (void) const
 
void SetFullGuess (string guess)
 
string GetGuessCountry (void) const
 
void SetGuessCountry (string guess)
 
string GetGuessProvince (void) const
 
void SetGuessProvince (string guess)
 
string GetGuessWater (void) const
 
void SetGuessWater (string guess)
 
string GetClosestFull (void) const
 
void SetClosestFull (string closest)
 
string GetClosestCountry (void) const
 
void SetClosestCountry (string closest)
 
string GetClosestProvince (void) const
 
void SetClosestProvince (string closest)
 
string GetClosestWater (void) const
 
void SetClosestWater (string closest)
 
string GetClaimedFull (void) const
 
void SetClaimedFull (string claimed)
 
int GetLandDistance (void) const
 
void SetLandDistance (int dist)
 
int GetWaterDistance (void) const
 
void SetWaterDistance (int dist)
 
int GetClaimedDistance (void) const
 
void SetClaimedDistance (int dist)
 
CLatLonCountryId::TClassificationFlags Classify (string country, string province)
 

Private Attributes

float m_Lat
 
float m_Lon
 
string m_FullGuess
 
string m_GuessCountry
 
string m_GuessProvince
 
string m_GuessWater
 
string m_ClosestFull
 
string m_ClosestCountry
 
string m_ClosestProvince
 
string m_ClosestWater
 
string m_ClaimedFull
 
int m_LandDistance
 
int m_WaterDistance
 
int m_ClaimedDistance
 

Detailed Description

Definition at line 405 of file SubSource.hpp.

Member Typedef Documentation

◆ TClassificationFlags

Bitwise OR of "EClassificationFlags".

Definition at line 451 of file SubSource.hpp.

Member Enumeration Documentation

◆ EClassificationFlags

Enumerator
fCountryMatch 
fProvinceMatch 
fWaterMatch 
fOverlap 
fCountryClosest 
fProvinceClosest 
fWaterClosest 

Definition at line 442 of file SubSource.hpp.

Constructor & Destructor Documentation

◆ CLatLonCountryId()

CLatLonCountryId::CLatLonCountryId ( float  lat,
float  lon 
)

Definition at line 5507 of file SubSource.cpp.

◆ ~CLatLonCountryId()

CLatLonCountryId::~CLatLonCountryId ( void  )

Definition at line 5575 of file SubSource.cpp.

Member Function Documentation

◆ Classify()

CLatLonCountryId::TClassificationFlags CLatLonCountryId::Classify ( string  country,
string  province 
)

◆ GetClaimedDistance()

int CLatLonCountryId::GetClaimedDistance ( void  ) const
inline

Definition at line 438 of file SubSource.hpp.

References m_ClaimedDistance.

Referenced by CSubSource::ValidateLatLonCountry().

◆ GetClaimedFull()

string CLatLonCountryId::GetClaimedFull ( void  ) const
inline

Definition at line 431 of file SubSource.hpp.

References m_ClaimedFull.

Referenced by CSubSource::ValidateLatLonCountry().

◆ GetClosestCountry()

string CLatLonCountryId::GetClosestCountry ( void  ) const
inline

◆ GetClosestFull()

string CLatLonCountryId::GetClosestFull ( void  ) const
inline

Definition at line 423 of file SubSource.hpp.

References m_ClosestFull.

Referenced by Classify().

◆ GetClosestProvince()

string CLatLonCountryId::GetClosestProvince ( void  ) const
inline

Definition at line 427 of file SubSource.hpp.

References m_ClosestProvince.

Referenced by Classify().

◆ GetClosestWater()

string CLatLonCountryId::GetClosestWater ( void  ) const
inline

◆ GetFullGuess()

string CLatLonCountryId::GetFullGuess ( void  ) const
inline

Definition at line 415 of file SubSource.hpp.

References m_FullGuess.

◆ GetGuessCountry()

string CLatLonCountryId::GetGuessCountry ( void  ) const
inline

◆ GetGuessProvince()

string CLatLonCountryId::GetGuessProvince ( void  ) const
inline

◆ GetGuessWater()

string CLatLonCountryId::GetGuessWater ( void  ) const
inline

◆ GetLandDistance()

int CLatLonCountryId::GetLandDistance ( void  ) const
inline

Definition at line 434 of file SubSource.hpp.

References m_LandDistance.

Referenced by CSubSource::ValidateLatLonCountry().

◆ GetLat()

float CLatLonCountryId::GetLat ( void  ) const
inline

Definition at line 411 of file SubSource.hpp.

References m_Lat.

◆ GetLon()

float CLatLonCountryId::GetLon ( void  ) const
inline

Definition at line 413 of file SubSource.hpp.

References m_Lon.

◆ GetWaterDistance()

int CLatLonCountryId::GetWaterDistance ( void  ) const
inline

Definition at line 436 of file SubSource.hpp.

References m_WaterDistance.

◆ SetClaimedDistance()

void CLatLonCountryId::SetClaimedDistance ( int  dist)
inline

Definition at line 439 of file SubSource.hpp.

References m_ClaimedDistance.

◆ SetClaimedFull()

void CLatLonCountryId::SetClaimedFull ( string  claimed)
inline

Definition at line 432 of file SubSource.hpp.

References m_ClaimedFull.

◆ SetClosestCountry()

void CLatLonCountryId::SetClosestCountry ( string  closest)
inline

Definition at line 426 of file SubSource.hpp.

References m_ClosestCountry.

◆ SetClosestFull()

void CLatLonCountryId::SetClosestFull ( string  closest)
inline

Definition at line 424 of file SubSource.hpp.

References m_ClosestFull.

◆ SetClosestProvince()

void CLatLonCountryId::SetClosestProvince ( string  closest)
inline

Definition at line 428 of file SubSource.hpp.

References m_ClosestProvince.

◆ SetClosestWater()

void CLatLonCountryId::SetClosestWater ( string  closest)
inline

Definition at line 430 of file SubSource.hpp.

References m_ClosestWater.

◆ SetFullGuess()

void CLatLonCountryId::SetFullGuess ( string  guess)
inline

Definition at line 416 of file SubSource.hpp.

References m_FullGuess.

Referenced by Classify().

◆ SetGuessCountry()

void CLatLonCountryId::SetGuessCountry ( string  guess)
inline

Definition at line 418 of file SubSource.hpp.

References m_GuessCountry.

Referenced by Classify().

◆ SetGuessProvince()

void CLatLonCountryId::SetGuessProvince ( string  guess)
inline

Definition at line 420 of file SubSource.hpp.

References m_GuessProvince.

Referenced by Classify().

◆ SetGuessWater()

void CLatLonCountryId::SetGuessWater ( string  guess)
inline

Definition at line 422 of file SubSource.hpp.

References m_GuessWater.

◆ SetLandDistance()

void CLatLonCountryId::SetLandDistance ( int  dist)
inline

Definition at line 435 of file SubSource.hpp.

References m_LandDistance.

◆ SetLat()

void CLatLonCountryId::SetLat ( float  lat)
inline

Definition at line 412 of file SubSource.hpp.

References m_Lat.

◆ SetLon()

void CLatLonCountryId::SetLon ( float  lon)
inline

Definition at line 414 of file SubSource.hpp.

References m_Lon.

◆ SetWaterDistance()

void CLatLonCountryId::SetWaterDistance ( int  dist)
inline

Definition at line 437 of file SubSource.hpp.

References m_WaterDistance.

Member Data Documentation

◆ m_ClaimedDistance

int CLatLonCountryId::m_ClaimedDistance
private

Definition at line 470 of file SubSource.hpp.

Referenced by GetClaimedDistance(), and SetClaimedDistance().

◆ m_ClaimedFull

string CLatLonCountryId::m_ClaimedFull
private

Definition at line 467 of file SubSource.hpp.

Referenced by GetClaimedFull(), and SetClaimedFull().

◆ m_ClosestCountry

string CLatLonCountryId::m_ClosestCountry
private

Definition at line 464 of file SubSource.hpp.

Referenced by GetClosestCountry(), and SetClosestCountry().

◆ m_ClosestFull

string CLatLonCountryId::m_ClosestFull
private

Definition at line 463 of file SubSource.hpp.

Referenced by GetClosestFull(), and SetClosestFull().

◆ m_ClosestProvince

string CLatLonCountryId::m_ClosestProvince
private

Definition at line 465 of file SubSource.hpp.

Referenced by GetClosestProvince(), and SetClosestProvince().

◆ m_ClosestWater

string CLatLonCountryId::m_ClosestWater
private

Definition at line 466 of file SubSource.hpp.

Referenced by GetClosestWater(), and SetClosestWater().

◆ m_FullGuess

string CLatLonCountryId::m_FullGuess
private

Definition at line 459 of file SubSource.hpp.

Referenced by GetFullGuess(), and SetFullGuess().

◆ m_GuessCountry

string CLatLonCountryId::m_GuessCountry
private

Definition at line 460 of file SubSource.hpp.

Referenced by GetGuessCountry(), and SetGuessCountry().

◆ m_GuessProvince

string CLatLonCountryId::m_GuessProvince
private

Definition at line 461 of file SubSource.hpp.

Referenced by GetGuessProvince(), and SetGuessProvince().

◆ m_GuessWater

string CLatLonCountryId::m_GuessWater
private

Definition at line 462 of file SubSource.hpp.

Referenced by GetGuessWater(), and SetGuessWater().

◆ m_LandDistance

int CLatLonCountryId::m_LandDistance
private

Definition at line 468 of file SubSource.hpp.

Referenced by GetLandDistance(), and SetLandDistance().

◆ m_Lat

float CLatLonCountryId::m_Lat
private

Definition at line 457 of file SubSource.hpp.

Referenced by GetLat(), and SetLat().

◆ m_Lon

float CLatLonCountryId::m_Lon
private

Definition at line 458 of file SubSource.hpp.

Referenced by GetLon(), and SetLon().

◆ m_WaterDistance

int CLatLonCountryId::m_WaterDistance
private

Definition at line 469 of file SubSource.hpp.

Referenced by GetWaterDistance(), and SetWaterDistance().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:32 2024 by modify_doxy.py rev. 669887