From 80bc1edcd5d5526cadd7af70bf5f1be6d41485fa Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 12 Jun 2001 05:17:49 +0000 Subject: [PATCH] removed fgHasValue removed fgGetValue added fgHasNode --- src/Main/fg_props.hxx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Main/fg_props.hxx b/src/Main/fg_props.hxx index d6af8b10b..5e936f5af 100644 --- a/src/Main/fg_props.hxx +++ b/src/Main/fg_props.hxx @@ -35,21 +35,23 @@ fgGetNode (const string &path, bool create = false) } +#if 0 /** * Get an SGValue pointer that can be queried repeatedly. * * If the property value is going to be accessed within the loop, * it is best to use this method for maximum efficiency. */ -inline SGValue * -fgGetValue (const string &name, bool create = false) +inline SGPropertyNode * +fgGetNode (const string &name, bool create = false) { - return globals->get_props()->getValue(name, create); + return globals->get_props()->getNode(name, create); } +#endif -inline bool fgHasValue (const string &name) +inline bool fgHasNode (const string &name) { - return globals->get_props()->hasValue(name); + return globals->get_props()->getNode(name) != NULL; } inline bool fgGetBool (const string &name, bool defaultValue = false) -- 2.39.5