Poco::JS::Core

class Wrapper

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: BufferWrapper, DateTimeWrapper, LoggerWrapper, Poco::JS::File::FileWrapper, URIWrapper, Poco::JS::Bridge::BridgeWrapper, ConfigurationWrapper, Poco::OSP::JS::ServiceRefWrapper, ApplicationWrapper, ConsoleWrapper, LocalDateTimeWrapper, SystemWrapper, TimerWrapper, UUIDWrapper, Poco::JS::Crypto::DigestEngineWrapper, Poco::JS::Data::RecordSetWrapper, Poco::JS::Data::SessionWrapper, Poco::JS::File::FileStreamWrapper, Poco::JS::Net::CookieJarWrapper, Poco::JS::Net::HTTPRequestWrapper, Poco::JS::Net::HTTPResponseWrapper, Poco::OSP::JS::BundleContextWrapper, Poco::OSP::JS::BundleWrapper, Poco::OSP::JS::ServiceListenerWrapper, Poco::OSP::JS::ServiceRegistryWrapper, Poco::JS::Net::HTMLFormWrapper

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

virtual ~Wrapper();

Destroys the Wrapper.

Member Functions

checkSetResult static inline

static void checkSetResult(
    const v8::Maybe < bool > & result,
    const char * file,
    int line
);

isWrapper static inline

template < typename T > static bool isWrapper(
    v8::Isolate * pIsolate,
    const v8::Local < v8::Value > & value
);

objectTemplate virtual

virtual v8::Handle < v8::ObjectTemplate > objectTemplate(
    v8::Isolate * pIsolate
) = 0;

Creates and returns a V8 ObjectTemplate.

returnException static inline

template < typename T > static void returnException(
    const T & info,
    const Poco::Exception & exc
);

returnException static inline

template < typename T > static void returnException(
    const T & info,
    const std::string & displayText
);

returnString static inline

template < typename T > static void returnString(
    const T & info,
    const std::string & value
);

safeUnwrapNative static inline

template < typename T > static T * safeUnwrapNative(
    v8::Isolate * pIsolate,
    v8::Local < v8::Value > & value
);

toString static

static std::string toString(
    v8::Isolate * pIsolate,
    v8::Local < v8::Value > value
);

toString static

static std::string toString(
    v8::Isolate * pIsolate,
    v8::Local < v8::String > value
);

toString static

static std::string toString(
    v8::Isolate * pIsolate,
    v8::Local < v8::Name > value
);

toString static

static std::string toString(
    v8::Isolate * pIsolate,
    v8::MaybeLocal < v8::Value > maybeValue
);

toString static

static std::string toString(
    v8::Isolate * pIsolate,
    v8::MaybeLocal < v8::String > maybeValue
);

toV8Internalized static

static v8::Local < v8::String > toV8Internalized(
    v8::Isolate * pIsolate,
    const std::string & value
);

toV8String static

static v8::Local < v8::String > toV8String(
    v8::Isolate * pIsolate,
    const std::string & value,
    v8::NewStringType type = v8::NewStringType::kNormal
);

toV8String static

static v8::Local < v8::String > toV8String(
    v8::Isolate * pIsolate,
    const char * value
);

unwrapNative static inline

template < typename T, typename A > static T * unwrapNative(
    const A & args
);

unwrapNativeObject static inline

template < typename T > static T * unwrapNativeObject(
    const v8::Local < v8::Value > & value
);

wrapNative inline

template < typename T > v8::MaybeLocal < v8::Object > wrapNative(
    v8::Isolate * pIsolate,
    T * pNative
);

wrapNative inline

v8::MaybeLocal < v8::Object > wrapNative(
    v8::Isolate * pIsolate
);

wrapNativePersistent inline

template < typename T > v8::Persistent < v8::Object > & wrapNativePersistent(
    v8::Isolate * pIsolate,
    T * pNative
);

wrapNativePersistent inline

template < typename T > v8::Persistent < v8::Object > & wrapNativePersistent(
    v8::Isolate * pIsolate,
    Poco::SharedPtr < T > pNative
);

wrapNativePersistent inline

template < typename T > v8::Persistent < v8::Object > & wrapNativePersistent(
    v8::Isolate * pIsolate,
    Poco::AutoPtr < T > pNative
);

reportEmptySetResult protected static

static void reportEmptySetResult(
    const char * file,
    int line
);

Securely control IoT edge devices from anywhere   Connect a Device