Mathew Sutcliffe
f219d290f1
refs #345 Third and final wave of value classes using the CValueObjectStdTuple CRTP class template, with policy classes.
2014-11-10 20:45:18 +00:00
Mathew Sutcliffe
798b198d4e
refs #345 Style and doxygen.
2014-11-10 20:42:31 +00:00
Klaus Basan
40b428a315
refs #314 , renamed convertFromQVariant, convertFromJson
...
discussion: https://dev.vatsim-germany.org/issues/314#note-19
2014-08-24 02:47:16 +02:00
Klaus Basan
290abe3693
refs #314 , fromQVariant / location of toQVariant
...
* renamed fromQVariant to convertFromQVariant, the "from" methods imply the object is changed (fromJson, fromString ..)
* implemented fromQVariant - changing the object by QVariant
* moved toQVariant into PQ template
* free function setFromQVariant
2014-08-24 02:47:05 +02:00
Klaus Basan
3fb5087ea8
Renaming, header, Doxygen, formatting (during refs #314 )
2014-08-24 02:45:52 +02:00
Klaus Basan
6d5461cff8
Formatting, headers, Doxygen
2014-08-05 23:31:53 +02:00
Klaus Basan
82db2666be
Fixed missing time units
2014-07-11 01:21:20 +02:00
Klaus Basan
a9f0359666
Tweaks
...
* formatting
* default digits for PQs
* improved toQString in altitude / aircraft situation / coordinate
2014-07-04 22:56:52 +02:00
Mathew Sutcliffe
8b1ef4345d
refs #126 null unit infrastructure, a sentinel to mark an uninitialized or unused physical quantity
2014-03-26 13:20:53 +00:00
Mathew Sutcliffe
7dafb522e0
refs #91 doxygen cleanup
2014-02-18 18:32:40 +00:00
Mathew Sutcliffe
35e0c3e085
refs #91 & #124 using override and \copydoc throughout blackmisc
2014-02-17 16:37:04 +00:00
Klaus Basan
bb61654a29
style and consistency:
...
* rename CStatusMessages to CStatusMessageList
* rename NetworkVatlib to CNetworkVatlib
* replace all occurrences of Realname with RealName (correct camel case)
* CSequence method corresponding to CList::append is push_back
* don't compile the qdbuscpp2xml metadata plugin by default
* CAircraftIcao string members always trimmed and capitalized
* added CComSystem::roundTo25KHz
* using epsilon comparison in a couple of places
refs #81
2014-01-09 01:15:56 +00:00
Klaus Basan
67a5dbfe48
converting value objects to/from QVariant
...
refs #81
2014-01-08 00:58:56 +00:00
Klaus Basan
978f3c88e5
style changes and removals of typeid
...
refs #81
2014-01-08 00:57:43 +00:00
Mathew Sutcliffe
e12d7fbd7a
Had a bit of spare time so tried out the policy design pattern I've been learning about, applying it to PQ converters.
...
Some interesting results:
* Minor simplification of PQ converters and unit ctors; may not seem like much, but I think it enables possible future simplifications of a similar kind.
* CMeasurementPrefix is gone, no longer needed. Now prefixes are applied at the template stage.
* Apart from that, PQs public API is unchanged.
* Discovered that ft/s^2 conversion factor was wrong: fixed.
2013-09-15 22:01:11 +01:00
Mathew Sutcliffe
a011bb18e6
fixed compile errors caused by inconsistencies between merged branches
2013-08-29 00:02:47 +01:00
Mathew Sutcliffe
611f1ecaeb
consistent stringification of sexagesimal angle and time values with and without units
2013-08-28 20:42:31 +01:00
Mathew Sutcliffe
ea4d0dedbb
removed escaped double-quote character from i18n string
2013-08-22 20:08:53 +01:00
Mathew Sutcliffe
74452599bf
disambiguate metric tonne (1,000kg) and US ton (2,000lb)
2013-08-22 19:59:41 +01:00
Mathew Sutcliffe
669af6b691
give prefixed units their own names and symbols instead of concatenating prefix and base unit
2013-08-22 19:44:19 +01:00
Mathew Sutcliffe
e8736cf31d
unit names singular not plural
2013-08-22 18:32:15 +01:00
Mathew Sutcliffe
9b239f12aa
fixes for MinGW, including adding CONFIG += c++11 in all qmake project files
2013-08-19 18:46:37 +01:00
Mathew Sutcliffe
3567dace6f
fixed mistakenly big epsilons
2013-08-19 18:25:39 +01:00
Mathew Sutcliffe
da8ba9aac3
First major wave of PQ refactoring, including but not limited to:
...
* Default unit is more clearly stated in one place, not restated in many different places, and is not always the SI unit
* Converter strategy pattern in CMeasurementUnit, covering linear, affine, and different kinds of sexagesimal units
* General reorganization of CMeasurementUnit construction and CPhysicalQuantity methods, not removing any behvaiour
* Move duplicated method unitFromSymbol from derived classes into base class CMeasurementUnit
* For DBus, CPhysicalQuantity marshals both in its own unit and in the default unit
2013-08-19 03:05:08 +01:00
Mathew Sutcliffe
5d4fcc8d40
resolved pressure constants 1013.2hPa != 29.92inHg
2013-08-18 17:29:37 +01:00
Mathew Sutcliffe
d4279a8c28
move QT_TRANSLATE_NOOP to suppress GCC warnings
2013-08-14 18:05:10 +01:00
Mathew Sutcliffe
1c1aa4cad3
moved Q_DECLARE_METATYPE outside of namespace
2013-08-13 22:47:19 +01:00
Mathew Sutcliffe
5257560265
fixed repeatedly increasing memory usage in units unmarshalling code
2013-08-13 22:44:01 +01:00
Mathew Sutcliffe
2c781e8b36
style fixes: mostly just things that make my eyes bleed :)
2013-08-13 22:29:48 +01:00
Klaus Basan
a53ea0c5fd
DBus: track, heading, transponder. Added I18N for track/heading, added further I18N keys. Of course not all I18N strings are translated yet.
2013-07-28 03:20:04 +02:00
Klaus Basan
40a97c3d82
Added I18N for PQs, initial version. Hence resource file and language files. Changed samplesphysicalquantities to check some I18N topics.
2013-07-27 20:23:23 +02:00
Klaus Basan
581638ec7f
Enabled coordinate classes for DBus, added generation method for lat/lng by WGS84 strings
2013-07-25 23:58:09 +02:00
Klaus Basan
9b2cb3b517
Shifted DBus operators to CBaseStreamStringifier, much easier to provide streaming - especially for derived classes.
...
Still required but unwanted overloaded DBus operator in aviomodulator.h - no compilation without them. Need to be removed.
Enabled more classes for DBus.
2013-07-24 02:20:32 +02:00
Klaus Basan
8b512ba818
DBus enabling of base classes plus sample for testing / show how to use them. Also qdbuscpp2xml plugin for blackmisc classes.
2013-07-22 14:33:50 +02:00
Mathew Sutcliffe
177efba563
including qmath.h instead of math.h fixes problem with M_PI in MSVC
2013-04-29 23:32:13 +01:00
Klaus Basan
7c7ca2dfae
Fixed some issues with MinGW gcc, e.g. added some includes, removed nullptr, changed some initializer lists (prevents warnings)
2013-04-29 00:15:32 +02:00
Klaus Basan
5eac9be7d5
Unit tests for acceleration and more for vector
2013-04-25 20:21:04 +02:00
Klaus Basan
2d8720c6ae
Added PQ acceleration and units for mile / statute mile
2013-04-25 12:06:54 +02:00
Klaus Basan
472521f281
Further details on classes like epsilon compare, further unit tests.
2013-04-24 01:59:17 +02:00
Klaus Basan
7b0468d300
Completed transformation class and created samples for this class
2013-04-20 01:49:50 +02:00
Klaus Basan
f98ec80680
Geodetic conversions transfered to Transformer class
2013-04-19 19:17:48 +02:00
Klaus Basan
42712a2baf
Fixed Doxygen comments
2013-04-11 00:28:35 +02:00
Klaus Basan
e196a5585f
Added legal header, changed include guards to contain namespace prefix e.g BLACKMISC_XYZ_H
2013-04-10 00:50:25 +02:00
Klaus Basan
9a87731944
Avionics classes for Transponder, ADF, changed namespace to 2ndlevel
2013-04-09 02:00:38 +02:00
Klaus Basan
eb102372f1
Individual (per object) conversion as well as per unit (class) now possible, this is required for sexagesimal conversion (degrees) and will be required for geo-positions. Further classed for avionics.
2013-04-05 02:29:52 +02:00
Klaus Basan
943872ff67
Changed order of samples directory, started with aviation classes.
2013-04-01 21:53:35 +02:00
Klaus Basan
f77258343d
CAngleUnit::sexagesimalDeg(), moved conversion to virtual method in CMeasurmenetUnit, made string conversion virtual and also moved it to CMeasurmenetUnit (=>individual formatters). Time unit added.
2013-03-31 00:35:25 +01:00
Klaus Basan
be34b78425
Renamed distamce to SI conform name length: CDistance->CLength
...
Started with aviation classes
2013-03-27 18:09:39 +01:00