The QKnxBeaufortWindForceScale class is a datapoint type for storing the Beaufort wind force scale. 更多...
| 头: | #include <QKnxBeaufortWindForceScale> | 
| qmake: | QT += knx | 
| 继承: | QKnx1Byte | 
| enum class | Force { CalmNoWind, LightAir, LightBreeze, GentleBreeze, ModerateBreeze, …, Invalid } | 
| QKnxBeaufortWindForceScale (QKnxBeaufortWindForceScale::Force force ) | |
| QKnxBeaufortWindForceScale () | |
| QKnxBeaufortWindForceScale::Force | force () const | 
| bool | setForce (QKnxBeaufortWindForceScale::Force force ) | 
						The range for the
						
							Force
						
						value is from
						
Calm (no wind), 0
						
						to
						
Hurricane, 12
						
						.
					
This is a fixed size datapoint type with the length of 1 byte.
另请参阅 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .
This enum holds the Beaufort wind force scale stored in the datapoint type.
| 常量 | 值 | 描述 | 
|---|---|---|
								
QKnxBeaufortWindForceScale::Force::CalmNoWind
								
							 | 
							
								
0x00
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::LightAir
								
							 | 
							
								
0x01
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::LightBreeze
								
							 | 
							
								
0x02
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::GentleBreeze
								
							 | 
							
								
0x03
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::ModerateBreeze
								
							 | 
							
								
0x04
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::FreshBreeze
								
							 | 
							
								
0x05
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::StrongBreeze
								
							 | 
							
								
0x06
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::NearModerateGale
								
							 | 
							
								
0x07
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::FreshGale
								
							 | 
							
								
0x08
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::StrongGale
								
							 | 
							
								
0x09
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::WholeGaleStorm
								
							 | 
							
								
0x0a
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::ViolentStorm
								
							 | 
							
								
0x0b
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::Hurricane
								
							 | 
							
								
0x0c
								
							 | 
							|
								
QKnxBeaufortWindForceScale::Force::Invalid
								
							 | 
							
								
0xff
								
							 | 
							The value is invalid. | 
Creates a fixed size datapoint type with the Beaufort wind force scale set to force .
						Creates a fixed size datapoint type with the Beaufort wind force scale set to
						
CalmNoWind
						
						.
					
Returns the Beaufort wind force scale stored in the datapoint type.
另请参阅 setForce ().
Sets the Beaufort wind force scale stored in the datapoint type to force .
						返回
						
true
						
						if the byte was set; otherwise returns
						
false
						
						.
					
另请参阅 force ().