QSS Solver GUI  4.5.3
modelinfo.hpp
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  This file is part of QSS Solver.
4 
5  QSS Solver is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  QSS Solver is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QSS Solver. If not, see <http://www.gnu.org/licenses/>.
17 
18  ******************************************************************************/
19 
20 #pragma once
21 
22 #include <QtGui>
23 
24 class ModelInfo {
25  public:
26  ModelInfo(QString fullname = QString());
27  ~ModelInfo() = default;
28  QString baseName();
29  bool dirty() { return _dirty; };
30  QString fullname() { return _fullname; };
31  bool init() { return _init; };
32  QString name() const;
33  QString path();
34  void setDirty(bool d) { _dirty = d; };
35  void setFullname(QString fn) { _fullname = fn; };
36  void setInit(bool d) { _init = d; };
37  bool isLogFile() const;
38 
39  private:
40  bool _dirty;
41  QString _fullname;
42  bool _init;
43 };
ModelInfo::_fullname
QString _fullname
Definition: modelinfo.hpp:58
ModelInfo::setInit
void setInit(bool d)
Definition: modelinfo.hpp:53
ModelInfo
Definition: modelinfo.hpp:24
ModelInfo::baseName
QString baseName()
Definition: modelinfo.cpp:31
ModelInfo::setFullname
void setFullname(QString fn)
Definition: modelinfo.hpp:52
ModelInfo::path
QString path()
Definition: modelinfo.cpp:43
ModelInfo::fullname
QString fullname()
Definition: modelinfo.hpp:47
ModelInfo::_init
bool _init
Definition: modelinfo.hpp:59
ModelInfo::init
bool init()
Definition: modelinfo.hpp:48
ModelInfo::ModelInfo
ModelInfo(QString fullname=QString())
Definition: modelinfo.cpp:24
ModelInfo::isLogFile
bool isLogFile() const
Definition: modelinfo.cpp:49
ModelInfo::_dirty
bool _dirty
Definition: modelinfo.hpp:57
ModelInfo::name
QString name() const
Definition: modelinfo.cpp:37
ModelInfo::dirty
bool dirty()
Definition: modelinfo.hpp:46
ModelInfo::~ModelInfo
~ModelInfo()=default
ModelInfo::setDirty
void setDirty(bool d)
Definition: modelinfo.hpp:51