Poco::JS::Core

class Wrapper

Library: JS/Core
Package: Wrappers
Header: Poco/JS/Core/Wrapper.h

Description

Interface for JavaScript V8 Engine Wrapper classes.

Inheritance

Known Derived Classes: DateTimeWrapper, LocalDateTimeWrapper, TimerWrapper, Poco::JS::Data::RecordSetWrapper, Poco::JS::Net::HTMLFormWrapper, ConfigurationWrapper, Poco::JS::Net::HTTPRequestWrapper, LoggerWrapper, Poco::JS::Net::HTTPResponseWrapper, Poco::OSP::JS::BundleWrapper, Poco::JS::Bridge::BridgeWrapper, ApplicationWrapper, BufferWrapper, ConsoleWrapper, URIWrapper, Poco::JS::Data::SessionWrapper, SystemWrapper, UUIDWrapper, Poco::OSP::JS::ServiceRegistryWrapper, Poco::OSP::JS::ServiceRefWrapper, Poco::OSP::JS::ServiceListenerWrapper

Member Summary

Member Functions: isWrapper, objectTemplate, returnException, returnString, safeUnwrapNative, toString, unwrapNative, unwrapNativeObject, wrapNative, wrapNativePersistent

Constructors

Wrapper

Wrapper();

Creates the Wrapper.

Destructor

~Wrapper virtual

virtual ~Wrapper();

Destroys the Wrapper.

Member Functions

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::Local < v8::Value > 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::Local < v8::Object > wrapNative(
    v8::Isolate * pIsolate,
    T * pNative
);

wrapNative inline

v8::Handle < 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
);

Securely control IoT edge devices from anywhere   Connect a Device