Ignore:
Timestamp:
Jan 31, 2006, 9:15:36 AM (19 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/rpLibChildrenByType.cc

    r154 r162  
    4141    RpLibrary*  child = NULL;
    4242    RpLibrary*  retLib = NULL;
    43     char*       path = NULL;
    44     char*       type = NULL;
     43    std::string path = "";
     44    std::string type = "";
    4545
    4646    /* Check for proper number of arguments. */
    47     if (nrhs != 4)
     47    if (nrhs != 4) {
    4848        mexErrMsgTxt("Four input required.");
    49     else if (nlhs > 2)
    50         mexErrMsgTxt("Too many output arguments.");
     49    }
    5150
    5251    libIndex = getIntInput(prhs[0]);
     
    5554    type = getStringInput(prhs[3]);
    5655
    57     /* Call the C subroutine. */
    58     if ( (libIndex > 0) && (path) && (type) ) {
     56    /* Call the C++ subroutine. */
     57    if ( (libIndex > 0) && (!path.empty()) && (!type.empty()) ) {
    5958        lib = getObject_Lib(libIndex);
    6059
     
    6463
    6564        if (lib) {
    66             retLib = rpChildrenByType(lib,path,child,type);
     65            retLib = lib->children(path,child,type);
    6766            retLibIndex = storeObject_Lib(retLib);
    6867            if (retLibIndex) {
Note: See TracChangeset for help on using the changeset viewer.