1 // vectorPropTemplates.hxx -- Templates Requiring Vector Properties
3 // Separate header file for any templates requiring SGVecXX vector types.
5 #ifndef __VECTORPROPTEMPLATES_HXX
6 #define __VECTORPROPTEMPLATES_HXX
10 // The templates below depend on the full SGMath.hxx include. Forward
11 // declarations (SGMathFwd.hxx) would be insufficient here (at least with MSVC).
12 #include <simgear/math/SGMath.hxx>
17 // Extended properties
19 std::istream& readFrom<SGVec3d>(std::istream& stream, SGVec3d& result);
21 std::istream& readFrom<SGVec4d>(std::istream& stream, SGVec4d& result);
27 struct PropertyTraits<SGVec3d>
29 static const Type type_tag = VEC3D;
30 enum { Internal = 0 };
34 struct PropertyTraits<SGVec4d>
36 static const Type type_tag = VEC4D;
37 enum { Internal = 0 };
43 std::ostream& SGRawBase<SGVec3d>::printOn(std::ostream& stream) const;
45 std::ostream& SGRawBase<SGVec4d>::printOn(std::ostream& stream) const;
47 #endif // __VECTORPROPTEMPLATES_HXX
49 // end of vectorPropTemplates.hxx