C# Class Weed.OPS.OpsReader

显示文件 Open project: noear/Weed3 Class Usage Examples

Public Methods

Method Description
GetFirstName ( string opsXml ) : string
IsArrayOfXml ( string opsXml ) : bool
IsTextOnly ( ) : bool

节点内是否只有Text内容

LoadOps ( string p_ops ) : void

加载级一级的opsXml(自动抽取根节点名)

LoadOps ( string p_ops, string tagName ) : void

加载级一级的opsXml

Note ( ) : string
Note ( string opsData ) : string
OpsReader ( )
Read ( ) : bool
Text ( ) : string
Text ( string opsData ) : string
Type ( ) : XType
Type ( string opsData ) : XType

Private Methods

Method Description
GetData ( int tagStartIndex ) : string
GetPotEnd ( string opsXml, string tagStart, string tagEnd, int potStart ) : int
TagIndexOf ( string opsXml, string tagName, int index ) : int
TagIndexOf ( string opsXml, string tagName, int index, int count ) : int
TagLastIndexOf ( string opsXml, string tagName, int index ) : int

Method Details

GetFirstName() public static method

public static GetFirstName ( string opsXml ) : string
opsXml string
return string

IsArrayOfXml() public static method

public static IsArrayOfXml ( string opsXml ) : bool
opsXml string
return bool

IsTextOnly() public method

节点内是否只有Text内容
public IsTextOnly ( ) : bool
return bool

LoadOps() public method

加载级一级的opsXml(自动抽取根节点名)
public LoadOps ( string p_ops ) : void
p_ops string 上一级opsXml
return void

LoadOps() public method

加载级一级的opsXml
public LoadOps ( string p_ops, string tagName ) : void
p_ops string 上一级opsXml
tagName string 标记名称
return void

Note() public method

public Note ( ) : string
return string

Note() public static method

public static Note ( string opsData ) : string
opsData string
return string

OpsReader() public method

public OpsReader ( )

Read() public method

public Read ( ) : bool
return bool

Text() public method

public Text ( ) : string
return string

Text() public static method

public static Text ( string opsData ) : string
opsData string
return string

Type() public method

public Type ( ) : XType
return XType

Type() public static method

public static Type ( string opsData ) : XType
opsData string
return XType