ImportScript Class Reference
#include <import_script.h>
Public Member Functions |
| | ImportScript (zmm::Ref< Runtime > runtime) |
| | ~ImportScript () |
| void | processCdsObject (zmm::Ref< CdsObject > obj, zmm::String rootpath) |
| virtual script_class_t | whoami () |
| zmm::String | getProperty (JSObject *obj, zmm::String name) |
| int | getBoolProperty (JSObject *obj, zmm::String name) |
| int | getIntProperty (JSObject *obj, zmm::String name, int def) |
| JSObject * | getObjectProperty (JSObject *obj, zmm::String name) |
| void | setProperty (JSObject *obj, zmm::String name, zmm::String value) |
| void | setIntProperty (JSObject *obj, zmm::String name, int value) |
| void | setObjectProperty (JSObject *parent, zmm::String name, JSObject *obj) |
| void | deleteProperty (JSObject *obj, zmm::String name) |
| JSObject * | getGlobalObject () |
| void | setGlobalObject (JSObject *glob) |
| JSContext * | getContext () |
| void | defineFunction (zmm::String name, JSNative function, int numParams) |
| void | defineFunctions (JSFunctionSpec *functions) |
| void | load (zmm::String scriptPath) |
| void | load (zmm::String scriptText, zmm::String scriptPath) |
| zmm::Ref< CdsObject > | jsObject2cdsObject (JSObject *js, zmm::Ref< CdsObject > pcd) |
| void | cdsObject2jsObject (zmm::Ref< CdsObject > obj, JSObject *js) |
| zmm::Ref< CdsObject > | getProcessedObject () |
| zmm::String | convertToCharset (zmm::String str, charset_convert_t chr) |
| void | retain () |
| void | release () |
| int | getRefCount () |
Static Public Member Functions |
| static void * | operator new (size_t size) |
| static void | operator delete (void *ptr) |
Data Fields |
| zmm::Ref< Runtime > | runtime |
| JSRuntime * | rt |
| JSContext * | cx |
| JSObject * | glob |
| JSScript * | script |
| JSScript * | common_script |
Protected Member Functions |
| void | execute () |
Protected Attributes |
| int | gc_counter |
| zmm::Ref< CdsObject > | processed |
| mt_atomic_t | _ref_count |
| pthread_mutex_t | mutex |
Private Attributes |
| JSObject * | root |
Detailed Description
Definition at line 40 of file import_script.h.
Constructor & Destructor Documentation
| ImportScript::~ImportScript |
( |
|
) |
|
Member Function Documentation
| void Script::cdsObject2jsObject |
( |
zmm::Ref< CdsObject > |
obj, |
|
|
JSObject * |
js | |
|
) |
| | [inherited] |
| void Script::defineFunction |
( |
zmm::String |
name, |
|
|
JSNative |
function, |
|
|
int |
numParams | |
|
) |
| | [inherited] |
| void Script::defineFunctions |
( |
JSFunctionSpec * |
functions |
) |
[inherited] |
| void Script::deleteProperty |
( |
JSObject * |
obj, |
|
|
zmm::String |
name | |
|
) |
| | [inherited] |
| void Script::execute |
( |
|
) |
[protected, inherited] |
| int Script::getBoolProperty |
( |
JSObject * |
obj, |
|
|
zmm::String |
name | |
|
) |
| | [inherited] |
| JSContext* Script::getContext |
( |
|
) |
[inherited] |
| JSObject* Script::getGlobalObject |
( |
|
) |
[inherited] |
| int Script::getIntProperty |
( |
JSObject * |
obj, |
|
|
zmm::String |
name, |
|
|
int |
def | |
|
) |
| | [inherited] |
| JSObject* Script::getObjectProperty |
( |
JSObject * |
obj, |
|
|
zmm::String |
name | |
|
) |
| | [inherited] |
| int Object::getRefCount |
( |
|
) |
[inherited] |
| void Script::load |
( |
zmm::String |
scriptPath |
) |
[inherited] |
| void Object::operator delete |
( |
void * |
ptr |
) |
[static, inherited] |
| void * Object::operator new |
( |
size_t |
size |
) |
[static, inherited] |
| void Object::release |
( |
|
) |
[inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void Object::retain |
( |
|
) |
[inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
| void Script::setGlobalObject |
( |
JSObject * |
glob |
) |
[inherited] |
| void Script::setIntProperty |
( |
JSObject * |
obj, |
|
|
zmm::String |
name, |
|
|
int |
value | |
|
) |
| | [inherited] |
| void Script::setObjectProperty |
( |
JSObject * |
parent, |
|
|
zmm::String |
name, |
|
|
JSObject * |
obj | |
|
) |
| | [inherited] |
Field Documentation
Reimplemented in AutoscanList, AutoscanInotify, CachedURL, Dictionary_r, DVDNavReader, IOHandlerBufferHelper, ReentrantArray< T >, SingletonManager, Singleton< T >, StorageCache, MutexAutolock, Cond, ThreadExecutor, Singleton< UpdateManager >, Singleton< Timer >, Singleton< ContentDirectoryService >, Singleton< ConfigManager >, Singleton< Server >, Singleton< Runtime >, Singleton< ContentManager >, Singleton< ConnectionManagerService >, Singleton< PlayHook >, Singleton< Storage >, and Singleton< SessionManager >.
Definition at line 56 of file object.h.
Referenced by zmm::Object::Object(), zmm::Object::release(), zmm::Object::retain(), and zmm::Object::~Object().
The documentation for this class was generated from the following file: