constraint_app
/home/jbrooksh/drc/software/perception/constraint_app/src/matlab_mex/cam_getCounter.cpp
Go to the documentation of this file.
00001 #include "mex.h"
00002 #include "ConstraintApp.h"
00003 
00004 void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
00005 {
00006   if ( nrhs != 1 ) {
00007     mexErrMsgTxt("requires exactly 1 parameters"); 
00008   }
00009 
00010   ConstraintApp* app(*(ConstraintApp**)mxGetData(prhs[0]));
00011 
00012   if ( nlhs != 1 ) {
00013     mexErrMsgTxt("returns exactly 1 parameter");
00014   }
00015 
00016   plhs[0] = mxCreateDoubleScalar((double) app->getCounter());
00017 }
 All Classes Files Functions Variables Typedefs