C# Class LynnaLab.FileParser

显示文件 Open project: Drenn1/LynnaLab Class Usage Examples

Public Properties

Property Type Description
definesDictionary string>.Dictionary

Public Methods

Method Description
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

Method Details

AddDefinition() public method

public AddDefinition ( string def, string value ) : void
def string
value string
return void

AddLabelToDictionaries() public method

public AddLabelToDictionaries ( Label label ) : void
label Label
return void

CompareComponentPositions() public method

public CompareComponentPositions ( FileComponent c1, FileComponent c2 ) : int
c1 FileComponent
c2 FileComponent
return int

FileParser() public method

public FileParser ( Project p, string f ) : System
p Project
f string
return System

GetData() public method

public GetData ( string labelStr, int offset ) : Data
labelStr string
offset int
return Data

GetDataLabel() public method

public GetDataLabel ( Data data ) : Label
data Data
return Label

GetLabel() public method

public GetLabel ( string labelStr ) : Label
labelStr string
return Label

GetNextFileComponent() public method

public GetNextFileComponent ( FileComponent reference ) : FileComponent
reference FileComponent
return FileComponent

GetPrevFileComponent() public method

public GetPrevFileComponent ( FileComponent reference ) : FileComponent
reference FileComponent
return FileComponent

InsertComponentAfter() public method

public InsertComponentAfter ( FileComponent refComponent, FileComponent newComponent, string comment = "" ) : bool
refComponent FileComponent
newComponent FileComponent
comment string
return bool

InsertComponentBefore() public method

public InsertComponentBefore ( FileComponent refComponent, FileComponent newComponent, string comment = "" ) : bool
refComponent FileComponent
newComponent FileComponent
comment string
return bool

InsertParseableTextAfter() public method

public InsertParseableTextAfter ( FileComponent refComponent, string text ) : bool
refComponent FileComponent
text string
return bool

InsertParseableTextBefore() public method

public InsertParseableTextBefore ( FileComponent refComponent, string text ) : bool
refComponent FileComponent
text string
return bool

ParseLine() public method

public ParseLine ( string pureLine, int i, List fileStructure, List fileStructureComments ) : void
pureLine string
i int
fileStructure List
fileStructureComments List
return void

RemoveFileComponent() public method

public RemoveFileComponent ( FileComponent component ) : void
component FileComponent
return void

RemoveLabel() public method

public RemoveLabel ( string label ) : void
label string
return void

Save() public method

public Save ( ) : void
return void

Property Details

definesDictionary public_oe property

public Dictionary definesDictionary
return string>.Dictionary