-inline void
-fgUntie (const string &name)
-{
- if (!globals->get_props()->untie(name))
- SG_LOG(SG_GENERAL, SG_WARN, "Failed to untie property " << name);
-}
-
-
- // Templates cause ambiguity here
-
-/**
- * Tie a property to an external bool variable.
- *
- * The property's value will automatically mirror the variable's
- * value, and vice-versa, until the property is untied.
- *
- * @param name The property name to tie (full path).
- * @param pointer A pointer to the variable.
- * @param useDefault true if any existing property value should be
- * copied to the variable; false if the variable should not
- * be modified; defaults to true.
- */
-inline void
-fgTie (const string &name, bool *pointer, bool useDefault = true)
-{
- if (!globals->get_props()->tie(name, SGRawValuePointer<bool>(pointer),
- useDefault))
- SG_LOG(SG_GENERAL, SG_WARN,
- "Failed to tie property " << name << " to a pointer");
-}
-
-
-/**
- * Tie a property to an external int variable.
- *
- * The property's value will automatically mirror the variable's
- * value, and vice-versa, until the property is untied.
- *
- * @param name The property name to tie (full path).
- * @param pointer A pointer to the variable.
- * @param useDefault true if any existing property value should be
- * copied to the variable; false if the variable should not
- * be modified; defaults to true.
- */
-inline void
-fgTie (const string &name, int *pointer, bool useDefault = true)
-{
- if (!globals->get_props()->tie(name, SGRawValuePointer<int>(pointer),
- useDefault))
- SG_LOG(SG_GENERAL, SG_WARN,
- "Failed to tie property " << name << " to a pointer");
-}
-
-
-/**
- * Tie a property to an external long variable.
- *
- * The property's value will automatically mirror the variable's
- * value, and vice-versa, until the property is untied.
- *
- * @param name The property name to tie (full path).
- * @param pointer A pointer to the variable.
- * @param useDefault true if any existing property value should be
- * copied to the variable; false if the variable should not
- * be modified; defaults to true.
- */
-inline void
-fgTie (const string &name, long *pointer, bool useDefault = true)
-{
- if (!globals->get_props()->tie(name, SGRawValuePointer<long>(pointer),
- useDefault))
- SG_LOG(SG_GENERAL, SG_WARN,
- "Failed to tie property " << name << " to a pointer");
-}
-
-
-/**
- * Tie a property to an external float variable.
- *
- * The property's value will automatically mirror the variable's
- * value, and vice-versa, until the property is untied.
- *
- * @param name The property name to tie (full path).
- * @param pointer A pointer to the variable.
- * @param useDefault true if any existing property value should be
- * copied to the variable; false if the variable should not
- * be modified; defaults to true.
- */
-inline void
-fgTie (const string &name, float *pointer, bool useDefault = true)
-{
- if (!globals->get_props()->tie(name, SGRawValuePointer<float>(pointer),
- useDefault))
- SG_LOG(SG_GENERAL, SG_WARN,
- "Failed to tie property " << name << " to a pointer");
-}
-
-
-/**
- * Tie a property to an external double variable.
- *
- * The property's value will automatically mirror the variable's
- * value, and vice-versa, until the property is untied.
- *
- * @param name The property name to tie (full path).
- * @param pointer A pointer to the variable.
- * @param useDefault true if any existing property value should be
- * copied to the variable; false if the variable should not
- * be modified; defaults to true.
- */
-inline void
-fgTie (const string &name, double *pointer, bool useDefault = true)
-{
- if (!globals->get_props()->tie(name, SGRawValuePointer<double>(pointer),
- useDefault))
- SG_LOG(SG_GENERAL, SG_WARN,
- "Failed to tie property " << name << " to a pointer");
-}
-
-
-/**
- * Tie a property to an external string variable.
- *
- * The property's value will automatically mirror the variable's
- * value, and vice-versa, until the property is untied.
- *
- * @param name The property name to tie (full path).
- * @param pointer A pointer to the variable.
- * @param useDefault true if any existing property value should be
- * copied to the variable; false if the variable should not
- * be modified; defaults to true.
- */
-inline void
-fgTie (const string &name, string *pointer, bool useDefault = true)
-{
- if (!globals->get_props()->tie(name, SGRawValuePointer<string>(pointer),
- useDefault))
- SG_LOG(SG_GENERAL, SG_WARN,
- "Failed to tie property " << name << " to a pointer");
-}