Skip to end of metadata
Go to start of metadata

variant JSAPISimple::Invoke ( const std::string &  methodName,
const std::vector< variant > &  args 
) [virtual]

Called by the browser to invoke a method on the JSAPI object.

Parameters:
methodName Name of the method.
args The arguments.
Returns:
result of method call

Implements FB::JSAPI.

Definition at line 197 of file JSAPISimple.cpp.

00198 {
00199     if (!m_valid)
00200         throw object_invalidated();
00201 
00202     MethodMap::iterator fnd = m_methodMap.find(methodName);
00203     if (fnd != m_methodMap.end() && fnd->second.callFunc != NULL) {
00204         return (this->*fnd->second.callFunc)(args);
00205     } else {
00206         throw invalid_member(methodName);
00207     }    
00208 }


Generated on 19 Jun 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None