MexParams.h

Go to the documentation of this file.
00001 
00005 // This file is part of the SaliencyToolbox - Copyright (C) 2006-2007
00006 // by Dirk B. Walther and the California Institute of Technology.
00007 // See the enclosed LICENSE.TXT document for the license agreement. 
00008 // More information about this project is available at: 
00009 // http://www.saliencytoolbox.net
00010 
00011 #ifndef MEXPARAMS_H_DEFINED
00012 #define MEXPARAMS_H_DEFINED
00013 
00014 #include "mexLog.h"
00015 
00016 // ######################################################################
00018 
00022 class MexParams
00023 {
00024 public:
00026 
00039   MexParams(const int minOutput, const int maxOutput, 
00040             const int numOutput, mxArray* plhs[], 
00041             const int minInput , const int maxInput, 
00042             const int numInput, const mxArray *prhs[]);
00043   
00045 
00046   ~MexParams();
00047   
00049 
00052   void setOutput(const int number, mxArray* out);
00053   
00055 
00058   void setScalarOutput(const int number, const double val);
00059   
00061 
00062   mxArray* getOutput(const int number);
00063   
00065 
00066   double getScalarOutput(const int number);
00067   
00069 
00070   const mxArray* getInput(const int number) const;
00071   
00073 
00074   const double getScalarInput(const int number) const;
00075 
00077   int getNumberOutput() const;
00078   
00080   int getNumberInput() const;
00081   
00082 private:
00083   // don't want a copy constructor
00084   MexParams(const MexParams&);
00085 
00086 protected:
00087   const int itsNumOutput;
00088   mxArray **itsOutput;
00089   const int itsNumInput;   
00090   const mxArray **itsInput;    
00091 };
00092 
00093 // needed by the constructor
00094 static const char* K_RightInDd = "RightEofHashTurnLeftAlignWidth";
00095 
00096 #endif

Generated on Fri Sep 7 13:09:49 2007 for SaliencyToolbox by  doxygen 1.5.2