VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Types | Private Attributes | Static Private Attributes
makVrv::DtBeaufortWindScale Class Reference

The DtBeaufortWindScale is a utility class for converting wind speeds. More...

Public Types

enum  Scale {
  Calm = 0, LightAir, LightBreeze, GentleBreeze,
  ModerateBreeze, FreshBreeze, StrongBreeze, HighWind,
  Gale, StrongGale, Storm, ViolentStorm,
  Hurricane, MaxBeaufortScale
}

Public Member Functions

 DtBeaufortWindScale (unsigned int index=0, const std::string &name=std::string(""), float minimum=0.0, float maximum=0.0)

Static Public Member Functions

Conversion functions:
static std::string convertIndexToName (unsigned int index)
static unsigned int convertNameToIndex (const std::string &name)
static float convertIndexToWindSpeed (unsigned int index)
static unsigned int convertWindSpeedToIndex (float speed)

Private Types

typedef std::vector
< DtBeaufortWindScale
WindSpeedList

Private Attributes

unsigned int myIndex
std::string myName
float myMinimum
float myMaximum

Static Private Attributes

static WindSpeedList myStates

Detailed Description

The DtBeaufortWindScale is a utility class for converting wind speeds.

to/from the Beaufort Scale as described by Wikipedia.

Member Typedef Documentation

Member Enumeration Documentation

Enumerator:
Calm 
LightAir 
LightBreeze 
GentleBreeze 
ModerateBreeze 
FreshBreeze 
StrongBreeze 
HighWind 
Gale 
StrongGale 
Storm 
ViolentStorm 
Hurricane 
MaxBeaufortScale 

Constructor & Destructor Documentation

makVrv::DtBeaufortWindScale::DtBeaufortWindScale ( unsigned int  index = 0,
const std::string &  name = std::string(""),
float  minimum = 0.0,
float  maximum = 0.0 
)

Member Function Documentation

static std::string makVrv::DtBeaufortWindScale::convertIndexToName ( unsigned int  index)
static

Conversion between wind-speed index and name.

static unsigned int makVrv::DtBeaufortWindScale::convertNameToIndex ( const std::string &  name)
static

Conversion between wind-speed index and name.

static float makVrv::DtBeaufortWindScale::convertIndexToWindSpeed ( unsigned int  index)
static

Conversion between wind-speed index and wind-speed.

Note
All wind-speeds are measured in meters per second.
static unsigned int makVrv::DtBeaufortWindScale::convertWindSpeedToIndex ( float  speed)
static

Conversion between wind-speed index and wind-speed.

Note
All wind-speeds are measured in meters per second.

Member Data Documentation

unsigned int makVrv::DtBeaufortWindScale::myIndex
private
std::string makVrv::DtBeaufortWindScale::myName
private
float makVrv::DtBeaufortWindScale::myMinimum
private
float makVrv::DtBeaufortWindScale::myMaximum
private
WindSpeedList makVrv::DtBeaufortWindScale::myStates
staticprivate

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)