A MATLAB file open for reading data.
Access variables with var(), and get a list of variables with getVarInfoList().
This class is in fact a wrapper for MatIO C function calls. This class owns a mat_t pointer to an open file, which is open in the constructor and closed in the destructor.
- Note
- This C++ class is not copyable. You may pass it by value everywhere though as if it were copyable, because of C++11 move semantics.
Definition at line 201 of file ezmatio.h.
Var Tomographer::MAT::File::var |
( |
const std::string |
varname, |
|
|
bool |
load_data = true |
|
) |
| |
|
inline |
Find a variable by name.
This returns a Var object with the information corresponding to the given variable.
If load_data is true
(the default), then the returned Var object also contains the variable data. Otherwise, it just contains the information about the type, dimensions, etc.
Definition at line 1102 of file ezmatio.h.