METHOD_RETURN_TYPE PDFRealDriver::GetValue(Local<String> property, const PROPERTY_TYPE &info) { CREATE_ISOLATE_CONTEXT; CREATE_ESCAPABLE_SCOPE; SET_ACCESSOR_RETURN_VALUE(NEW_NUMBER(ObjectWrap::Unwrap<PDFRealDriver>(info.Holder())->TheObject->GetValue())) }
METHOD_RETURN_TYPE PDFHexStringDriver::GetValue(Local<String> property, const PROPERTY_TYPE &info) { CREATE_ISOLATE_CONTEXT; CREATE_ESCAPABLE_SCOPE; Handle<String> result = NEW_STRING(ObjectWrap::Unwrap<PDFHexStringDriver>(info.Holder())->TheObject->GetValue().c_str()); SET_ACCESSOR_RETURN_VALUE(result); }