Changeset 15046
- Timestamp:
- 03/13/13 11:05:59 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r15044 r15046 467 467 } 468 468 469 Handle<Value> InterpreterV8::FuncGet Service(const Arguments& args)469 Handle<Value> InterpreterV8::FuncGetDescription(const Arguments& args) 470 470 { 471 471 if (args.Length()!=1) 472 return ThrowException(String::New("get Servicemust take exactly one argument."));472 return ThrowException(String::New("getDescription must take exactly one argument.")); 473 473 474 474 if (args.Length()==1 && !args[0]->IsString()) … … 2135 2135 dim->Set(String::New("version"), Integer::New(DIM_VERSION_NUMBER), ReadOnly); 2136 2136 dim->Set(String::New("getStates"), FunctionTemplate::New(WrapGetStates), ReadOnly); 2137 dim->Set(String::New("get Service"), FunctionTemplate::New(WrapGetService), ReadOnly);2137 dim->Set(String::New("getDescription"), FunctionTemplate::New(WrapGetDescription), ReadOnly); 2138 2138 dim->Set(String::New("getServices"), FunctionTemplate::New(WrapGetServices), ReadOnly); 2139 2139 -
trunk/FACT++/src/InterpreterV8.h
r15043 r15046 79 79 v8::Handle<v8::Value> FuncGetState(const v8::Arguments& args); 80 80 v8::Handle<v8::Value> FuncGetStates(const v8::Arguments& args); 81 v8::Handle<v8::Value> FuncGet Service(const v8::Arguments& args);81 v8::Handle<v8::Value> FuncGetDescription(const v8::Arguments& args); 82 82 v8::Handle<v8::Value> FuncGetServices(const v8::Arguments& args); 83 83 v8::Handle<v8::Value> FuncNewState(const v8::Arguments& args); … … 132 132 static v8::Handle<v8::Value> WrapGetState(const v8::Arguments &args) { if (This) return This->FuncGetState(args); else return v8::Undefined(); } 133 133 static v8::Handle<v8::Value> WrapGetStates(const v8::Arguments &args){ if (This) return This->FuncGetStates(args);else return v8::Undefined(); } 134 static v8::Handle<v8::Value> WrapGet Service(const v8::Arguments &args){ if (This) return This->FuncGetService(args);else return v8::Undefined(); }134 static v8::Handle<v8::Value> WrapGetDescription(const v8::Arguments &args){ if (This) return This->FuncGetDescription(args);else return v8::Undefined(); } 135 135 static v8::Handle<v8::Value> WrapGetServices(const v8::Arguments &args){ if (This) return This->FuncGetServices(args);else return v8::Undefined(); } 136 136 //static v8::Handle<v8::Value> WrapOpen(const v8::Arguments &args) { if (This) return This->FuncOpen(args); else return v8::Undefined(); }
Note:
See TracChangeset
for help on using the changeset viewer.