Parallel Analog Ensemble
Public Member Functions | Private Attributes | Friends | List of all members
Station Class Reference

Class Station stores station information including name, X, and Y. Each Station Object is assigned with an unique ID. This ID can be useful for station retrieval. More...

#include <Stations.h>

Public Member Functions

 Station ()
 
 Station (Station const &)
 
 Station (double, double, std::string name=Config::_NAME)
 
virtual ~Station ()
 
Stationoperator= (const Station &)
 
bool operator== (const Station &) const
 
bool operator!= (const Station &) const
 
bool operator< (const Station &) const
 
std::string getName () const
 
double getY () const
 
double getX () const
 
void print (std::ostream &) const
 

Private Attributes

double x_
 
double y_
 
std::string name_
 

Friends

std::ostream & operator<< (std::ostream &, Station const &)
 

Detailed Description

Class Station stores station information including name, X, and Y. Each Station Object is assigned with an unique ID. This ID can be useful for station retrieval.

Constructor & Destructor Documentation

◆ Station() [1/3]

Station::Station ( )

◆ Station() [2/3]

Station::Station ( Station const &  rhs)

◆ Station() [3/3]

Station::Station ( double  ,
double  ,
std::string  name = Config::_NAME 
)

◆ ~Station()

Station::~Station ( )
virtual

Member Function Documentation

◆ getName()

string Station::getName ( ) const

◆ getX()

double Station::getX ( ) const

◆ getY()

double Station::getY ( ) const

◆ operator!=()

bool Station::operator!= ( const Station rhs) const

◆ operator<()

bool Station::operator< ( const Station rhs) const

◆ operator=()

Station & Station::operator= ( const Station rhs)

◆ operator==()

bool Station::operator== ( const Station rhs) const

◆ print()

void Station::print ( std::ostream &  ) const

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  ,
Station const &   
)
friend

Member Data Documentation

◆ name_

std::string Station::name_
private

◆ x_

double Station::x_
private

◆ y_

double Station::y_
private

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