FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void JSAPISimple::SetProperty ( const std::string &  propertyName,
const variant value 
)
virtual

Sets the value of a property.

Parameters
propertyNameName of the property.
valueThe value.

Implements FB::JSAPI.

Definition at line 134 of file JSAPISimple.cpp.

135 {
136  if (!m_valid)
137  throw object_invalidated();
138 
139  PropertyMap::const_iterator fnd = m_propertyMap.find(propertyName);
140  if (fnd->second.setFunc != NULL) {
141  (this->*fnd->second.setFunc)(value);
142  } else {
143  throw invalid_member(propertyName);
144  }
145 }
Thrown by a JSAPI object when a call is made on it after the object has been invalidated.
Definition: JSExceptions.h:69
Thrown when an Invoke, SetProperty, or GetProperty call is made for a member that is invalid (does no...
Definition: JSExceptions.h:83