COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libjs/include/coopy/JsWrap.h
Go to the documentation of this file.
00001 #ifndef COOPY_JSWRAP
00002 #define COOPY_JSWRAP
00003 
00004 namespace coopy {
00005   namespace js {
00006     class JsWrap;
00007   }
00008 }
00009 
00010 #include "jsapi.h"
00011 
00012 #include <string>
00013 
00019 class coopy::js::JsWrap {
00020 public:
00021   JsWrap();
00022 
00023   virtual ~JsWrap();
00024 
00025   std::string apply(const std::string& str);
00026 
00027   bool send(const std::string& function_name,
00028             const std::string& str);
00029 
00030   bool send(const std::string& function_name, jsval *val);
00031 
00032   JSContext *context() const;
00033   JSObject *global() const;
00034 
00035   int getId() const;
00036   void setCurrentId(int i) const;
00037   bool isCurrentId(int i) const;
00038 
00039 };
00040 
00041 #endif
00042 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines