FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
NodePtr FB::DOM::Node::getNode ( const std::string &  name) const
virtual

Gets a child node of the specified name.

Parameters
namethe name of the child node to fetch
Returns
child node

Definition at line 25 of file ScriptingCore/DOM/Node.cpp.

References create().

26 {
27  FB::JSObjectPtr api = getProperty<FB::JSObjectPtr>(name);
28  return Node::create(api);
29 }
static NodePtr create(const FB::JSObjectPtr &api)
Creates a FB::DOM::Node object from a JSObjectPtr representing a DOM node. This will probably throw a...
boost::shared_ptr< FB::JSObject > JSObjectPtr
Defines an alias representing a JSObject shared_ptr (you should never use a JSObject* directly) ...
Definition: APITypes.h:109

Here is the call graph for this function: