Skip to end of metadata
Go to start of metadata

variant FB::JSAPISimple::callFireEvent ( const std::vector< variant > &  args  )  [virtual]

Example function for testing fireEvent.

Parameters:
args arguments from javascript. The first should be the name of the event to fire, the rest will be passed into the event
Returns:
nothing

Definition at line 34 of file JSAPISimple.cpp.

References FB::JSAPIImpl::FireEvent().

00035 {
00036     std::vector<FB::variant> args(args_in);
00037     
00038     try {
00039         std::string event = args[0].convert_cast<std::string>();
00040         args.erase(args.begin());
00041         this->FireEvent(event, args);
00042         return event;
00043     } catch (...) {
00044         throw invalid_arguments();
00045     }
00046 }

Here is the call graph for this function:


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