C# Class Nanook.QueenBee.Parser.QbItemBase

Afficher le fichier Open project: Nanook/Queen-Bee Class Usage Examples

Private Properties

Свойство Type Description
Write void
setChildMode void

Méthodes publiques

Méthode Description
AddItem ( QbItemBase item ) : void

Add an item to the child collection

AlignPointers ( uint pos ) : uint

Align the pointers to account for any editing, return the position after the current item

Clone ( ) : QbItemBase
Construct ( BinaryEndianReader br, QbItemType type ) : void

Load type data from binary reader

ConstructEnd ( BinaryEndianReader br ) : void

Call after derived class has read its data in Construct()

Create ( QbItemType type ) : void

Load type data from binary reader

FindItem ( QbItemType type, bool recursive ) : QbItemBase
FindItem ( QbKey key, bool recursive ) : QbItemBase
FindItem ( bool recursive, Predicate match ) : QbItemBase
GetItems ( ) : Nanook.QueenBee.Parser.GenericQbItem[]
InsertItem ( QbItemBase item, QbItemBase sibling, bool beforeAfter ) : void

Insert a new item before or after the sibling item.

QbItemBase ( QbFile root ) : System
RemoveItem ( QbItemBase item ) : void

Remove the specified item from this items children

WriteEnd ( BinaryEndianWriter bw ) : void

Call after derived class has written its data in Write()

setQbFormat ( QbItemType type ) : void

Méthodes protégées

Méthode Description
CalcItemCount ( ) : int

Override this when the _items list does not contain the child items

StartLengthCheck ( BinaryEndianWriter bw ) : void
StreamPos ( BinaryEndianReader br ) : uint
StreamPos ( BinaryEndianWriter bw ) : uint
TestLengthCheck ( object sender, BinaryEndianWriter bw ) : ApplicationException

Private Methods

Méthode Description
Write ( BinaryEndianWriter bw ) : void

Write the item to the Binary Writer

setChildMode ( ) : void

Method Details

AddItem() public méthode

Add an item to the child collection
public AddItem ( QbItemBase item ) : void
item QbItemBase
Résultat void

AlignPointers() public méthode

Align the pointers to account for any editing, return the position after the current item
public AlignPointers ( uint pos ) : uint
pos uint
Résultat uint

CalcItemCount() protected méthode

Override this when the _items list does not contain the child items
protected CalcItemCount ( ) : int
Résultat int

Clone() public abstract méthode

public abstract Clone ( ) : QbItemBase
Résultat QbItemBase

Construct() public méthode

Load type data from binary reader
public Construct ( BinaryEndianReader br, QbItemType type ) : void
br BinaryEndianReader
type QbItemType
Résultat void

ConstructEnd() public méthode

Call after derived class has read its data in Construct()
public ConstructEnd ( BinaryEndianReader br ) : void
br BinaryEndianReader
Résultat void

Create() public méthode

Load type data from binary reader
public Create ( QbItemType type ) : void
type QbItemType
Résultat void

FindItem() public méthode

public FindItem ( QbItemType type, bool recursive ) : QbItemBase
type QbItemType
recursive bool
Résultat QbItemBase

FindItem() public méthode

public FindItem ( QbKey key, bool recursive ) : QbItemBase
key QbKey
recursive bool
Résultat QbItemBase

FindItem() public méthode

public FindItem ( bool recursive, Predicate match ) : QbItemBase
recursive bool
match Predicate
Résultat QbItemBase

GetItems() public méthode

public GetItems ( ) : Nanook.QueenBee.Parser.GenericQbItem[]
Résultat Nanook.QueenBee.Parser.GenericQbItem[]

InsertItem() public méthode

Insert a new item before or after the sibling item.
public InsertItem ( QbItemBase item, QbItemBase sibling, bool beforeAfter ) : void
item QbItemBase Item to insert.
sibling QbItemBase
beforeAfter bool Insert before=True or after=False
Résultat void

QbItemBase() public méthode

public QbItemBase ( QbFile root ) : System
root QbFile
Résultat System

RemoveItem() public méthode

Remove the specified item from this items children
public RemoveItem ( QbItemBase item ) : void
item QbItemBase Item to remove
Résultat void

StartLengthCheck() protected méthode

protected StartLengthCheck ( BinaryEndianWriter bw ) : void
bw BinaryEndianWriter
Résultat void

StreamPos() protected méthode

protected StreamPos ( BinaryEndianReader br ) : uint
br BinaryEndianReader
Résultat uint

StreamPos() protected méthode

protected StreamPos ( BinaryEndianWriter bw ) : uint
bw BinaryEndianWriter
Résultat uint

TestLengthCheck() protected méthode

protected TestLengthCheck ( object sender, BinaryEndianWriter bw ) : ApplicationException
sender object
bw BinaryEndianWriter
Résultat System.ApplicationException

WriteEnd() public méthode

Call after derived class has written its data in Write()
public WriteEnd ( BinaryEndianWriter bw ) : void
bw BinaryEndianWriter
Résultat void

setQbFormat() public méthode

public setQbFormat ( QbItemType type ) : void
type QbItemType
Résultat void