Klaus Basan
9b27041684
Ref T717, return "null" for null PQ
2019-09-16 22:41:36 +01:00
Mat Sutcliffe
35b0836754
Ref T696 Fix number formatting for CTime and CAngle.
...
- Removed the 'L' in the format strings, so the C locale is used.
- Added `1 + digits` to the `fieldWidth`, as this actually includes the
decimal point and the digits after it.
2019-09-16 22:40:13 +01:00
Klaus Basan
693c94c87a
Send FP altitude without unit
...
https://discordapp.com/channels/539048679160676382/539846348275449887/593211815559823367
https://discordapp.com/channels/539048679160676382/539846348275449887/593063154238619649
2019-09-16 22:40:01 +01:00
Klaus Basan
4ecd8a78ad
Handled some potentially "dangerous" parsing issues for VATSIM file (no coordinate)
...
https://discordapp.com/channels/539048679160676382/539486489977946112/593081121512751116
2019-09-16 22:40:00 +01:00
Klaus Basan
daeea07090
Ref T683, style
2019-09-16 22:39:49 +01:00
Mat Sutcliffe
6d9f9a286d
Ref T552 Using QDataStream marshalling mixins in value classes.
2019-04-12 13:30:55 +01:00
Mat Sutcliffe
980e1d7b80
Restored constexpr initialization and return-by-value of CMeasurementUnit constants
...
that were removed by commit 787b54108e .
For rationale, see the commits fef2bc528e , c8d78ada65 , 07ec7e6bc1 where these
were originally introduced.
2019-04-12 13:30:48 +01:00
Mat Sutcliffe
e5e6c53c82
Fixed buggy implementation of CPhysicalQuantity::lessThan.
...
This bug could cause a variant containing a list containing a null PQ
to compare equal to a variant containing a list containing a non-null PQ.
2019-04-11 22:12:04 +01:00
Mat Sutcliffe
38fe2d1c49
Removed null check in CPhysicalQuantity::compareImpl as it was wrong and useless.
2019-04-11 22:12:04 +01:00
Mat Sutcliffe
798a0b8f06
Using friend function comparison and arithmetic operators, for parameter symmetry.
2019-04-11 22:12:03 +01:00
Klaus Basan
246d9abca8
Ref T578, CG null and DB key improvements
2019-04-11 22:12:02 +01:00
Mat Sutcliffe
83dec5408b
Ref T557 Metaclass flag to preserve measurement unit when marshalling PQ's in flight plans.
2019-04-11 22:11:35 +01:00
Klaus Basan
3e0d318a48
Ref T554, PQ "valueRoundedAsString"
2019-04-11 22:11:33 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Klaus Basan
d713e8a264
Angle, added 360deg functions + formatting
2019-02-22 20:35:55 +00:00
Mat Sutcliffe
1493106970
Style: removed outdated comments and includes.
2019-02-22 20:35:15 +00:00
Klaus Basan
d89b217e9b
PQ parsing using "best guess" strategy as default plus renamings
2019-02-22 20:23:54 +00:00
Mat Sutcliffe
6c05c5249d
When calling arg() on a QString constructed from a literal, use QStringLiteral.
2019-02-22 20:23:47 +00:00
Mat Sutcliffe
20d4575c55
Suppressed clazy false positive: qHash namespace.
2019-02-22 20:23:35 +00:00
Klaus Basan
7807a05f2a
Ref T429, functions for angle, heading and situation
...
* normalize angle -180/+180 when set on situation
* clamp vector function
2018-11-16 02:49:53 +01:00
Klaus Basan
ef21ec67f3
Ref T424, PQ strings without (thousand) separators
...
* separator can cause issue when sending data (WebService, FSD)
* re-parsing (print and parse again) can cause to undesired results as the separator is mistaken as decimal separator with a different locale
* separator now a parameter so it can still be used
2018-11-06 01:41:48 +01:00
Klaus Basan
8a59aa5a3b
Ref T415, parse/conversion functions for CTime
2018-11-04 17:42:46 +01:00
Klaus Basan
8f6b6229fb
CLANG fixes for measurement unit
2018-09-12 17:40:22 +02:00
Klaus Basan
a9d728f451
Ref T338, utility functions / parsing
...
- nthIndexOf
- measurement unit can be parsed case insensitive
- CSimpleCommandParser::remainingStringAfter from n-th space
- improved frequency parsing
2018-09-12 17:01:41 +02:00
Klaus Basan
3d2d999f7a
Ref T338, style
2018-09-09 02:55:16 +02:00
Roland Winklmeier
29f464189b
Move template in-class function definitions out of class
...
Keeping them defined in-class caused linker issues with the extern template
declaration in a non-optimized MinGW debug build. Apparently it did not
inline them but instead relied on the extern declaration and expected
them defined somewhere else.
2018-08-31 20:08:14 +02:00
Roland Winklmeier
5e38936fd2
Fix weak vtables
2018-08-25 22:12:06 +02:00
Roland Winklmeier
ca9a2e5fd1
Fix floating point comparison
2018-08-25 22:12:03 +02:00
Roland Winklmeier
08e06c6ed1
Fix float to double conversion
2018-08-25 22:12:02 +02:00
Klaus Basan
ee181d6425
PQ string parsing improvements
2018-08-09 03:43:57 +02:00
Klaus Basan
1f17b49e6a
Ref T297, allow "null" values as value
2018-08-07 20:41:08 +02:00
Klaus Basan
d489bed370
Ref T268, compare for PQs
2018-07-10 17:17:21 +02:00
Klaus Basan
c168262159
Ref T275, utility functions in simulated aircraft, sim object ..
2018-07-09 22:30:21 +02:00
Klaus Basan
fc1a2bbb0f
Ref T275, Ref T280, avoid nan (not a number) values in PQs/elevation
2018-06-20 00:58:45 +02:00
Klaus Basan
740de9786f
Fixed function "endsStringWithNameOrSymbol" to "const"
2018-05-08 16:06:54 +02:00
Klaus Basan
787b54108e
Ref T261, made Units "static const &"
...
Remark: Maybe there is a better way than to make both values (Data and the MU itself) static const. If so we should change that.
2018-05-08 16:06:54 +02:00
Klaus Basan
7aef1dcbbc
Formatting and minor tweaks/renamings
2018-05-08 16:06:54 +02:00
Klaus Basan
23c54938ea
Ref T261, unify unit handling in situation altitude related values
...
* this is an optimization, it would work without that, but there are numerous calculations in interpolation which are faster and easier to debug in the same unit
* PQ switch unit functions use "const &PQUnit"
2018-05-08 16:06:53 +02:00
Klaus Basan
8e3b55b4ca
Ref T261, utility functions in value classes
...
* set offset values
* do not change PQs if PQ is null
* sorted by callsign
2018-05-08 16:06:52 +02:00
Klaus Basan
1f3e5c6abf
Formatting, minor tweaks
2018-05-08 16:06:43 +02:00
Klaus Basan
c1ac229875
Formatting
2018-05-08 16:06:32 +02:00
Klaus Basan
75c481228f
Missing include, fixing missing M_PI
...
Using the little "PI = std::acos(-1);" trick to avoid include issues
2018-05-08 16:06:31 +02:00
Klaus Basan
cf98c46231
Ref T259, Ref T243 return unit by reference
2018-05-04 23:03:27 +02:00
Klaus Basan
06b07ac4c6
Formatting
2018-04-13 23:36:58 +02:00
Klaus Basan
5744c260c5
Ref T259, Ref T243 improvements of PQ
...
* null()
* allow chaining for makePositive
* abs()
2018-04-05 02:54:22 +02:00
Klaus Basan
844436e744
Ref T231, Ref T238 maxValue for PQs
...
Remark: max() as function name caused compile errors
2018-01-30 20:34:45 +01:00
Klaus Basan
f049900e1f
Ref T223, use const values for standard pressure
...
* standardISASeaLevelPressure
* use static const values for standard pressure
* minor formatting
2018-01-15 23:00:34 +01:00
Klaus Basan
b2c0d726bc
Ref T215, PQ integer support
2018-01-13 05:04:33 +01:00
Klaus Basan
efd4e110b7
Ref T172, formatting
...
* this->m_ => m_
* formatting
* comments / doxygen
2017-12-28 18:44:32 +01:00
Mathew Sutcliffe
3ae5e274ee
Removed workarounds that were needed to support older versions of MSVC.
2017-11-14 17:51:02 +00:00