removed fgHasValue
removed fgGetValue added fgHasNode
This commit is contained in:
parent
6a9051883c
commit
80bc1edcd5
1 changed files with 7 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue