GlobalObjects
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IniLine.h
Go to the documentation of this file.
1#ifndef INC_INILINE_H
2#define INC_INILINE_H
3//-----------------------------------------------------------------------------
68//-----------------------------------------------------------------------------
69#include "IniFileTypes.h"
70#include "IniLineFactory.h"
71//-----------------------------------------------------------------------------
72#ifdef _MSC_VER
73 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
74 #pragma warning( disable : 4251 )
75#endif
76//-----------------------------------------------------------------------------
77namespace ini
78{
79 //---------------------------------------------------------------------------
94 {
95 private:
96 //============== Friends
97 //----------------------------------------------------------------------
98 friend class LineFactory;
99 friend class File;
100 friend class Section;
101 //----------------------------------------------------------------------
102
103 protected:
104 //============== Attribute ============
105 //-----------------------------------------------------------------------
115 std::string m_sText;
116 //-----------------------------------------------------------------------
127 //-----------------------------------------------------------------------
138 //-----------------------------------------------------------------------
139
140 public:
141 //============== Konstruktoren ============
142 //-----------------------------------------------------------------------
156 Line( const std::string & sCharLine );
157 //-----------------------------------------------------------------------
167 virtual ~Line();
168 //-----------------------------------------------------------------------
169
170 protected:
171 //-----------------------------------------------------------------------
187 Line( const std::string & sCharLine, LINE_TYPE eLineType );
188 //-----------------------------------------------------------------------
199 //-----------------------------------------------------------------------
200
201 private:
202 //============== Konstruktoren
203 //-----------------------------------------------------------------------
213 inline Line( const Line & );
214 //-----------------------------------------------------------------------
215
216 public:
217 //============== Methoden
218 //-----------------------------------------------------------------------
230 std::string getText() const;
231 //-----------------------------------------------------------------------
243 void setText( std::string sCharLine );
244 //-----------------------------------------------------------------------
257 //-----------------------------------------------------------------------
269 std::size_t getLineSizeWithEOL() const;
270 //-----------------------------------------------------------------------
271
272 protected:
273 //============== Methoden
274 //-----------------------------------------------------------------------
286 char * getTextWithEOL() const;
287 //-----------------------------------------------------------------------
288
289 private:
290 //============== Operatoren
291 //-----------------------------------------------------------------------
301 Line & operator= ( const Line & );
302 //-----------------------------------------------------------------------
303 };
304 //---------------------------------------------------------------------------
305 #ifdef _MSC_VER
306 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
307 #pragma warning( default : 4251 )
308 #endif
309 //---------------------------------------------------------------------------
310} // namespace ini
311//-----------------------------------------------------------------------------
312#endif
For each library, here 'IniFile' there is a type definition file.
#define __ini_file_export_dll
Definition IniFileTypes.h:85
Header for LineFactory
friend class Section
Definition IniLine.h:100
LINE_TYPE m_eLineType
Definition IniLine.h:126
LINE_TYPE getType() const
void setText(std::string sCharLine)
std::string getText() const
char * getTextWithEOL() const
friend class File
Definition IniLine.h:99
friend class LineFactory
Definition IniLine.h:98
LineFactory m_LineFactory
Definition IniLine.h:137
std::string m_sText
Definition IniLine.h:115
virtual ~Line()
Line(const std::string &sCharLine)
Line(const std::string &sCharLine, LINE_TYPE eLineType)
Line(const Line &)
std::size_t getLineSizeWithEOL() const
Definition IniFile.h:84
LINE_TYPE
Definition IniFileTypes.h:151