Changeset 14122 for trunk/FACT++/src/InterpreterV8.cc
- Timestamp:
- 06/08/12 17:03:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r14103 r14122 216 216 Handle<ObjectTemplate> obj = ObjectTemplate::New(); 217 217 218 219 218 obj->Set(String::New("index"), rc.first<=-256?Undefined():Integer::New(rc.first), ReadOnly); 220 219 obj->Set(String::New("name"), rc.first<=-256?Undefined():String::New(rc.second.c_str()), ReadOnly); 221 220 //obj->Set(String::New("toString"), String::New(("[Object state "+string(*str)+"]").c_str()), ReadOnly); 222 221 223 222 return handle_scope.Close(obj->NewInstance()); 224 223 } … … 334 333 ret->Set(String::New("counter"), Integer::New(p.first), ReadOnly); 335 334 ret->Set(String::New("time"), Date::New(evt->GetJavaDate()), ReadOnly); 336 ret->Set(String::New("qos"), Inte rger::New(evt->GetQoS()), ReadOnly);335 ret->Set(String::New("qos"), Integer::New(evt->GetQoS()), ReadOnly); 337 336 338 337 typedef boost::char_separator<char> separator; … … 448 447 // Create a template for the global object. 449 448 Handle<ObjectTemplate> dim = ObjectTemplate::New(); 450 dim->Set(String::New("print"), FunctionTemplate::New(WrapPrint), 451 dim->Set(String::New("wait"), FunctionTemplate::New(WrapWait), 452 dim->Set(String::New("send"), FunctionTemplate::New(WrapSend), 453 dim->Set(String::New("state"), FunctionTemplate::New(WrapState), 454 dim->Set(String::New("sleep"), FunctionTemplate::New(WrapSleep), 455 dim->Set(String::New("open"), FunctionTemplate::New(WrapOpen), ReadOnly);449 dim->Set(String::New("print"), FunctionTemplate::New(WrapPrint), ReadOnly); 450 dim->Set(String::New("wait"), FunctionTemplate::New(WrapWait), ReadOnly); 451 dim->Set(String::New("send"), FunctionTemplate::New(WrapSend), ReadOnly); 452 dim->Set(String::New("state"), FunctionTemplate::New(WrapState), ReadOnly); 453 dim->Set(String::New("sleep"), FunctionTemplate::New(WrapSleep), ReadOnly); 454 dim->Set(String::New("open"), FunctionTemplate::New(WrapOpen), ReadOnly); 456 455 457 456 Handle<ObjectTemplate> global = ObjectTemplate::New();
Note:
See TracChangeset
for help on using the changeset viewer.