COOPY » Guide  version 0.6.5
Public Member Functions
coopy::js::JsWrap Class Reference

Javascript interpreter. More...

#include <JsWrap.h>

Public Member Functions

 JsWrap ()
virtual ~JsWrap ()
std::string apply (const std::string &str)
bool send (const std::string &function_name, const std::string &str)
bool send (const std::string &function_name, jsval *val)
JSContext * context () const
JSObject * global () const
int getId () const
void setCurrentId (int i) const
bool isCurrentId (int i) const

Detailed Description

Javascript interpreter.

Definition at line 19 of file JsWrap.h.


Constructor & Destructor Documentation

JsWrap::JsWrap ( )

Definition at line 170 of file JsWrap.cpp.

References js_global, and js_instance_count.

JsWrap::~JsWrap ( ) [virtual]

Definition at line 175 of file JsWrap.cpp.

References js_global, js_instance_count, and NULL.


Member Function Documentation

std::string JsWrap::apply ( const std::string &  str)

Definition at line 183 of file JsWrap.cpp.

References js_global.

Referenced by coopy::store::socialcalc::SocialCalcSheet::jsSetup(), and main().

JSContext * JsWrap::context ( ) const

Definition at line 198 of file JsWrap.cpp.

References js_global, and NULL.

int JsWrap::getId ( ) const

Definition at line 209 of file JsWrap.cpp.

References js_global.

JSObject * JsWrap::global ( ) const

Definition at line 203 of file JsWrap.cpp.

References js_global, and NULL.

bool JsWrap::isCurrentId ( int  i) const

Definition at line 219 of file JsWrap.cpp.

References js_global.

bool JsWrap::send ( const std::string &  function_name,
const std::string &  str 
)

Definition at line 188 of file JsWrap.cpp.

References js_global.

Referenced by main().

bool JsWrap::send ( const std::string &  function_name,
jsval *  val 
)

Definition at line 193 of file JsWrap.cpp.

References js_global.

void JsWrap::setCurrentId ( int  i) const

Definition at line 214 of file JsWrap.cpp.

References js_global.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines