eVaf
Main Page
Namespaces
Classes
Files
File List
File Members
inifile.h
Go to the documentation of this file.
1
20
#ifndef __COMMON_INIFILE_H
21
#define __COMMON_INIFILE_H
22
23
#include "
libcommon.h
"
24
25
#include <QString>
26
#include <QVariant>
27
#include <QIODevice>
28
29
namespace
eVaf
{
30
namespace
Common {
31
namespace
Internal {
32
class
IniFileImpl;
33
}
// namespace eVaf::Common::Internal
34
81
class
COMMON_EXPORT
IniFile
82
{
83
public
:
84
90
IniFile
(QString
const
& fileName, QIODevice::OpenMode mode = QIODevice::ReadWrite);
91
93
~
IniFile
();
94
102
bool
isValid()
const
;
103
109
QString errorString()
const
;
110
132
QVariant getValue(QByteArray
const
& paramName, QVariant
const
& defaultValue = QVariant::Invalid);
133
147
bool
setValue(QByteArray
const
& paramName, QVariant
const
& value);
148
149
150
private
:
151
153
Internal::IniFileImpl
* d;
154
155
};
156
157
}
// namespace eVaf::Common
158
}
// namespace eVaf
159
160
#endif // inifile.h
COMMON_EXPORT
#define COMMON_EXPORT
Definition:
libcommon.h:27
libcommon.h
eVaf::Common::Internal::IniFileImpl
Internal implementation of the IniFile class.
Definition:
inifile_p.h:115
eVaf
Global eVaf namespace.
Definition:
engine.h:37
eVaf::Common::IniFile
Class for reading and writing parameter values in INI files.
Definition:
inifile.h:81
libs
Common
inifile.h
Generated by
1.8.11