File Information
Library: JS/Core
Package: Wrappers
Header: Poco/JS/Core/Wrapper.h
Description
Interface for JavaScript V8 Engine Wrapper classes.
Inheritance
Known Derived Classes: ApplicationWrapper, URIWrapper, UUIDWrapper, Poco::JS::Data::RecordSetWrapper, Poco::JS::Data::SessionWrapper, ConfigurationWrapper, SystemWrapper, Poco::JS::File::FileStreamWrapper, Poco::JS::Net::HTMLFormWrapper, Poco::JS::Net::HTTPRequestWrapper, Poco::JS::Net::CookieJarWrapper, Poco::JS::File::FileWrapper, Poco::OSP::JS::BundleWrapper, Poco::OSP::JS::ServiceListenerWrapper, Poco::JS::Bridge::BridgeWrapper, BufferWrapper, DateTimeWrapper, LoggerWrapper, Poco::JS::Crypto::DigestEngineWrapper, Poco::JS::Net::HTTPResponseWrapper, ConsoleWrapper, TimerWrapper, Poco::OSP::JS::ServiceRefWrapper, Poco::OSP::JS::BundleContextWrapper, Poco::OSP::JS::ServiceRegistryWrapper, LocalDateTimeWrapper
Member Summary
Member Functions: checkSetResult, isWrapper, objectTemplate, reportEmptySetResult, returnException, returnString, safeUnwrapNative, toString, toV8Internalized, toV8String, unwrapNative, unwrapNativeObject, wrapNative, wrapNativePersistent
Constructors
Wrapper
Wrapper();
Creates the Wrapper.
Destructor
~Wrapper
virtual ~Wrapper();
Destroys the Wrapper.
Member Functions
checkSetResult
static void checkSetResult(
const v8::Maybe < bool > & result,
const char * file,
int line
);
isWrapper
template < typename T > static bool isWrapper(
v8::Isolate * pIsolate,
const v8::Local < v8::Value > & value
);
objectTemplate
virtual v8::Handle < v8::ObjectTemplate > objectTemplate(
v8::Isolate * pIsolate
) = 0;
Creates and returns a V8 ObjectTemplate.
returnException
template < typename T > static void returnException(
const T & info,
const Poco::Exception & exc
);
returnException
template < typename T > static void returnException(
const T & info,
const std::string & displayText
);
returnString
template < typename T > static void returnString(
const T & info,
const std::string & value
);
safeUnwrapNative
template < typename T > static T * safeUnwrapNative(
v8::Isolate * pIsolate,
v8::Local < v8::Value > & value
);
toString
static std::string toString(
v8::Isolate * pIsolate,
v8::Local < v8::Value > value
);
toString
static std::string toString(
v8::Isolate * pIsolate,
v8::Local < v8::String > value
);
toString
static std::string toString(
v8::Isolate * pIsolate,
v8::Local < v8::Name > value
);
toString
static std::string toString(
v8::Isolate * pIsolate,
v8::MaybeLocal < v8::Value > maybeValue
);
toString
static std::string toString(
v8::Isolate * pIsolate,
v8::MaybeLocal < v8::String > maybeValue
);
toV8Internalized
static v8::Local < v8::String > toV8Internalized(
v8::Isolate * pIsolate,
const std::string & value
);
toV8String
static v8::Local < v8::String > toV8String(
v8::Isolate * pIsolate,
const std::string & value,
v8::NewStringType type = v8::NewStringType::kNormal
);
toV8String
static v8::Local < v8::String > toV8String(
v8::Isolate * pIsolate,
const char * value
);
unwrapNative
template < typename T, typename A > static T * unwrapNative(
const A & args
);
unwrapNativeObject
template < typename T > static T * unwrapNativeObject(
const v8::Local < v8::Value > & value
);
wrapNative
template < typename T > v8::MaybeLocal < v8::Object > wrapNative(
v8::Isolate * pIsolate,
T * pNative
);
wrapNative
v8::MaybeLocal < v8::Object > wrapNative(
v8::Isolate * pIsolate
);
wrapNativePersistent
template < typename T > v8::Persistent < v8::Object > & wrapNativePersistent(
v8::Isolate * pIsolate,
T * pNative
);
wrapNativePersistent
template < typename T > v8::Persistent < v8::Object > & wrapNativePersistent(
v8::Isolate * pIsolate,
Poco::SharedPtr < T > pNative
);
wrapNativePersistent
template < typename T > v8::Persistent < v8::Object > & wrapNativePersistent(
v8::Isolate * pIsolate,
Poco::AutoPtr < T > pNative
);
reportEmptySetResult
static void reportEmptySetResult(
const char * file,
int line
);