HDK
|
#include "pxr/pxr.h"
#include "pxr/base/js/api.h"
#include "pxr/base/js/value.h"
#include <hboost/none.hpp>
#include <hboost/optional.hpp>
#include <string>
Go to the source code of this file.
Functions | |
JS_API JsOptionalValue | JsFindValue (const JsObject &object, const std::string &key, const JsOptionalValue &defaultValue=hboost::none) |
Variables | |
PXR_NAMESPACE_OPEN_SCOPE typedef hboost::optional < JsValue > | JsOptionalValue |
JS_API JsOptionalValue JsFindValue | ( | const JsObject & | object, |
const std::string & | key, | ||
const JsOptionalValue & | defaultValue = hboost::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.
PXR_NAMESPACE_OPEN_SCOPE typedef hboost::optional<JsValue> JsOptionalValue |