CARMA C++
MexParser.h
Go to the documentation of this file.
1 #ifndef SZA_MATLAB_MEXPARSER_H
2 #define SZA_MATLAB_MEXPARSER_H
3 
11 #include "mex.h"
12 #include "matrix.h"
13 
14 namespace sza {
15  namespace util {
16 
17  class MexParser {
18  public:
19 
23  MexParser(const mxArray*);
24 
28  virtual ~MexParser();
29 
30  // Return the dimensionality of an mxArray
31 
32  int* getDimensions();
33 
34  int getNumberOfDimensions();
35 
36  void printDimensions();
37 
38  private:
39 
40  mxArray* array_;
41 
42  }; // End class MexParser
43 
44  } // End namespace util
45 } // End namespace sza
46 
47 #endif // End #ifndef SZA_MATLAB_MEXPARSER_H