All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utils.h File Reference
+ Include dependency graph for utils.h:

Go to the source code of this file.

Typedefs

typedef boost::optional< JsValueJsOptionalValue
 

Functions

JS_API JsOptionalValue JsFindValue (const JsObject &object, const std::string &key, const JsOptionalValue &defaultValue=boost::none)
 Returns the value associated with key in the given object. More...
 

Function Documentation

JS_API JsOptionalValue JsFindValue ( const JsObject &  object,
const std::string &  key,
const JsOptionalValue &  defaultValue = boost::none 
)

Returns the value associated with key in the given object.

If no such key exists, and the supplied default is not supplied, this method returns an uninitialized optional JsValue. Otherwise, the defaultValue is returned.