Commit Graph

23 Commits

Author SHA1 Message Date
Klaus Basan
b959972e0c refs #707, refactoring geo interfaces
* added compare functions (also to ATC list)
* renamed to relative position, e.g. station.setRelativeDistance
* delegate set/get/compare to correct interface
2016-07-14 18:49:13 +02:00
Roland Winklmeier
4f8205e585 Fix unit test header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-20 01:32:26 +02:00
Mathew Sutcliffe
0acb302c63 refs #628 Remove the old tuple system. 2016-04-03 18:17:44 +01:00
Roland Winklmeier
d1eb0bb9c3 Add tests to doxygen group 'tests' and subgroups
refs #594
2016-02-16 20:01:44 +01:00
Roland Winklmeier
1ea2f34f75 Fix doxygen documentation in src, samples and tests
refs #594
2016-02-16 20:01:33 +01:00
Mathew Sutcliffe
ada03ee513 refs #434 CPropertyIndexVariantMap: removed operator templates and replaced CVariant comparison operators with a named method, matches(). 2015-06-01 21:35:00 +01:00
Mathew Sutcliffe
e76015004b refs #434 Removed CVariant comparison operator templates. 2015-06-01 21:34:59 +01:00
Klaus Basan
dc918dfaba Moved some samples into unit tests 2015-05-30 18:18:47 +02:00
Mathew Sutcliffe
2f55caf7c6 refs #413 Decomposed hash-related functions of CValueObject into Mixin::HashByTuple. 2015-05-12 20:36:04 +01:00
Roland Winklmeier
78d3350bf3 refs #396 move Blackmisc Aviation classes into subfolder 2015-04-07 18:20:20 +02:00
Klaus Basan
bd58475436 refs #369, unit test for interpolator 2015-03-20 16:49:11 +01:00
Klaus Basan
ce86c902b5 Upfront of refs #369
* consolidated ICoordinateGeodetic (e.g. fixed nested properties)
* shifted common functionality for objects/containers with callsign into interface
* shifted common functionality for objects/containers with geo position into interface
* shifted common functionality for objects/containers with timestamp into interface
* updated corresponding value objects / specialized lists
* adjusted all places where renamed functions are used
2015-03-20 16:30:18 +01:00
Mathew Sutcliffe
9b060014af refs #247 Using CVariant in samples and tests. 2014-12-13 01:41:57 +00:00
Klaus Basan
4b50134d2a refs #325, refs #330 fixed apply method to return list of changed properties
* changed CValueObject apply
* created CIndexPropertyList
* renamed CIndexVariantMap to CPropertyIndexVariantMap
2014-10-07 13:10:33 +02:00
Klaus Basan
319bf6d7e4 refs #214, added test for variant map hash. Improved samples for BlackSim. 2014-04-21 17:42:20 +02:00
Klaus Basan
2fd80694a6 Minor tweaks around formatting, comments, renaming, warnings 2014-04-21 17:42:12 +02:00
Mathew Sutcliffe
a4e3ac6f40 refs #197 fixing (hopefully) comparison between null quantities
and related rationalization of PQ comparison.
2014-04-17 00:32:41 +02:00
Klaus Basan
e474671ead refs #207, renamed CValueMap to CIndexVariantMap.
* The map will be used with CSimulaorInfo to transfer a variable number of setting information about the flight simulator. It is being used, because it is already DBus and tupel compliant. The new name better fits its purpose.
* Add == operator for CIndexVariantMap (ambiguity error with tupels)
2014-04-17 00:10:04 +02:00
Klaus Basan
d4f1221665 refs #197, unit test and preliminary fix for nullUnit comparison 2014-03-27 01:16:14 +01:00
Klaus Basan
57435b2a73 refs #192, some housekeeping during the JSON introduction
* removed unused tryGet methods for transponder / COM
* adjusted unit tests
2014-03-26 20:18:47 +01:00
Klaus Basan
0e7c71f91b Unit test for callsign list 2014-01-26 23:14:43 +01:00
Mathew Sutcliffe
db4c05dd9f refs #84 removed the CValueObject::compare method and added a friend function BlackMisc::compare to replace it.
The new compare is implemented using "multimethods" described in the book Advanced C++ Programming Styles and Idioms by James Coplien.

First, the isA method is used to determine which of the values being compared is the most general. (For example, CLength is more general than CAltitude.)
Then the compareImpl method is called on the most general value, with the other value as an argument.
If there is not a direct inheritance relation between the two values (or they are the same class) then the comparison is invalid and a assert is triggered.
2014-01-17 01:38:27 +00:00
Klaus Basan
ab17dabd5b samples and tests for all kbatclist branch changes
refs #81
2014-01-08 01:00:28 +00:00