Skip to end of metadata
Go to start of metadata

FB::DOM::Node Class Reference

DOM Node wrapper. More...

#include <Node.h>

Inheritance diagram for FB::DOM::Node:
Inheritance graph

List of all members.

Public Member Functions

virtual FB::JSObjectPtr getJSObject () const
 Returns the FB::JSObjectPtr that this object is wrapping.
NodePtr node ()
 Gets the NodePtr for the current node.
template<class T >
callMethod (const std::string &name, const VariantList &args) const
 Templated function, calls a method on the node of the given name, casts the result to type T, and returns it.
template<class T >
callMethod (const std::wstring &name, const VariantList &args) const
template<class T >
getProperty (const std::wstring &name) const
template<class T >
getProperty (const std::string &name) const
 Templated function, gets the specified prooerty and returns it cast as the specified type.
template<class T >
getProperty (const int idx) const
 Templated function, gets the specified prooerty by index and returns it cast as the specified type.
virtual NodePtr getNode (const std::wstring &name) const
virtual NodePtr getNode (const std::string &name) const
 Gets a child node of the specified name.
virtual NodePtr getNode (const int idx) const
 Gets a child node of the specified name by index.
virtual void setProperty (const std::wstring &name, const variant &val) const
virtual void setProperty (const std::string &name, const variant &val) const
 Sets a property on the node to a given value.
virtual void setProperty (const int idx, const variant &val) const

Static Public Member Functions

static NodePtr create (const FB::JSObjectPtr &api)
 Creates a FB::DOM::Node object from a JSObjectPtr representing a DOM node. This will probably throw an exception and definitely not work right if the js object represented is not a node.

Detailed Description

DOM Node wrapper.

This class should not be created directly; instead, use the Node::create method

Definition at line 39 of file ScriptingCore/DOM/Node.h.

The documentation for this class was generated from the following files:

Generated on 6 Oct 2014 for FireBreath by  doxygen 1.6.1
  • No labels