IniFile
Lade ...
Suche ...
Keine Treffer
IniLineFactory.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_INILINEFACTORY_H
2#define INC_INILINEFACTORY_H
3//-----------------------------------------------------------------------------
51//-----------------------------------------------------------------------------
52#include "IniFileTypes.h"
53//-----------------------------------------------------------------------------
54namespace ini
55{
56 //-----------------------------------------------------------------------------
58 class Line;
59 //-----------------------------------------------------------------------------
76 {
77 public:
78 //============== Konstruktoren ============
79 //-----------------------------------------------------------------------
90 //-----------------------------------------------------------------------
100 virtual ~LineFactory();
101 //-----------------------------------------------------------------------
102
103 private:
104 //============== Konstruktoren ============
105 //-----------------------------------------------------------------------
115 inline LineFactory( const LineFactory & );
116 //-----------------------------------------------------------------------
117
118 public:
119 //============== Methoden
120 //-----------------------------------------------------------------------
144 int getIniLine( Line *& prIniLine, std::string sCharLine ) const;
145 //-----------------------------------------------------------------------
159 void trim( std::string & rsCharLine ) const;
160 //-----------------------------------------------------------------------
174 LINE_TYPE getLineType( std::string sCharLine ) const;
175 //-----------------------------------------------------------------------
176
177 private:
178 //============== Methoden
179 //-----------------------------------------------------------------------
194 bool isComment( std::string sCharLine ) const;
195 //-----------------------------------------------------------------------
210 bool isSection( std::string sCharLine ) const;
211 //-----------------------------------------------------------------------
226 bool isKey( std::string sCharLine ) const;
227 //-----------------------------------------------------------------------
228
229 private:
230 //============== Operatoren
231 //-----------------------------------------------------------------------
242 //-----------------------------------------------------------------------
243 }; // class __ini_file_export_dll LineFactory
244 //---------------------------------------------------------------------------
245} // namespace ini
246//-----------------------------------------------------------------------------
247#endif
Für jede Bibliothek, hier 'IniFile' gibt es eine Typen-Datei.
#define __ini_file_export_dll
Definition IniFileTypes.h:68
Diese Klasse macht aus Zeilen einer INI-Datei Objekte der Typen Line, Section oder Key.
Definition IniLineFactory.h:76
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:77
Definition IniFile.h:67
LINE_TYPE
Definition IniFileTypes.h:134