GlobalObjects
Loading...
Searching...
No Matches
IniKey.h
Go to the documentation of this file.
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
For each library, here 'IniFile' there is a type definition file.
#define __ini_file_export_dll
Definition IniFileTypes.h:54
Header for Line
A variable with value possibly also in a section like "Pixel=1024". Variable and value are separated ...
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 &)
This class turns lines of an INI file into objects of the types Line, Section or Key.
Definition IniLineFactory.h:61
Is a comment line, but also superclass for Section and Key.
Definition IniLine.h:62
Definition IniFile.h:52
LINE_TYPE
Definition IniFileTypes.h:120