IniFile
Lade ...
Suche ...
Keine Treffer
IniLine.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_INILINE_H
2#define INC_INILINE_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "IniFileTypes.h"
38#include "IniLineFactory.h"
39//-----------------------------------------------------------------------------
40#ifdef _MSC_VER
41 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
42 #pragma warning( disable : 4251 )
43#endif
44//-----------------------------------------------------------------------------
45namespace ini
46{
47 //---------------------------------------------------------------------------
62 {
63 private:
64 //============== Friends
65 //----------------------------------------------------------------------
66 friend class LineFactory;
67 friend class File;
68 friend class Section;
69 //----------------------------------------------------------------------
70
71 protected:
72 //============== Attribute ============
73 //-----------------------------------------------------------------------
83 std::string m_sText;
84 //-----------------------------------------------------------------------
95 //-----------------------------------------------------------------------
106 //-----------------------------------------------------------------------
107
108 public:
109 //============== Konstruktoren ============
110 //-----------------------------------------------------------------------
124 Line( const std::string & sCharLine );
125 //-----------------------------------------------------------------------
135 virtual ~Line();
136 //-----------------------------------------------------------------------
137
138 protected:
139 //-----------------------------------------------------------------------
155 Line( const std::string & sCharLine, LINE_TYPE eLineType );
156 //-----------------------------------------------------------------------
167 //-----------------------------------------------------------------------
168
169 private:
170 //============== Konstruktoren
171 //-----------------------------------------------------------------------
181 inline Line( const Line & );
182 //-----------------------------------------------------------------------
183
184 public:
185 //============== Methoden
186 //-----------------------------------------------------------------------
198 std::string getText() const;
199 //-----------------------------------------------------------------------
211 void setText( std::string sCharLine );
212 //-----------------------------------------------------------------------
225 //-----------------------------------------------------------------------
237 std::size_t getLineSizeWithEOL() const;
238 //-----------------------------------------------------------------------
239
240 protected:
241 //============== Methoden
242 //-----------------------------------------------------------------------
254 char * getTextWithEOL() const;
255 //-----------------------------------------------------------------------
256
257 private:
258 //============== Operatoren
259 //-----------------------------------------------------------------------
269 Line & operator= ( const Line & );
270 //-----------------------------------------------------------------------
271 };
272 //---------------------------------------------------------------------------
273 #ifdef _MSC_VER
274 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
275 #pragma warning( default : 4251 )
276 #endif
277 //---------------------------------------------------------------------------
278} // namespace ini
279//-----------------------------------------------------------------------------
280#endif
Für jede Bibliothek, hier 'IniFile' gibt es eine Typen-Datei.
#define __ini_file_export_dll
Definition IniFileTypes.h:54
Header für LineFactory
Eine INI-Datei beinhaltet Informationen für Programme.
Definition IniFile.h:298
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
LINE_TYPE m_eLineType
Definition IniLine.h:94
LINE_TYPE getType() const
void setText(std::string sCharLine)
std::string getText() const
char * getTextWithEOL() const
LineFactory m_LineFactory
Definition IniLine.h:105
std::string m_sText
Definition IniLine.h:83
virtual ~Line()
Line(const std::string &sCharLine)
Line(const std::string &sCharLine, LINE_TYPE eLineType)
Line(const Line &)
std::size_t getLineSizeWithEOL() const
Eine Sektion kann nur einmalig in einer INI-Datei vorkommen, steht in eckigen Klammern und hat in der...
Definition IniSection.h:71
Definition IniFile.h:52
LINE_TYPE
Definition IniFileTypes.h:120