IniFile
Lade ...
Suche ...
Keine Treffer
IniKey.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_INIKEY_H
2#define INC_INIKEY_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "IniFileTypes.h"
38#include "IniLine.h"
39//-----------------------------------------------------------------------------
40namespace ini
41{
42 //---------------------------------------------------------------------------
59 {
60 private:
61 //============== Friends
62 //-----------------------------------------------------------------------
63 friend class LineFactory;
64 //-----------------------------------------------------------------------
65
66 public:
67 //============== Konstruktoren ============
68 //-----------------------------------------------------------------------
82 Key( const std::string & sCharLine );
83 //-----------------------------------------------------------------------
93 virtual ~Key ();
94 //-----------------------------------------------------------------------
95
96 protected:
97 //-----------------------------------------------------------------------
115 Key( const std::string & sCharLine, LINE_TYPE eLineType );
116 //-----------------------------------------------------------------------
127 //-----------------------------------------------------------------------
128
129 private:
130 //============== Konstruktoren
131 //-----------------------------------------------------------------------
141 Key( const Key & );
142 //-----------------------------------------------------------------------
143
144 public:
145 //============== Methoden
146 //-----------------------------------------------------------------------
158 std::string getKeyName() const;
159 //-----------------------------------------------------------------------
178 void setKeyName( const std::string & sName );
179 //-----------------------------------------------------------------------
191 std::string getKeyValue() const ;
192 //-----------------------------------------------------------------------
210 void setKeyValue ( const std::string & sValue );
211 //-----------------------------------------------------------------------
212
213 private:
214 //============== Operatoren
215 //-----------------------------------------------------------------------
225 Key & operator= ( const Key & );
226 //-----------------------------------------------------------------------
227 };
228 //---------------------------------------------------------------------------
229} // namespace ini
230//-----------------------------------------------------------------------------
231#endif
Für jede Bibliothek, hier 'IniFile' gibt es eine Typen-Datei.
#define __ini_file_export_dll
Definition IniFileTypes.h:54
Header für Line
Eine Variable mit Wert eventuell auch in einer Sektion wie z.B.: "Pixel=1024". Variable und Wert sind...
Definition IniKey.h:59
Key(const std::string &sCharLine)
std::string getKeyValue() const
Key(const std::string &sCharLine, LINE_TYPE eLineType)
std::string getKeyName() const
virtual ~Key()
void setKeyValue(const std::string &sValue)
void setKeyName(const std::string &sName)
Key(const Key &)
Diese Klasse macht aus Zeilen einer INI-Datei Objekte der Typen Line, Section oder Key.
Definition IniLineFactory.h:61
Ist eine Kommentartzeile, aber auch Oberklasse für Section und Key.
Definition IniLine.h:62
Definition IniFile.h:52
LINE_TYPE
Definition IniFileTypes.h:120