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/rpLibElement.cc

    r154 r162  
    2929 */
    3030
    31 
    3231void mexFunction(int nlhs, mxArray *plhs[],
    3332                 int nrhs, const mxArray *prhs[])
     
    3837    RpLibrary*  lib = NULL;
    3938    RpLibrary*  retLib = NULL;
    40     char*       path = NULL;
     39    std::string path = "";
    4140
    4241    /* Check for proper number of arguments. */
    43     if (nrhs != 2)
     42    if (nrhs != 2) {
    4443        mexErrMsgTxt("Two input required.");
    45     else if (nlhs > 2)
    46         mexErrMsgTxt("Too many output arguments.");
     44    }
    4745
    4846    libIndex = getIntInput(prhs[0]);
    4947    path = getStringInput(prhs[1]);
    5048
    51     /* Call the C subroutine. */
    52     if ( (libIndex > 0) && (path) ) {
     49    /* Call the C++ subroutine. */
     50    if ( (libIndex > 0) && (!path.empty()) ) {
    5351        lib = getObject_Lib(libIndex);
    5452        if (lib) {
    55             retLib = rpElement(lib,path);
     53            retLib = lib->element(path);
    5654            retLibIndex = storeObject_Lib(retLib);
    5755            if (retLibIndex) {
Note: See TracChangeset for help on using the changeset viewer.