GlobalObjects
Loading...
Searching...
No Matches
IniLineFactory.h
Go to the documentation of this file.
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
For each library, here 'IniFile' there is a type definition file.
#define __ini_file_export_dll
Definition IniFileTypes.h:68
This class turns lines of an INI file into objects of the types Line, Section or 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
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