eVaf
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 
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 
154 
155 };
156 
157 } // namespace eVaf::Common
158 } // namespace eVaf
159 
160 #endif // inifile.h
#define COMMON_EXPORT
Definition: libcommon.h:27
Internal implementation of the IniFile class.
Definition: inifile_p.h:115
Global eVaf namespace.
Definition: engine.h:37
Class for reading and writing parameter values in INI files.
Definition: inifile.h:81