8#ifndef matfileInputOutput_hh
9#define matfileInputOutput_hh
14#include "matIO_1.5/matio.h"
23 typedef std::set<const std::type_info*> set_info;
42 virtual const char* what()
const throw();
46 virtual std::ostream&
info(std::ostream&
os)
const throw ();
48 std::string errorMessage_;
49 mutable std::string outputMessage_ ;
180 matvar_str_cur_.insert(
varName);
193 matvar_str_cur_.insert(
varName);
251 if (matvar_->rank > 2)
253 "At the moments just rank 2 objects are supported in MatfileIO");
284 return (mat_ !=
NULL);
291 return (matvar_str_.
isempty());
402 virtual std::ostream&
info(std::ostream&
os)
const;
412 std::string fileName_;
427 std::string matfileEnding_(
const std::string&
filename);
490 void add_(
const std::vector<T> &vec,
const std::string&
varName,
536 void add_(
const int scalar,
const std::string&
str,
693 return (
var->isComplex == 0);
699 return (
var->isComplex != 0);
749 return (
var->dims[0] ==
var->dims[1]) && (
var->rank == 2);
#define conceptsException(exc)
bool exist(F val) const
Returns true, if a value is in the set.
bool isempty() const
Returns true, if set is empty.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
MatfileIOError(const std::string &file, const unsigned int line, const std::string &function, const std::string &errorMessage)
void assertQuadratic(const std::string &varName) const
bool exists(const std::string &varName) const
bool isCmplx(const std::string &varName) const
bool isDense(const std::string &varName) const
void get(T &u, const std::string varName)
void add(const T &u, const std::string varName, enum matio_compression compress=MAT_COMPRESSION_NONE)
std::string filename() const
void assertVector(const std::string &varName) const
bool isReal(const std::string &varName) const
bool isUint(const std::string &varName) const
MatfileIO(const std::string filename)
bool isSparse(const std::string &varName) const
void assertCmplx(const std::string &varName) const
bool remove(const std::string varName)
void assertExistence(const std::string &varName) const
bool isScalar(const std::string &varName) const
bool isInt(const std::string &varName) const
virtual std::ostream & info(std::ostream &os) const
void overWrite(bool toOverWrite)
uint lengthVector(const std::string &varName) const
Set< F > makeSet(uint n, const F &first,...)
std::complex< Real > Cmplx
Type for a complex number. It also depends on the setting of Real.