Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

matfile/matfile_concepts/src/MatrixInfo.hh
Go to the documentation of this file.
00001 /*
00002     This file is part of matfile.
00003 
00004     Copyright (C) 2010-2011 Andrea Arteaga <arteagaa@student.ethz.ch>
00005 
00006     matfile is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU Lesser General Public License as published
00008     by the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 
00011     matfile is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU Lesser General Public License for more details.
00015 
00016     You should have received a copy of the GNU Lesser General Public License
00017     along with matfile.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 
00020 #ifndef MATRIXINFO_HPP
00021 #define MATRIXINFO_HPP
00022 
00030 struct MatrixInfo {
00031   friend class InputDevice;
00032 
00033 private:
00034   miMATRIX_class _class;
00035   bool _isComplex;
00036   std::vector<miINT32_t> _dimensions;
00037   std::string _name;
00038   std::string _buffer;
00039 public:
00046   miMATRIX_class getClass() const {
00047     return _class;
00048   }
00049 
00055   std::string getClassString() const {
00056     return class_to_string(_class);
00057   }
00058 
00064   bool isComplex() const {
00065     return _isComplex;
00066   }
00067 
00075   const std::vector<miINT32_t>& getDimensions() const {
00076     return _dimensions;
00077   }
00078 
00087   const std::string& getName() const {
00088     return _name;
00089   }
00090 
00098   const std::string& getBuffer() const {
00099     return _buffer;
00100   }
00101 };
00102 
00103 #endif /* MATRIXINFO_HPP */

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)