Skip to end of metadata
Go to start of metadata

public void FB::JSAPIAuto::registerAttribute ( const std::string &  name,
const FB::variant value,
bool  readonly = false 
) [virtual]

Registers an attribute _name_ and sets the value to _value. Optionally read-only.

Parameters:
name The name (as seen from JavaScript) of the Attribute
value The value
readonly True if the attribute should not be modifiable from JavaScript
Since:
1.4a3
See also:
getAttribute
setAttribute

Definition at line 381 of file JSAPIAuto.cpp.

References FB::JSAPIImpl::getZone().

Referenced by SetProperty().

00382 {
00383     boost::recursive_mutex::scoped_lock lock(m_zoneMutex);
00384     Attribute attr = {value, readonly};
00385     m_attributes[name] = attr;
00386     m_zoneMap[name] = getZone();
00387 }

Here is the call graph for this function:


Generated on 21 May 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None