00001
00005
00006
00007
00008
00009
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
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
00094 static const char* K_RightInDd = "RightEofHashTurnLeftAlignWidth";
00095
00096 #endif