QSS Solver GUI
4.5.3
modelinfo.cpp
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
#include <QFileInfo>
21
22
#include "
modelinfo.hpp
"
23
24
ModelInfo::ModelInfo
(QString fullname)
25
{
26
setFullname
(
fullname
);
27
_dirty
=
false
;
28
_init
=
true
;
29
}
30
31
QString
ModelInfo::baseName
()
32
{
33
QFileInfo fi(
_fullname
);
34
return
fi.baseName();
35
}
36
37
QString
ModelInfo::name
()
const
38
{
39
QFileInfo fi(
_fullname
);
40
return
fi.fileName();
41
}
42
43
QString
ModelInfo::path
()
44
{
45
QFileInfo fi(
_fullname
);
46
return
fi.absolutePath();
47
}
48
49
bool
ModelInfo::isLogFile
()
const
{
return
name
().endsWith(
".log"
); }
50
ModelInfo::_fullname
QString _fullname
Definition:
modelinfo.hpp:58
ModelInfo::baseName
QString baseName()
Definition:
modelinfo.cpp:31
ModelInfo::setFullname
void setFullname(QString fn)
Definition:
modelinfo.hpp:52
modelinfo.hpp
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::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.cpp
Generated on Fri Feb 21 2025 11:44:00 for QSS Solver GUI by
1.8.17