My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
MatArchiveConvFn.h
Go to the documentation of this file.
1 // $Id: MatArchiveConvFn.h,v 1.2 2010/03/03 18:23:12 eml Exp $
2 
3 #ifndef GCP_MATLAB_MATARCHIVECONVFN_H
4 #define GCP_MATLAB_MATARCHIVECONVFN_H
5 
16 #include "gcp/util/common/DataType.h"
17 #include "gcp/util/common/RegDescription.h"
18 
19 #include "gcp/matlab/common/MexHandler.h"
20 
21 #include <iostream>
22 #include <valarray>
23 
24 
25 #define MAT_ARC_CONV_FN(fn) void (fn)(gcp::util::RegDescription& reg, gcp::matlab::MexHandler::MxArray& array, unsigned char* raw, double* cal, unsigned& iFrame, unsigned& nFrame, unsigned& nEl, unsigned int* cInds, unsigned int* mInds)
26 
27 namespace gcp {
28  namespace matlab {
29 
31  public:
32 
33  static MAT_ARC_CONV_FN(toBool);
34  static MAT_ARC_CONV_FN(toUchar);
35  static MAT_ARC_CONV_FN(toChar);
36  static MAT_ARC_CONV_FN(toUshort);
37  static MAT_ARC_CONV_FN(toShort);
38  static MAT_ARC_CONV_FN(toUint);
39  static MAT_ARC_CONV_FN(toInt);
40  static MAT_ARC_CONV_FN(toUlong);
41  static MAT_ARC_CONV_FN(toLong);
42  static MAT_ARC_CONV_FN(toFloat);
43  static MAT_ARC_CONV_FN(toDouble);
44  static MAT_ARC_CONV_FN(toDate);
45  static MAT_ARC_CONV_FN(toString);
46 
47  static void setConvFn(gcp::util::DataType::Type outputType, RegAspect aspect, MAT_ARC_CONV_FN(**fptr));
48 
53 
57  MatArchiveConvFn(const MatArchiveConvFn& objToBeCopied);
58 
62  MatArchiveConvFn(MatArchiveConvFn& objToBeCopied);
63 
67  void operator=(const MatArchiveConvFn& objToBeAssigned);
68 
72  void operator=(MatArchiveConvFn& objToBeAssigned);
73 
77  friend std::ostream& operator<<(std::ostream& os, MatArchiveConvFn& obj);
78 
82  virtual ~MatArchiveConvFn();
83 
84  private:
85  }; // End class MatArchiveConvFn
86 
87  std::ostream& operator<<(std::ostream& os, MatArchiveConvFn& obj);
88 
89  } // End namespace matlab
90 } // End namespace gcp
91 
92 
93 
94 #endif // End #ifndef GCP_MATLAB_MATARCHIVECONVFN_H
friend std::ostream & operator<<(std::ostream &os, MatArchiveConvFn &obj)
void operator=(const MatArchiveConvFn &objToBeAssigned)
Definition: MatArchiveConvFn.cc:203
virtual ~MatArchiveConvFn()
Definition: MatArchiveConvFn.cc:228
Definition: MatArchiveConvFn.h:30
MatArchiveConvFn()
Definition: MatArchiveConvFn.cc:182