Ignore:
Timestamp:
Jan 31, 2006 9:15:36 AM (18 years ago)
Author:
dkearney
Message:

changed matlab api to call c++ functions instead of rappture's c api
removed following functions because they are outdated and should not be included at matlab/octave's release
src/octave/rpLibPutDoubleId.cc
src/octave/rpLibPutStringId.cc
src/matlab/rpLibPutDoubleId.cc
src/matlab/rpLibPutStringId.cc
cleaned up makefile to reflect the removal of above functions.
matlab bindings need to be retested. they receive a runtime error about undefined symbols

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matlab/rpLibChildren.cc

    r155 r162  
    4141    RpLibrary*  child = NULL;
    4242    RpLibrary*  retLib = NULL;
    43     char*       path = NULL;
     43    std::string  path = "";
    4444
    4545    /* Check for proper number of arguments. */
    46     if (nrhs != 3)
     46    if (nrhs != 3) {
    4747        mexErrMsgTxt("Three input required.");
    48     else if (nlhs > 2)
    49         mexErrMsgTxt("Too many output arguments.");
     48    }
    5049
    5150    libIndex = getIntInput(prhs[0]);
     
    5352    childIndex = getIntInput(prhs[2]);
    5453
    55     /* Call the C subroutine. */
     54    /* Call the C++ subroutine. */
    5655    if ( (libIndex > 0)     &&
    57          (path)             &&
     56         (!path.empty())      &&
    5857         (childIndex >= 0)      ) {
     58
    5959        lib = getObject_Lib(libIndex);
    6060
     
    6464
    6565        if (lib) {
    66             retLib = rpChildren(lib,path,child);
     66            retLib = lib->children(path,child);
    6767            retLibIndex = storeObject_Lib(retLib);
    6868            if (retLibIndex) {
Note: See TracChangeset for help on using the changeset viewer.