HOPS
HOPS class reference
Public Member Functions | Static Public Member Functions | List of all members
hops::MHO_StationIdentifier Class Reference

Class MHO_StationIdentifier Handles the mapping of two character and one character mk4ids to station names – this is a singleton class. More...

#include <MHO_StationIdentifier.hh>

Public Member Functions

std::string CanonicalStationName (std::string code) const
 
int Insert (const std::string &name, const std::string &code, const std::string &mk4id)
 
int Insert (MHO_StationIdentity station_identity)
 
std::string StationCodeFromName (std::string name) const
 
std::string StationMk4IDFromName (std::string name) const
 

Static Public Member Functions

static MHO_StationIdentifierGetInstance ()
 Getter for singleton instance (thread-safe, C++11 function-local static) More...
 

Detailed Description

Class MHO_StationIdentifier Handles the mapping of two character and one character mk4ids to station names – this is a singleton class.

Author
J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
Date
Thu Apr 28 12:25:09 2022 -0400

Member Function Documentation

◆ CanonicalStationName()

std::string hops::MHO_StationIdentifier::CanonicalStationName ( std::string  code) const
inline

◆ GetInstance()

MHO_StationIdentifier & hops::MHO_StationIdentifier::GetInstance ( )
static

Getter for singleton instance (thread-safe, C++11 function-local static)

Returns
MHO_StationIdentifier& singleton instance

◆ Insert() [1/2]

int hops::MHO_StationIdentifier::Insert ( const std::string &  name,
const std::string &  code,
const std::string &  mk4id 
)
inline

◆ Insert() [2/2]

int hops::MHO_StationIdentifier::Insert ( MHO_StationIdentity  station_identity)
inline

◆ StationCodeFromName()

std::string hops::MHO_StationIdentifier::StationCodeFromName ( std::string  name) const
inline

◆ StationMk4IDFromName()

std::string hops::MHO_StationIdentifier::StationMk4IDFromName ( std::string  name) const
inline

The documentation for this class was generated from the following files: