James Turner
e288549c9e
Make dependent template lookups explicit.
...
Clang (in Xcode 4.4) is being strict about dependent lookup rules, so apply the recommended fix-it.
2012-07-31 00:57:09 +01:00
ThorstenB
51a17a7a0f
Suppress unnecessary "failed alias" warnings
...
when requested alias matches existing alias anyway (identical aliases can
be created on repeated sim resets)
2012-07-07 16:05:02 +02:00
Frederic Bouvier
cc37713a66
Remove redundant inclusion of math/SGMath.hxx
2012-05-05 11:19:20 +02:00
ThorstenB
44db6d9e44
Move vector property templates to separate header file.
...
Fixes the "weirdness" with MSVC complaining about incomplete class specs,
since forward declarations (SGMathFwd.hxx) are used in props.hxx only.
Only the few extended (vector) property templates require including the
full SGMath.hxx (with MSVC) - and these are used in few places.
2012-05-05 00:07:07 +02:00
ThorstenB
6e662fe4d6
Ganael Laplanche: fix include dependencies for FreeBSD support
2012-05-04 23:24:10 +02:00
ThorstenB
77909577e4
Error messages when installing property aliases fails.
2012-04-05 20:03:07 +02:00
ThorstenB
f1c2afacc4
Revert "Try to fix MSVC template instantiation issue with SGVec dependencies."
...
This reverts commit 8aed0e75df .
2012-02-24 22:00:58 +01:00
ThorstenB
8aed0e75df
Try to fix MSVC template instantiation issue with SGVec dependencies.
2012-02-24 21:47:00 +01:00
Torsten Dreyer
441dc41715
Don't untie a property when loading from xml
...
executing the fgcommand loadxml implicitely untied every previously
tied property if a property type was given in the property element.
That made it impossible to autosave aircraft data for tied properties.
This patch should fix this. It adds an inconsitency, though:
if a property with a given type is read in which has been tied to
before and the property types do not match, the property type in the
xml file will be ignored.
2012-02-15 14:54:02 +01:00
ThorstenB
68625e48b9
Fix compiler warning / test issue.
2012-01-02 23:04:40 +01:00
Torsten Dreyer
aef8f13290
Use of copy-constructors
...
explicitly initialize the base class in a copy-constructor instead
of implicitly calling the default constructor.
2011-12-25 20:11:06 +01:00
Erik Hofman
f28e472f59
Throw a warning even is NDEBUG is defined
2011-12-19 15:34:11 +01:00
James Turner
75afee59c3
Get all the tests linking with shared-simgear, and duplicate the awkward core functions into a new file, pending a proper cleanup.
2011-11-28 23:22:43 +00:00
ThorstenB
7a52c2fa71
cmake: add option to disable building tests
2011-11-26 16:39:40 +01:00
James Turner
24c047c94e
Remove the remaining Makefiles from the code.
2011-11-01 09:28:26 +00:00
James Turner
d36e13e8ed
Make tiedpropertylist quieter.
2011-10-30 07:55:44 +00:00
James Turner
2e9896a9ab
Enhancements to property-object support, add a default ctor and some typedefs.
2011-10-30 07:55:29 +00:00
James Turner
6250f675db
Fixes for headless mode.
2011-10-23 17:56:28 +01:00
ThorstenB
2e13c1fa4b
Add convenience class for change listener callbacks.
2011-10-03 11:57:48 +02:00
James Turner
7c7f3d4fcd
Hopefully fix test compilation on MSVC 2008+CMake
2011-09-09 11:48:11 +01:00
ThorstenB
36a8243f73
Support absolute paths for XML includes.
...
Use standard path resolver when searching for includes. Includes like
<foo include="/Aircraft/Instruments/myfile.xml">
are now also supported - no need for
<foo include="../../../Aircraft/Instruments/myfile.xml">.
2011-08-27 11:53:15 +02:00
Torsten Dreyer
09e610b900
Implement #327 Add condition checking the range of a value
...
New feature for <condition> elements:
An (optional) element <precision> allows for fuzzy equals checks
example:
<condition>
<equals>
<property>/foo</property>
<value type="double">0.0</value>
<precision>0.1</precision>
</equals>
</condition>
This condition evaluates as true if /foo is within [-0.05..0.05]
(both inclusive)
The precision tag works for int, long, float and double propeties.
It has no meaning for bool properties. For string properties,
precision sets the length of the strings to compare.
2011-08-24 21:26:02 +02:00
James Turner
13736219ff
Ooops, forgot automake
2011-07-30 12:41:54 +01:00
James Turner
3ac5ff0cac
Clean header dependencies of condition.hxx - introduce a new header, propsfwd.hxx, for common case of headers that only need SGPropertyNode_ptr and SGCondition_ptr
2011-07-30 10:48:37 +01:00
James Turner
f06f25532c
Tiny HTTP client layer on top of NetChat - and CTest support for some SimGear tests.
2011-07-19 12:55:55 +01:00
ThorstenB
708ae35068
Melchior FRANZ: fix SGPropertyNode::LAST_USED_ATTRIBUTE
...
fixes commit c782a32076 ,
(also see 38494a48d8 :) )
2011-06-14 21:49:42 +02:00
ThorstenB
c782a32076
Introduce "PRESERVE" flag to protect properties on sim reset.
...
Some specific properties need protection and shouldn't be restored to their
original values on sim-reset.
2011-06-12 20:32:13 +02:00
ThorstenB
edc877442f
Add optional attribute condition to "copyProperties".
...
Option to only copy properties with specific attribute values.
Default is copy all (as before).
2011-06-12 13:41:38 +02:00
ThorstenB
eae1b99036
Keep PropertyList outside global namespace
...
Avoids conflict with FG's GUI widget "PropertyList"...
(don't use "using..." in header files since namespaces become useless then)
2011-03-23 22:30:42 +01:00
ThorstenB
10bbd435b7
Catch dangling property ties.
...
It's bad when tied properties are not untied before removing the tied property list.
We could try to "untie" the properties in the destructor - but that usually
caused weird mem access errors, since the tied properties will access
a no longer existing object (the very object whose destruction called the
TiedPropertyList destructor...). => so just add a warning and a nagging trap :)
2011-03-07 19:32:20 +01:00
Torsten Dreyer
7479ae521c
Provide easy Tie() for indexed properties
2011-02-14 20:24:41 +01:00
Torsten Dreyer
3a620fe55d
Fix initial value for tied read-only properties
2011-02-12 14:46:58 +01:00
Torsten Dreyer
bda8d34c2b
Use tiedpropertylist.hxx in cmake and vc90
2011-02-06 16:35:15 +01:00
Torsten Dreyer
2ee87483f9
Move TiedPropertyList from flightgear to simgear
2011-02-06 15:05:50 +01:00
James Turner
b9a34b1b05
Initial work on CMake support for SimGear.
2010-12-19 14:16:39 +00:00
Frederic Bouvier
be720709fe
Compile PropertyObject under Windows
2010-11-20 14:20:35 +01:00
James Turner
203d1c2b45
PropertyObject ::create tests.
2010-11-20 04:25:11 -08:00
James Turner
c3c97f2956
Shrink PropertyObjectBase by a pointer, don't pull exception header into the header.
2010-11-20 03:31:42 -08:00
James Turner
ac535de2fa
PropertyObject enhancements, unit-test for make check
2010-11-20 02:49:04 -08:00
James Turner
f53559b8d0
Initial propertyObject work.
2010-11-18 20:21:37 +00:00
Tim Moore
ce67657e0a
eliminate property node path cache
...
The property path cache was making very little difference in practice
and made the eventual goal of having the property tree be thread safe
for readers more difficult to attain.
2010-11-17 11:25:07 +01:00
ThorstenB
9f88b077ee
remove old .cvsignore files
...
Hello GIT!
2010-11-14 15:09:36 +01:00
Frederic Bouvier
98d0f33f8f
Don't crash on exit
2010-11-07 10:31:13 +01:00
James Turner
d31c1df639
More ignore files, for 'make check' binaries
2010-08-08 09:55:31 +01:00
James Turner
b4b9d3a4b7
Support constant true and false values in conditions.
2010-05-27 15:19:04 +01:00
James Turner
046d88ab2d
Support <expression> children in comparison conditions. Also makes ordering of child nodes match XML consistently.
2010-05-20 23:56:04 +01:00
Tim Moore
60349a8690
Merge branch 'ehofman/propfix' into next
2010-03-16 17:15:29 +01:00
ehofman
64072be83c
iprovide a slightly more helpfull exception message
2010-03-16 17:15:12 +01:00
Tim Moore
1f37095087
Merge branch 'timoore/effects-anim-rebase' into next
2010-03-09 11:03:25 +01:00
Tim Moore
fc4009aa50
change return value of SGPropertyNode::getPath to std::string
...
Also get rid of the cached value.
2010-03-09 11:02:56 +01:00