VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)