1
0
Fork 0

removed fgHasValue

removed fgGetValue
added fgHasNode
This commit is contained in:
curt 2001-06-12 05:17:49 +00:00
parent 6a9051883c
commit 80bc1edcd5

View file

@ -35,21 +35,23 @@ fgGetNode (const string &path, bool create = false)
} }
#if 0
/** /**
* Get an SGValue pointer that can be queried repeatedly. * Get an SGValue pointer that can be queried repeatedly.
* *
* If the property value is going to be accessed within the loop, * If the property value is going to be accessed within the loop,
* it is best to use this method for maximum efficiency. * it is best to use this method for maximum efficiency.
*/ */
inline SGValue * inline SGPropertyNode *
fgGetValue (const string &name, bool create = false) 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) inline bool fgGetBool (const string &name, bool defaultValue = false)