C# Класс LynnaLab.FileParser

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
definesDictionary string>.Dictionary

Открытые методы

Метод Описание
AddDefinition ( string def, string value ) : void
AddLabelToDictionaries ( Label label ) : void
CompareComponentPositions ( FileComponent c1, FileComponent c2 ) : int
FileParser ( Project p, string f ) : System
GetData ( string labelStr, int offset ) : Data
GetDataLabel ( Data data ) : Label
GetLabel ( string labelStr ) : Label
GetNextFileComponent ( FileComponent reference ) : FileComponent
GetPrevFileComponent ( FileComponent reference ) : FileComponent
InsertComponentAfter ( FileComponent refComponent, FileComponent newComponent, string comment = "" ) : bool
InsertComponentBefore ( FileComponent refComponent, FileComponent newComponent, string comment = "" ) : bool
InsertParseableTextAfter ( FileComponent refComponent, string text ) : bool
InsertParseableTextBefore ( FileComponent refComponent, string text ) : bool
ParseLine ( string pureLine, int i, List fileStructure, List fileStructureComments ) : void
RemoveFileComponent ( FileComponent component ) : void
RemoveLabel ( string label ) : void
Save ( ) : void

Описание методов

AddDefinition() публичный Метод

public AddDefinition ( string def, string value ) : void
def string
value string
Результат void

AddLabelToDictionaries() публичный Метод

public AddLabelToDictionaries ( Label label ) : void
label Label
Результат void

CompareComponentPositions() публичный Метод

public CompareComponentPositions ( FileComponent c1, FileComponent c2 ) : int
c1 FileComponent
c2 FileComponent
Результат int

FileParser() публичный Метод

public FileParser ( Project p, string f ) : System
p Project
f string
Результат System

GetData() публичный Метод

public GetData ( string labelStr, int offset ) : Data
labelStr string
offset int
Результат Data

GetDataLabel() публичный Метод

public GetDataLabel ( Data data ) : Label
data Data
Результат Label

GetLabel() публичный Метод

public GetLabel ( string labelStr ) : Label
labelStr string
Результат Label

GetNextFileComponent() публичный Метод

public GetNextFileComponent ( FileComponent reference ) : FileComponent
reference FileComponent
Результат FileComponent

GetPrevFileComponent() публичный Метод

public GetPrevFileComponent ( FileComponent reference ) : FileComponent
reference FileComponent
Результат FileComponent

InsertComponentAfter() публичный Метод

public InsertComponentAfter ( FileComponent refComponent, FileComponent newComponent, string comment = "" ) : bool
refComponent FileComponent
newComponent FileComponent
comment string
Результат bool

InsertComponentBefore() публичный Метод

public InsertComponentBefore ( FileComponent refComponent, FileComponent newComponent, string comment = "" ) : bool
refComponent FileComponent
newComponent FileComponent
comment string
Результат bool

InsertParseableTextAfter() публичный Метод

public InsertParseableTextAfter ( FileComponent refComponent, string text ) : bool
refComponent FileComponent
text string
Результат bool

InsertParseableTextBefore() публичный Метод

public InsertParseableTextBefore ( FileComponent refComponent, string text ) : bool
refComponent FileComponent
text string
Результат bool

ParseLine() публичный Метод

public ParseLine ( string pureLine, int i, List fileStructure, List fileStructureComments ) : void
pureLine string
i int
fileStructure List
fileStructureComments List
Результат void

RemoveFileComponent() публичный Метод

public RemoveFileComponent ( FileComponent component ) : void
component FileComponent
Результат void

RemoveLabel() публичный Метод

public RemoveLabel ( string label ) : void
label string
Результат void

Save() публичный Метод

public Save ( ) : void
Результат void

Описание свойств

definesDictionary публичное свойство

public Dictionary definesDictionary
Результат string>.Dictionary