Changeset 15046


Ignore:
Timestamp:
Mar 13, 2013, 11:05:59 AM (6 years ago)
Author:
tbretz
Message:
Renamed getService to getDescription
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/InterpreterV8.cc

    r15044 r15046  
    467467}
    468468
    469 Handle<Value> InterpreterV8::FuncGetService(const Arguments& args)
     469Handle<Value> InterpreterV8::FuncGetDescription(const Arguments& args)
    470470{
    471471    if (args.Length()!=1)
    472         return ThrowException(String::New("getService must take exactly one argument."));
     472        return ThrowException(String::New("getDescription must take exactly one argument."));
    473473
    474474    if (args.Length()==1 && !args[0]->IsString())
     
    21352135    dim->Set(String::New("version"),   Integer::New(DIM_VERSION_NUMBER),     ReadOnly);
    21362136    dim->Set(String::New("getStates"), FunctionTemplate::New(WrapGetStates), ReadOnly);
    2137     dim->Set(String::New("getService"), FunctionTemplate::New(WrapGetService), ReadOnly);
     2137    dim->Set(String::New("getDescription"), FunctionTemplate::New(WrapGetDescription), ReadOnly);
    21382138    dim->Set(String::New("getServices"), FunctionTemplate::New(WrapGetServices), ReadOnly);
    21392139
  • trunk/FACT++/src/InterpreterV8.h

    r15043 r15046  
    7979    v8::Handle<v8::Value> FuncGetState(const v8::Arguments& args);
    8080    v8::Handle<v8::Value> FuncGetStates(const v8::Arguments& args);
    81     v8::Handle<v8::Value> FuncGetService(const v8::Arguments& args);
     81    v8::Handle<v8::Value> FuncGetDescription(const v8::Arguments& args);
    8282    v8::Handle<v8::Value> FuncGetServices(const v8::Arguments& args);
    8383    v8::Handle<v8::Value> FuncNewState(const v8::Arguments& args);
     
    132132    static v8::Handle<v8::Value> WrapGetState(const v8::Arguments &args) { if (This) return This->FuncGetState(args); else return v8::Undefined(); }
    133133    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> WrapGetService(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(); }
    135135    static v8::Handle<v8::Value> WrapGetServices(const v8::Arguments &args){ if (This) return This->FuncGetServices(args);else return v8::Undefined(); }
    136136    //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.