OpenCPN Partial API docs
Loading...
Searching...
No Matches
TCMgr Class Reference

Public Member Functions

TC_Error_Code LoadDataSources (std::vector< std::string > &sources)
std::vector< std::string > GetDataSet ()
bool IsReady ()
bool GetTideOrCurrent (time_t t, int idx, float &value, float &dir)
bool GetTideOrCurrentMeters (time_t t, int idx, float &value, float &dir)
bool GetTideOrCurrent15 (time_t t, int idx, float &tcvalue, float &dir, bool &bnew_val)
bool GetTideFlowSens (time_t t, int sch_step, int idx, float &tcvalue_now, float &tcvalue_prev, bool &w_t)
void GetHightOrLowTide (time_t t, int sch_step_1, int sch_step_2, float tide_val, bool w_t, int idx, float &tcvalue, time_t &tctime)
int GetStationTimeOffset (IDX_entry *pIDX)
int GetNextBigEvent (time_t *tm, int idx)
std::wstring GetTidalEventStr (int station_id, wxDateTime ref_dt, double lat, double lon, int dt_type)
double GetStationLat (IDX_entry *pIDX)
double GetStationLon (IDX_entry *pIDX)
const IDX_entry * GetIDX_entry (int index) const
int Get_max_IDX () const
std::map< double, const IDX_entry * > GetStationsForLL (double xlat, double xlon) const
int GetStationIDXbyName (const wxString &prefix, double xlat, double xlon) const
int GetStationIDXbyNameType (const wxString &prefix, double xlat, double xlon, char type) const
void ScrubCurrentDepths ()

Detailed Description

Definition at line 89 of file tcmgr.h.

Constructor & Destructor Documentation

◆ TCMgr()

TCMgr::TCMgr ( )

Definition at line 635 of file tcmgr.cpp.

◆ ~TCMgr()

TCMgr::~TCMgr ( )

Definition at line 637 of file tcmgr.cpp.

Member Function Documentation

◆ Get_max_IDX()

int TCMgr::Get_max_IDX ( ) const
inline

Definition at line 118 of file tcmgr.h.

◆ GetDataSet()

std::vector< std::string > TCMgr::GetDataSet ( )
inline

Definition at line 95 of file tcmgr.h.

◆ GetHightOrLowTide()

void TCMgr::GetHightOrLowTide ( time_t t,
int sch_step_1,
int sch_step_2,
float tide_val,
bool w_t,
int idx,
float & tcvalue,
time_t & tctime )

Definition at line 913 of file tcmgr.cpp.

◆ GetIDX_entry()

const IDX_entry * TCMgr::GetIDX_entry ( int index) const

Definition at line 739 of file tcmgr.cpp.

◆ GetNextBigEvent()

int TCMgr::GetNextBigEvent ( time_t * tm,
int idx )

Definition at line 988 of file tcmgr.cpp.

◆ GetStationIDXbyName()

int TCMgr::GetStationIDXbyName ( const wxString & prefix,
double xlat,
double xlon ) const

Definition at line 1065 of file tcmgr.cpp.

◆ GetStationIDXbyNameType()

int TCMgr::GetStationIDXbyNameType ( const wxString & prefix,
double xlat,
double xlon,
char type ) const

Definition at line 1094 of file tcmgr.cpp.

◆ GetStationLat()

double TCMgr::GetStationLat ( IDX_entry * pIDX)

Definition at line 984 of file tcmgr.cpp.

◆ GetStationLon()

double TCMgr::GetStationLon ( IDX_entry * pIDX)

Definition at line 986 of file tcmgr.cpp.

◆ GetStationsForLL()

std::map< double, const IDX_entry * > TCMgr::GetStationsForLL ( double xlat,
double xlon ) const

Definition at line 1044 of file tcmgr.cpp.

◆ GetStationTimeOffset()

int TCMgr::GetStationTimeOffset ( IDX_entry * pIDX)

Definition at line 982 of file tcmgr.cpp.

◆ GetTidalEventStr()

std::wstring TCMgr::GetTidalEventStr ( int station_id,
wxDateTime ref_dt,
double lat,
double lon,
int dt_type )

Definition at line 1019 of file tcmgr.cpp.

◆ GetTideFlowSens()

bool TCMgr::GetTideFlowSens ( time_t t,
int sch_step,
int idx,
float & tcvalue_now,
float & tcvalue_prev,
bool & w_t )

Definition at line 880 of file tcmgr.cpp.

◆ GetTideOrCurrent()

bool TCMgr::GetTideOrCurrent ( time_t t,
int idx,
float & value,
float & dir )

Definition at line 746 of file tcmgr.cpp.

◆ GetTideOrCurrent15()

bool TCMgr::GetTideOrCurrent15 ( time_t t,
int idx,
float & tcvalue,
float & dir,
bool & bnew_val )

Definition at line 811 of file tcmgr.cpp.

◆ GetTideOrCurrentMeters()

bool TCMgr::GetTideOrCurrentMeters ( time_t t,
int idx,
float & value,
float & dir )

Definition at line 788 of file tcmgr.cpp.

◆ IsReady()

bool TCMgr::IsReady ( )
inline

Definition at line 97 of file tcmgr.h.

◆ LoadDataSources()

TC_Error_Code TCMgr::LoadDataSources ( std::vector< std::string > & sources)

Definition at line 646 of file tcmgr.cpp.

◆ ScrubCurrentDepths()

void TCMgr::ScrubCurrentDepths ( )

Definition at line 693 of file tcmgr.cpp.


The documentation for this class was generated from the following files:
  • /home/runner/work/main/main/opencpn/gui/include/gui/tcmgr.h
  • /home/runner/work/main/main/opencpn/gui/src/tcmgr.cpp