IniFile
Lade ...
Suche ...
Keine Treffer
IniLineFactory.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_INILINEFACTORY_H
2#define INC_INILINEFACTORY_H
3//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "IniFileTypes.h"
38//-----------------------------------------------------------------------------
39namespace ini
40{
41 //-----------------------------------------------------------------------------
43 class Line;
44 //-----------------------------------------------------------------------------
61 {
62 public:
63 //============== Konstruktoren ============
64 //-----------------------------------------------------------------------
75 //-----------------------------------------------------------------------
85 virtual ~LineFactory();
86 //-----------------------------------------------------------------------
87
88 private:
89 //============== Konstruktoren ============
90 //-----------------------------------------------------------------------
100 inline LineFactory( const LineFactory & );
101 //-----------------------------------------------------------------------
102
103 public:
104 //============== Methoden
105 //-----------------------------------------------------------------------
129 int getIniLine( Line *& prIniLine, std::string sCharLine ) const;
130 //-----------------------------------------------------------------------
144 void trim( std::string & rsCharLine ) const;
145 //-----------------------------------------------------------------------
159 LINE_TYPE getLineType( std::string sCharLine ) const;
160 //-----------------------------------------------------------------------
161
162 private:
163 //============== Methoden
164 //-----------------------------------------------------------------------
179 bool isComment( std::string sCharLine ) const;
180 //-----------------------------------------------------------------------
195 bool isSection( std::string sCharLine ) const;
196 //-----------------------------------------------------------------------
211 bool isKey( std::string sCharLine ) const;
212 //-----------------------------------------------------------------------
213
214 private:
215 //============== Operatoren
216 //-----------------------------------------------------------------------
227 //-----------------------------------------------------------------------
228 }; // class __ini_file_export_dll LineFactory
229 //---------------------------------------------------------------------------
230} // namespace ini
231//-----------------------------------------------------------------------------
232#endif
Für jede Bibliothek, hier 'IniFile' gibt es eine Typen-Datei.
#define __ini_file_export_dll
Definition IniFileTypes.h:54
Diese Klasse macht aus Zeilen einer INI-Datei Objekte der Typen Line, Section oder Key.
Definition IniLineFactory.h:61
LineFactory(const LineFactory &)
virtual ~LineFactory()
int getIniLine(Line *&prIniLine, std::string sCharLine) const
LINE_TYPE getLineType(std::string sCharLine) const
bool isKey(std::string sCharLine) const
bool isSection(std::string sCharLine) const
bool isComment(std::string sCharLine) const
LineFactory & operator=(const LineFactory &)
void trim(std::string &rsCharLine) const
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