Changeset 125 for trunk/src/matlab


Ignore:
Timestamp:
Nov 4, 2005 3:19:11 PM (17 years ago)
Author:
dkearney
Message:

1) removed "as" string from c++'s element() function because
the function does not have the capacity to return anything
other than RpLibrary? Instances
2) changed get() functions in library module to return strings.
this change was propagated to matlab, octave, c, fortran, c++
bindings.
3) fixed rpFreeLibrary inside of c interface, now function accepts
a pointer to a pointer to RpLibrary? (lib) and sets *lib equal to
null
4) added doxygen target to makefile. (make docs), to get graphics
you need the program named dot (debian: apt-get install graphviz)
otherwise you will get errors for the portion of the proceedure
where it is trying to create the graphics.

File:
1 edited

Legend:

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

    r115 r125  
    33 *  INTERFACE: Matlab Rappture Library Source
    44 *
    5  *    nodeHandle = rpGet(libHandle,path)
     5 *    retStr = rpGet(libHandle,path)
    66 *
    77 * ======================================================================
     
    1919                 int nrhs, const mxArray *prhs[])
    2020{
    21     int         libIndex = 0;
     21    int         libIndex    = 0;
    2222    int         retLibIndex = 0;
    23     RpLibrary*  lib = NULL;
    24     RpLibrary*  retLib = NULL;
    25     char*       path = NULL;
     23    RpLibrary*  lib         = NULL;
     24    char*       path        = NULL;
     25    const char* retString  = NULL;
    2626
    2727    /* Check for proper number of arguments. */
     
    3939
    4040        if (lib) {
    41             retLib = rpGet(lib,path);
    42             retLibIndex = storeObject_Lib(retLib);
     41            retString = rpGet(lib,path);
    4342        }
    4443    }
    4544
    46     /* Set double scalar node handle to MATLAB mexFunction output*/
    47     plhs[0] = mxCreateDoubleScalar(retLibIndex);
     45    /* Set C-style string output_buf to MATLAB mexFunction output*/
     46    plhs[0] = mxCreateString(retString);
    4847
    4948    return;
Note: See TracChangeset for help on using the changeset viewer.