GlobalObjects
Lade ...
Suche ...
Keine Treffer
IniSection.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_INISECTION_H
2#define INC_INISECTION_H
3//-----------------------------------------------------------------------------
68//-----------------------------------------------------------------------------
69#include "IniFileTypes.h"
70#include "IniLine.h"
71#include "PtlTDVList.h"
72//-----------------------------------------------------------------------------
74namespace eut
75{
76 class Blob;
77}
78//-----------------------------------------------------------------------------
79namespace ini
80{
81 //---------------------------------------------------------------------------
82 #ifdef _MSC_VER
83 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von Clients von Klasse 'Typ2' verwendet wird */
84 #pragma warning( disable : 4251 )
85 #endif
86 //---------------------------------------------------------------------------
103 {
104 private:
105 //============== Friends
106 //------------------------------------------------------------------------
107 friend class LineFactory;
108 friend class File;
109 //------------------------------------------------------------------------
110
111 //============== Attribute ============
112 //-----------------------------------------------------------------------
123 //-----------------------------------------------------------------------
124
125 public:
126 //============== Konstruktoren ============
127 //-----------------------------------------------------------------------
141 Section( const std::string & sCharLine );
142 //-----------------------------------------------------------------------
152 virtual ~Section();
153 //-----------------------------------------------------------------------
154
155 protected:
156 //-----------------------------------------------------------------------
174 Section( const std::string & sCharLine, LINE_TYPE eLineType );
175 //-----------------------------------------------------------------------
186 //-----------------------------------------------------------------------
187
188 private:
189 //============== Konstruktoren
190 //-----------------------------------------------------------------------
200 Section( const Section & );
201 //-----------------------------------------------------------------------
202
203 public:
204 //============== Methoden
205 //-----------------------------------------------------------------------
217 std::string getName() const;
218 //-----------------------------------------------------------------------
230 void setName( const std::string & sName);
231 //-----------------------------------------------------------------------
269 int getSectionLine( Line *& prRetVal, std::size_t nPosition, ptl::SeekMode eMode );
270 //-----------------------------------------------------------------------
303 int insertSectionLine( Line * pIniLine,
304 ptl::InsertPosition eInsertPosition = ptl::InsertCURRENT,
305 ptl::VH eBeforeBehind = ptl::BEHIND );
306 //-----------------------------------------------------------------------
331 //-----------------------------------------------------------------------
344 //-----------------------------------------------------------------------
358 std::size_t getSectionSize();
359 //-----------------------------------------------------------------------
391 int getKeyLine( Line *& prRetVal, const std::string & sValueVariable );
392 //-----------------------------------------------------------------------
410 int getKeyValue( std::string & rsValue, const std::string sValueVariable );
411 //-----------------------------------------------------------------------
412
413 protected:
414 //============== Methoden
415 //-----------------------------------------------------------------------
431 //-----------------------------------------------------------------------
432
433 private:
434 //============== Operatoren
435 //-----------------------------------------------------------------------
445 Section & operator= ( const Section & );
446 //-----------------------------------------------------------------------
447 };
448 //---------------------------------------------------------------------------
449 #ifdef _MSC_VER
450 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von Clients von Klasse 'Typ2' verwendet wird */
451 #pragma warning( default : 4251 )
452 #endif
453 //---------------------------------------------------------------------------
454} // namespace ini
455//-----------------------------------------------------------------------------
456#endif
Für jede Bibliothek, hier 'IniFile' gibt es eine Typen-Datei.
#define __ini_file_export_dll
Definition IniFileTypes.h:85
Header für Line
Header für TDVList
Diese Klasse erlaubt das Bearbeiten eines Blobs (einfügen, kopieren, durchsuchen etc....
Definition EuBlob.h:92
Line(const std::string &sCharLine)
std::string getName() const
int getKeyLine(Line *&prRetVal, const std::string &sValueVariable)
int insertSectionInBlob(eut::Blob &rBlob)
std::size_t getSectionSize()
Section(const std::string &sCharLine, LINE_TYPE eLineType)
int removeSectionLine(ptl::ElementPosition eFirstLastCurrent=ptl::CURRENT_POS)
virtual ~Section()
friend class File
Definition IniSection.h:108
ptl::TDVList< Line > m_SektionList
Definition IniSection.h:122
void removeAllSectionLines()
friend class LineFactory
Definition IniSection.h:107
int getKeyValue(std::string &rsValue, const std::string sValueVariable)
Section(const Section &)
int insertSectionLine(Line *pIniLine, ptl::InsertPosition eInsertPosition=ptl::InsertCURRENT, ptl::VH eBeforeBehind=ptl::BEHIND)
int getSectionLine(Line *&prRetVal, std::size_t nPosition, ptl::SeekMode eMode)
Section(const std::string &sCharLine)
void setName(const std::string &sName)
Template-Listenklasse für Zeiger auf Objekte.
Definition PtlTDVList.h:130
Definition IniFile.h:79
Definition IniFile.h:84
LINE_TYPE
Definition IniFileTypes.h:151
InsertPosition
Definition PtlListTypes.h:218
@ InsertCURRENT
Definition PtlListTypes.h:221
VH
Definition PtlListTypes.h:174
@ BEHIND
Definition PtlListTypes.h:176
ElementPosition
Definition PtlListTypes.h:137
@ CURRENT_POS
Definition PtlListTypes.h:140
SeekMode
Definition PtlListTypes.h:386