FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void JSAPISimple::getMemberNames ( std::vector< std::string > &  nameVector) const
virtual

Called by the browser to enumerate the members of this JSAPI object.

This must be implemented by anything extending JSAPI directly. JSAPIAuto implements this for you.

Parameters
[out]nameVectorThe name vector.

Implements FB::JSAPI.

Definition at line 59 of file JSAPISimple.cpp.

60 {
61  nameVector.clear();
62 
63  for (FB::MethodMap::const_iterator it = m_methodMap.begin();
64  it != m_methodMap.end(); ++it) {
65  nameVector.push_back(it->first);
66  }
67  for (FB::PropertyMap::const_iterator it = m_propertyMap.begin();
68  it != m_propertyMap.end(); ++it) {
69  nameVector.push_back(it->first);
70  }
71 }