DCL 4.0
Loading...
Searching...
No Matches
IniLine Struct Reference

Public Member Functions

 IniLine ()
 IniLine (IniLineType type, const String &str)
 IniLine (const String &strKey, const String &strValue)
String toString () const

Public Attributes

IniLineType m_type
String m_strName
String m_strValue

Detailed Description

Definition at line 42 of file IniFile.cpp.

Constructor & Destructor Documentation

◆ IniLine() [1/3]

IniLine::IniLine ( )
inline

Definition at line 48 of file IniFile.cpp.

49 {
50 }

◆ IniLine() [2/3]

IniLine::IniLine ( IniLineType type,
const String & str )
inline

Definition at line 52 of file IniFile.cpp.

53 {
54 m_type = type;
55 m_strName = str;
56 }
IniLineType m_type
Definition IniFile.cpp:44
String m_strName
Definition IniFile.cpp:45

◆ IniLine() [3/3]

IniLine::IniLine ( const String & strKey,
const String & strValue )
inline

Definition at line 57 of file IniFile.cpp.

58 {
60 m_strName = strKey;
61 m_strValue = strValue;
62 }
@ ltEntry
Definition IniFile.cpp:39
String m_strValue
Definition IniFile.cpp:46

Member Function Documentation

◆ toString()

String IniLine::toString ( ) const
inline

Definition at line 63 of file IniFile.cpp.

64 {
65 String str;
66 switch (m_type)
67 {
68 case ltSectionName :
69 str = L"[" + m_strName + L"]";
70 break;
71 case ltEntry :
72 str = m_strName + L"=" + m_strValue;
73 break;
74 default :
75 str = m_strName;
76 }
77 return str;
78 }
@ ltSectionName
Definition IniFile.cpp:37

Member Data Documentation

◆ m_strName

String IniLine::m_strName

Definition at line 45 of file IniFile.cpp.

◆ m_strValue

String IniLine::m_strValue

Definition at line 46 of file IniFile.cpp.

◆ m_type

IniLineType IniLine::m_type

Definition at line 44 of file IniFile.cpp.


The documentation for this struct was generated from the following file: