DCL 3.7.4
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 __type
String __name
String __strValue

Detailed Description

Definition at line 41 of file IniFile.cpp.

Constructor & Destructor Documentation

◆ IniLine() [1/3]

IniLine::IniLine ( )
inline

Definition at line 47 of file IniFile.cpp.

48 {
49 }

◆ IniLine() [2/3]

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

Definition at line 51 of file IniFile.cpp.

52 {
53 __type = type;
54 __name = str;
55 }
String __name
Definition IniFile.cpp:44
IniLineType __type
Definition IniFile.cpp:43

◆ IniLine() [3/3]

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

Definition at line 56 of file IniFile.cpp.

57 {
59 __name = strKey;
60 __strValue = strValue;
61 }
@ ltEntry
Definition IniFile.cpp:38
String __strValue
Definition IniFile.cpp:45

Member Function Documentation

◆ toString()

String IniLine::toString ( ) const
inline

Definition at line 62 of file IniFile.cpp.

63 {
64 String str;
65 switch (__type) {
66 case ltSectionName :
67 str = L"[" + __name + L"]";
68 break;
69 case ltEntry :
70 str = __name + L"=" + __strValue;
71 break;
72 default :
73 str = __name;
74 }
75 return str;
76 }
@ ltSectionName
Definition IniFile.cpp:36

Member Data Documentation

◆ __name

String IniLine::__name

Definition at line 44 of file IniFile.cpp.

◆ __strValue

String IniLine::__strValue

Definition at line 45 of file IniFile.cpp.

◆ __type

IniLineType IniLine::__type

Definition at line 43 of file IniFile.cpp.


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