ATCFS For OpenBVE
 全て クラス 名前空間 ファイル 関数 変数 プロパティ ページ
公開メンバ関数 | プロパティ | 非公開変数類 | 全メンバ一覧
IniParser.Model.SectionData クラス

Information associated to a section in a INI File Includes both the value and the comments associated to the key. [詳解]

IniParser.Model.SectionData の継承関係図
Inheritance graph
[凡例]
IniParser.Model.SectionData 連携図
Collaboration graph
[凡例]

公開メンバ関数

 SectionData (string sectionName)
 
 SectionData (string sectionName, IEqualityComparer< string > searchComparer)
 Initializes a new instance of the SectionData class. [詳解]
 
 SectionData (SectionData ori, IEqualityComparer< string > searchComparer=null)
 Initializes a new instance of the SectionData class from a previous instance of SectionData. [詳解]
 
void ClearComments ()
 Deletes all comments in this section and key/value pairs [詳解]
 
void ClearKeyData ()
 Deletes all the key-value pairs in this section. [詳解]
 
void Merge (SectionData toMergeSection)
 Merges otherSection into this, adding new keys if they don't exists or overwriting values if the key already exists. Comments get appended. [詳解]
 
object Clone ()
 Creates a new object that is a copy of the current instance. [詳解]
 

プロパティ

string SectionName [get, set]
 Gets or sets the name of the section. [詳解]
 
List< string > LeadingComments [get, set]
 
List< string > Comments [get]
 Gets or sets the comment list associated to this section. [詳解]
 
List< string > TrailingComments [get, set]
 
KeyDataCollection Keys [get, set]
 Gets or sets the keys associated to this section. [詳解]
 

非公開変数類

IEqualityComparer< string > _searchComparer
 
List< string > _leadingComments
 
List< string > _trailingComments = new List<string>()
 
KeyDataCollection _keyDataCollection
 
string _sectionName
 

詳解

Information associated to a section in a INI File Includes both the value and the comments associated to the key.

構築子と解体子

IniParser.Model.SectionData.SectionData ( string  sectionName)
IniParser.Model.SectionData.SectionData ( string  sectionName,
IEqualityComparer< string >  searchComparer 
)

Initializes a new instance of the SectionData class.

IniParser.Model.SectionData.SectionData ( SectionData  ori,
IEqualityComparer< string >  searchComparer = null 
)

Initializes a new instance of the SectionData class from a previous instance of SectionData.

Data is deeply copied

引数
oriThe instance of the SectionData class used to create the new instance.
searchComparerSearch comparer.

メソッド詳解

void IniParser.Model.SectionData.ClearComments ( )

Deletes all comments in this section and key/value pairs

void IniParser.Model.SectionData.ClearKeyData ( )

Deletes all the key-value pairs in this section.

object IniParser.Model.SectionData.Clone ( )

Creates a new object that is a copy of the current instance.

戻り値
A new object that is a copy of this instance.
void IniParser.Model.SectionData.Merge ( SectionData  toMergeSection)

Merges otherSection into this, adding new keys if they don't exists or overwriting values if the key already exists. Comments get appended.

Comments are also merged but they are always added, not overwritten.

引数
toMergeSection

メンバ詳解

KeyDataCollection IniParser.Model.SectionData._keyDataCollection
private
List<string> IniParser.Model.SectionData._leadingComments
private
IEqualityComparer<string> IniParser.Model.SectionData._searchComparer
private
string IniParser.Model.SectionData._sectionName
private
List<string> IniParser.Model.SectionData._trailingComments = new List<string>()
private

プロパティ詳解

List<string> IniParser.Model.SectionData.Comments
get

Gets or sets the comment list associated to this section.

A list of strings.

KeyDataCollection IniParser.Model.SectionData.Keys
getset

Gets or sets the keys associated to this section.

A collection of KeyData objects.

List<string> IniParser.Model.SectionData.LeadingComments
getset
string IniParser.Model.SectionData.SectionName
getset

Gets or sets the name of the section.

The name of the section

List<string> IniParser.Model.SectionData.TrailingComments
getset

このクラス詳解は次のファイルから抽出されました: