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//-----------------------------------------------------------------------------
51//-----------------------------------------------------------------------------
52#include "IniFileTypes.h"
53#include "IniLine.h"
54//-----------------------------------------------------------------------------
55namespace ini
56{
57 //---------------------------------------------------------------------------
74 {
75 private:
76 //============== Friends
77 //-----------------------------------------------------------------------
78 friend class LineFactory;
79 //-----------------------------------------------------------------------
80
81 public:
82 //============== Konstruktoren ============
83 //-----------------------------------------------------------------------
97 Key( const std::string & sCharLine );
98 //-----------------------------------------------------------------------
108 virtual ~Key ();
109 //-----------------------------------------------------------------------
110
111 protected:
112 //-----------------------------------------------------------------------
130 Key( const std::string & sCharLine, LINE_TYPE eLineType );
131 //-----------------------------------------------------------------------
142 //-----------------------------------------------------------------------
143
144 private:
145 //============== Konstruktoren
146 //-----------------------------------------------------------------------
156 Key( const Key & );
157 //-----------------------------------------------------------------------
158
159 public:
160 //============== Methoden
161 //-----------------------------------------------------------------------
173 std::string getKeyName() const;
174 //-----------------------------------------------------------------------
193 void setKeyName( const std::string & sName );
194 //-----------------------------------------------------------------------
206 std::string getKeyValue() const ;
207 //-----------------------------------------------------------------------
225 void setKeyValue ( const std::string & sValue );
226 //-----------------------------------------------------------------------
227
228 private:
229 //============== Operatoren
230 //-----------------------------------------------------------------------
240 Key & operator= ( const Key & );
241 //-----------------------------------------------------------------------
242 };
243 //---------------------------------------------------------------------------
244} // namespace ini
245//-----------------------------------------------------------------------------
246#endif
For each library, here 'IniFile' there is a type definition file.
#define __ini_file_export_dll
Definition IniFileTypes.h:68
Header for Line
A variable with value possibly also in a section like "Pixel=1024". Variable and value are separated ...
Definition IniKey.h:74
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:76
Is a comment line, but also superclass for Section and Key.
Definition IniLine.h:77
Definition IniFile.h:67
LINE_TYPE
Definition IniFileTypes.h:134