Page tree
Skip to end of metadata
Go to start of metadata

public virtual FB::variant FB::JSAPIAuto::getAttribute ( const std::string &  name)
virtual

Returns the attribute with the given name, empty variant if none.

Parameters
namename of the attribute to get
Returns
FB::variant
Since
1.4a3
See Also
registerAttribute
setAttribute
removeAttribute

Definition at line 406 of file JSAPIAuto.cpp.

407 {
408  if (m_attributes.find(name) != m_attributes.end()) {
409  return m_attributes[name].value;
410  }
411  return FB::FBVoid();
412 }
  • No labels