5252 */
5353
5454#include < Core/Matlab/matfilebase.h>
55+ #include < Core/Matlab/matlabarray.h>
5556#include < Core/Logging/LoggerFwd.h>
5657#include < Core/Datatypes/DatatypeFwd.h>
5758#include < Core/Matlab/share.h>
@@ -130,28 +131,28 @@ class SCISHARE matlabconverter : public matfilebase
130131 // These key value pairs are not supported yet, like in the rest of SCIRun
131132
132133 matlabconverter ();
133- matlabconverter (SCIRun::Core::Logging::LoggerHandle pr);
134+ explicit matlabconverter (SCIRun::Core::Logging::LoggerHandle pr);
134135
135136 // SET CONVERTER OPTIONS:
136137 // Data type sets the export type of the data
137- inline void setdatatype (matlabarray::mitype dataformat);
138+ void setdatatype (matlabarray::mitype dataformat);
138139 // Index base sets the index base used for indices in for example geometries
139- inline void setindexbase (int indexbase);
140+ void setindexbase (int indexbase);
140141 // In a numeric matrix all data will be stripped and the data will be saved as
141142 // a plain dense or sparse matrix.
142- inline void setdisabletranspose (bool dt);
143+ void setdisabletranspose (bool dt);
143144
144- inline void converttonumericmatrix ();
145- inline void converttostructmatrix ();
145+ void converttonumericmatrix ();
146+ void converttostructmatrix ();
146147
147148 // The following options are for controlling the conversion to bundles
148149 // In case prefernrrds is set, numerical data is converted into nrrds
149150 // only sparse matrices become matrices. If prefermatrices is set, the
150151 // behavior is opposite and only ND (N>2) matrices become nrrds.
151152
152- inline void prefernrrds ();
153- inline void preferfields ();
154- inline void prefermatrices ();
153+ void prefernrrds ();
154+ void preferfields ();
155+ void prefermatrices ();
155156
156157 // Since Bundles can be bundled, a choice needs to be made whether structured
157158 // Matlab matrices should become bundles or if possible should be converted into
@@ -162,8 +163,8 @@ class SCISHARE matlabconverter : public matfilebase
162163 // resort it will be a bundle. Note that the comparison is done to see whether the
163164 // required number of fields is there if so other fields are ignored.
164165
165- inline void preferbundles ();
166- inline void prefersciobjects ();
166+ void preferbundles ();
167+ void prefersciobjects ();
167168#ifdef SCIRUN4_CODE_TO_BE_ENABLED_LATER
168169 // SCIRun STRINGS
169170 int sciStringCompatible (const matlabarray& mlarray, std::string& infostring, bool postremarks = true );
@@ -205,9 +206,9 @@ class SCISHARE matlabconverter : public matfilebase
205206
206207 SCIRun::Core::Logging::LoggerHandle pr_;
207208
208- inline void error (const std::string& error);
209- inline void warning (const std::string& warning);
210- inline void remark (const std::string& remark);
209+ void error (const std::string& error);
210+ void warning (const std::string& warning);
211+ void remark (const std::string& remark);
211212
212213 // FUNCTION FOR TRANSLATING THE CONTENTS OF A MATRIX (THE NUMERIC PART OF THE DATA)
213214 void sciMatrixTOmlMatrix (SCIRun::Core::Datatypes::MatrixHandle &scimat,matlabarray &mlmat);
@@ -239,74 +240,6 @@ class SCISHARE matlabconverter : public matfilebase
239240
240241};
241242
242- inline void matlabconverter::error (const std::string& error)
243- {
244- if (pr_) pr_->error (error);
245- }
246-
247- inline void matlabconverter::warning (const std::string& warning)
248- {
249- if (pr_) pr_->warning (warning);
250- }
251-
252- inline void matlabconverter::remark (const std::string& remark)
253- {
254- if (pr_) pr_->remark (remark);
255- }
256-
257- inline void matlabconverter::setdatatype (matlabarray::mitype dataformat)
258- {
259- datatype_ = dataformat;
260- }
261-
262- inline void matlabconverter::setindexbase (int indexbase)
263- {
264- indexbase_ = indexbase;
265- }
266-
267- inline void matlabconverter::converttonumericmatrix ()
268- {
269- numericarray_ = true ;
270- }
271-
272- inline void matlabconverter::converttostructmatrix ()
273- {
274- numericarray_ = false ;
275- }
276-
277- inline void matlabconverter::setdisabletranspose (bool disabletranspose)
278- {
279- disable_transpose_ = disabletranspose;
280- }
281-
282-
283- inline void matlabconverter::preferfields ()
284- {
285- prefer_fields = true ;
286- prefer_nrrds = false ;
287- }
288-
289- inline void matlabconverter::prefernrrds ()
290- {
291- prefer_nrrds = true ;
292- prefer_fields = false ;
293- }
294-
295- inline void matlabconverter::prefermatrices ()
296- {
297- prefer_nrrds = false ;
298- prefer_fields = false ;
299- }
300-
301- inline void matlabconverter::preferbundles ()
302- {
303- prefer_bundles = true ;
304- }
305-
306- inline void matlabconverter::prefersciobjects ()
307- {
308- prefer_bundles = false ;
309- }
310243
311244}} // end namespace
312245
0 commit comments