WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::StatPrior Class Reference

This class defines station priority values. More...

#include "../include/StatPrior.h"

Public Member Functions

 StatPrior ()
 
 StatPrior (float size, const char *str)
 
int init ()
 
int set ()
 
int set (int val)
 
int setSize (float size)
 
int setParam (const char *str)
 
int set (float size, const char *str)
 
int get ()
 
bool check (int prior)
 
int print ()
 

Detailed Description

This class defines station priority values.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ StatPrior() [1/2]

StatPrior::StatPrior ( )

Basic constructor

◆ StatPrior() [2/2]

StatPrior::StatPrior ( float  size,
const char *  str 
)

Constructor - Initializes the class to the priority and domain size

Parameters
sizeThe domain size
strThe string defining priority info

Member Function Documentation

◆ check()

bool StatPrior::check ( int  pr)

Checks a priority against set priority

Returns
true or false

Referenced by WXP::CityPlot::draw().

◆ get()

int StatPrior::get ( )

Returns the priority

Returns
The priority

◆ set()

int StatPrior::set ( float  rsize,
const char *  str 
)

Sets the class to the priority and domain size

Parameters
rsizeThe domain size
strThe string defining priority info

References WXP::StrLib::copy().

◆ setParam()

int StatPrior::setParam ( const char *  str)

Sets the priority

Parameters
strThe string defining priority info

References WXP::StrLib::copy().

◆ setSize()

int StatPrior::setSize ( float  rsize)

Sets the priority based on domain size

Parameters
rsizeThe domain size

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