VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtBeaufortWindScale.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvUtil/vrvUtil.h>
13 
14 #include <string>
15 #include <vector>
16 
17 namespace makVrv
18 {
19 
20 
26 {
27 public:
28 
30  typedef enum
31  {
32  Calm = 0,
45  MaxBeaufortScale
46 
47  } Scale;
48 
49  DtBeaufortWindScale(unsigned int index = 0,
50  const std::string& name = std::string(""),
51  float minimum = 0.0, float maximum = 0.0);
52 
55 
58  static std::string convertIndexToName(unsigned int index);
59  static unsigned int convertNameToIndex(const std::string& name);
61 
65  static float convertIndexToWindSpeed(unsigned int index);
66  static unsigned int convertWindSpeedToIndex(float speed);
68 
70 
71 private:
72  unsigned int myIndex;
73  std::string myName;
74  float myMinimum;
75  float myMaximum;
76 
77  typedef std::vector<DtBeaufortWindScale> WindSpeedList;
79 };
80 
81 }
The DtBeaufortWindScale is a utility class for converting wind speeds.
Definition: DtBeaufortWindScale.h:25
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
float myMinimum
Definition: DtBeaufortWindScale.h:74
float myMaximum
Definition: DtBeaufortWindScale.h:75
Definition: DtBeaufortWindScale.h:33
Definition: DtBeaufortWindScale.h:41
Definition: DtBeaufortWindScale.h:35
Contains DLL export macros.
Definition: DtBeaufortWindScale.h:34
Definition: DtBeaufortWindScale.h:37
Definition: DtBeaufortWindScale.h:36
Definition: DtBeaufortWindScale.h:39
std::vector< DtBeaufortWindScale > WindSpeedList
Definition: DtBeaufortWindScale.h:77
Definition: DtBeaufortWindScale.h:38
Definition: DtBeaufortWindScale.h:43
Definition: DtBeaufortWindScale.h:40
std::string myName
Definition: DtBeaufortWindScale.h:73
Definition: DtBeaufortWindScale.h:44
static WindSpeedList myStates
Definition: DtBeaufortWindScale.h:78
Definition: DtBeaufortWindScale.h:42
unsigned int myIndex
Definition: DtBeaufortWindScale.h:72

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)